Build a structure in which name, surname, student no, midterm grade, homework grades, quiz grades, final...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Build a structure in which name, surname, student no, midterm grade, homework grades, quiz grades, final grade members should exist. Determine the data type of each member of the structure accordingly. (You can build a similar structure like the one in lecture notes.) In a text file type the necessary information of at least 5 students. Each student should be in one line only. Their name surname, student number, exam grades etc. In your C code, use the structure to read the information of the text file, determine the letter grades of these students. The quantity and the weights for midterm, homework, quiz and final are given in the table below. Midterm Homework Quiz Final Quantity Percentage of each 1 2 2 1 30 10 5 40 The classification of grades is given in the table below. 85-100 74-84 66-73 56-65 49-55 42-48 37-41 0-36 AA BA BB CB CC DC DD FF Total 30 20 10 40 100 Briefly, you should read the information from the text file you created and calculate the final numeric grade, then convert it to letter grade (use switch-case or if-else). Print the resulting letter grade in a new text file, using one line per student. Build a structure in which name, surname, student no, midterm grade, homework grades, quiz grades, final grade members should exist. Determine the data type of each member of the structure accordingly. (You can build a similar structure like the one in lecture notes.) In a text file type the necessary information of at least 5 students. Each student should be in one line only. Their name surname, student number, exam grades etc. In your C code, use the structure to read the information of the text file, determine the letter grades of these students. The quantity and the weights for midterm, homework, quiz and final are given in the table below. Midterm Homework Quiz Final Quantity Percentage of each 1 2 2 1 30 10 5 40 The classification of grades is given in the table below. 85-100 74-84 66-73 56-65 49-55 42-48 37-41 0-36 AA BA BB CB CC DC DD FF Total 30 20 10 40 100 Briefly, you should read the information from the text file you created and calculate the final numeric grade, then convert it to letter grade (use switch-case or if-else). Print the resulting letter grade in a new text file, using one line per student.
Expert Answer:
Answer rating: 100% (QA)
Solution Below is the given code include include typedef struct student c... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The function header specifies _____________________ . a. The data type of the functions return value (if any) b. The name of the function c. The functions formal parameters (if any) d. All of the...
-
Remember - draw cash flow diagrams where appropriate and put answers in boxes. You may complete on a separate piece of paper- just print legibly and put boxes around your final answer and scan in to...
-
Silicon carbide, SiC, has a structure in which each Si atom is bonded to four C atoms, and each C atom is bonded to four Si atoms. Describe the bonding in terms of hybrid orbitals.
-
Verify that (x, y) = tan 1 y/x is harmonic using both the rectangular and polar expressions for .
-
The consolidated statement of stockholders' equity for Jackson Electronics, Inc., a manufacturer of a broad line of electrical components, is presented below. This statement of stockholders' equity...
-
What sign are the cross elasticities for substitute products? Explain.
-
Mr. Prestages foot and lower leg were caught in a combine manufactured by defendant SperryNew Holland. He and his wife sued Defendant for damages arising out of the accident. Their first cause of...
-
Selected accounts for Heathers Salon are presented below. All June 30 postings are from closing entries. Instructions (a) Prepare the closing entries that were made. (b) Post the closing entries to...
-
Calculate whether the given matrices are diagonalizable or not. That is, for each matrix, calculate its eigenvalues and associates eigenvectors, then write down the P and D matrices such that AP = PD...
-
1. Are you persuaded by the states evidence that it had an individual of a different national origin who was treated similarly to Herawi? If Ward (or other managers) treated everyone equally poorly,...
-
Suppose that FL plans to put the same number of cartons for each fruit on each truck, in other words, suppose that FL sets A = A = A = 1300 and M = M M = 1200. Is this a feasible plan? (b)...
-
When and how does a buyer or lessee pay for goods?
-
Under the doctrine of strict liability, defendants are liable for the results of their acts only if they intended those results. (True/False)
-
Under the UCC, acceptance can be made by any means of communication reasonable under the circumstances. (True/False)
-
In a sale on approval, the risk of loss passes to the buyer as soon as the buyer takes possession. (True/False)
-
Russo contracts with Playlist, Inc., to create a website through which users can post and share movies, music, and other forms of digital entertainment. Russo goes to work. Before the site is online,...
-
lolita depositd $500 in her savings account that earns 5% compounded annually. she forgot about it until 15 years later when she came across an old bank statemen. write an exponential equation to...
-
For the following exercises, rewrite the sum as a product of two functions or the product as a sum of two functions. Give your answer in terms of sines and cosines. Then evaluate the final answer...
-
Titanium metal is used in aerospace alloys to add strength and corrosion resistance. Titanium melts at 1677oC. What is this temperature in degrees Fahrenheit?
-
Describe two different methods used to manufacture phosphoric acid, H3PO4, starting from Ca3(PO4)2.
-
Colorless nitric oxide, NO, combines with oxygen to form nitrogen dioxide, NO2, a brown gas. 2NO(g) + O2(g) 2NO2(g); H = 114 kJ What is the enthalpy change per gram of nitric oxide?
-
Michael is in his last year of undergraduate studies in human services and economics and is conducting original research for his final research project. As part of his project, he is required to keep...
-
Keza is studying online for a masters degree in Management and wishes to undertake her research project in her home country, Rwanda, where she works as a civil servant. Due to her high pressure job,...
-
You wish to study the reasons why car owners join manufacturer-sponsored owners clubs. You choose to use a qualitative methodology and narrative inquiry research strategy involving unstructured...
Study smarter with the SolutionInn App