0% found this document useful (0 votes)
275 views

Matlab Project PDF

The objective of this project is to read student data from a text file, sort it by name and ID number, and write it to a new file. The data includes names, IDs, assignment scores, exam scores, and final marks. Functions are used to read the data, sort it, calculate final marks and grades, and write the results. A flow chart shows the process and results include the subject code, average mark, grade distribution, and source code is summarized in a report.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
275 views

Matlab Project PDF

The objective of this project is to read student data from a text file, sort it by name and ID number, and write it to a new file. The data includes names, IDs, assignment scores, exam scores, and final marks. Functions are used to read the data, sort it, calculate final marks and grades, and write the results. A flow chart shows the process and results include the subject code, average mark, grade distribution, and source code is summarized in a report.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

NAME:ABDIQANI ABDILLAAHI HIRSI

MATRIC NO: A22EM4001


SECTION: 01
LECTRURE: DR KHIARUL
COURSE: PROGRAMING
N

Matlab Project Report


The objective of this project is to read and write data from and to a text file using MATLAB data
structures and file input/output functions. The data consists of marks for a simulated course
and contains information such as name, ID number, assignment scores, and exam scores. The
program will be divided into several functions, including read_database_from_file,
sort_by_name, sort_by_id_number, and write_database_to_file. The read_database_from_file
function will read in the data from the file and create an appropriate data structure for it. The
sort_by_name function will extract the names from the database and put them in alphabetical
order. The sort_by_id_number function will extract the ID numbers and order them from
largest to smallest. The write_database_to_file function will take the database, reordering
vector, and output file name as inputs and write the information to an output file. Finally, a
results summary will be displayed, including the subject code, semester, number of students,
overall average mark, and grade. A grade distribution plot will also be created to show the
number of students in each grade category. A report will be written to summarize the project,
including the introduction, flow chart/algorithm, results and discussion, and source code.

here is the flow chart:

Star the project

Read the database from a file (marks)

Tests =
(((Test1_Q1+Test1_Q2)./200).*20)+(((Test2_Q1+Test2_Q2+Test2_Q3+Test2_Q4)./100).*20);

Assignments =
(((Manual_1+Manual_2+Manual_3+Manual_4)./40).*20)+(((CAD_1+CAD_2+CAD_3+CAD_4)./
40).*10);
Project = (Project_Assembly_Drawing+Project_Part_Drawing+Project_Modern_Tools);
Final_Marks = Tests+Assignments+Project
Sort the result marks and there grade

If >=90 A+

IF>=80A

IF>=75 A-

AND SO ON

UNTIL

40 >=40 D+

35>=D

30 >= D-

THEN IT PRINTS THE RESULT IN OUTPUT FILE

AND MAKES A TABLE TO SORT THE DATA BY NAME AND BY ID

END
HERE IS THE RESULT
AND HERE AS A CHART
AND THIS IS MY WORK SPACE

You might also like