Hello good afternoon,   Write a C++ program that reads data from an input file, takes the data and computes student grades for an assignment by converting the raw score to a percentage given each student's score and the total points. The final score must be rounded up to the nearest whole value using the ceil function in the header file and displayed as a percentage. You must also display the floating-point result up to 5 decimal places. You must use at least 2 functions: one to print the last name of the student and another function to compute and print the percentage as well as "Excellent" if the grade is greater than 90, "Well Done" if the grade is greater than 80, "Good" if the grade is greater than 70, "Need Improvement" if the grade is greater than or equal to 60, and "Fail" if the grade is less than 50. The main function is responsible for reading the input file and passing the appropriate arguments to your functions.

Question

Hello good afternoon,

 

Write a C++ program that reads data from an input file, takes the data and computes student grades for an assignment by converting the raw score to a percentage given each student's score and the total points. The final score must be rounded up to the nearest whole value using the ceil function in the header file and displayed as a percentage. You must also display the floating-point result up to 5 decimal places. You must use at least 2 functions: one to print the last name of the student and another function to compute and print the percentage as well as "Excellent" if the grade is greater than 90, "Well Done" if the grade is greater than 80, "Good" if the grade is greater than 70, "Need Improvement" if the grade is greater than or equal to 60, and "Fail" if the grade is less than 50. The main function is responsible for reading the input file and passing the appropriate arguments to your functions.

Expert Answer

1 Rating

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

See Answer
*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.
Tagged in
EngineeringComputer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by student like you

Q: Please help me solve this problem

A: Program design:Since the corner positions are a1,a8,h1,h8 in a chess board and the borders are any p...

Q: Programming in C

A: The program would have the following steps:Declare the arrays to accept the user input and the array...

Q: The question is asking for me to "Design a modular program that asks how many tickets for each class...

A: AS per Question,Class A Seat Cost is 15$Class B Seat Cost is 12$Class C Seat Cost is 9$And we need t...

Q: C++ programming

A: Program AlgorithmDeclare the variable “s” of string type to take the input in 12-Hour Format.Call th...

Q: You are not required to execute the queries. However, your syntax must by accurate.You must give at ...

A: Answer for 11: SELECT MIN(MEM_BALANCE) AS MINIMUM_BALANCE, MAX(MEM_BALANCE) AS MAXIMUM_BALANCE, AVG(...

Q: What is the difference between a trap and an interrupt?

A: DefinitionTrap is prompted by a user program to invoke Operating System functionality.Interrupt is t...

Q: Why is it important to change bios?

A: Basic Input Output System (BIOS)BIOS is used as a basic standard firmware for motherboards.When comp...

Q: In addition to virtualization, concurrency and persistence, name two more major goals of operating s...

A: Major goals of Operating System are:VirtualizationConcurrencyPersistenceDistributionAbstraction

Q: Fill in the blanks in the scheduling table. One schedule has been started for you. Each column repre...

A: FIFO (First in first out) scheduling algorithm is a non-preemptive algorithm which executes the proc...