Write a C++ program that computes a student's grade for an assignment as a percentage given...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ program that computes a student's grade for an assignment as a percentage given the student's score and total points. The final score must be rounded up to the nearest whole value using the ceil function in the header file. You must also display the floating-point result up to 5 decimal places. The input to the program must come from a file containing a single line with the score and total separated by a space. In addition, you must print to the console "Excellent" if the grade is greater than or equal to 90, "Well Done" if the grade is less than 90 and greater than or equal to 80, "Good" if the grade is less than 80 and greater than or equal to 70, "Need Improvement" if the grade is less than 70 and greater than or equal to 60, and "Fail" if the grade is less than 60. Write a C++ program that computes a student's grade for an assignment as a percentage given the student's score and total points. The final score must be rounded up to the nearest whole value using the ceil function in the header file. You must also display the floating-point result up to 5 decimal places. The input to the program must come from a file containing a single line with the score and total separated by a space. In addition, you must print to the console "Excellent" if the grade is greater than or equal to 90, "Well Done" if the grade is less than 90 and greater than or equal to 80, "Good" if the grade is less than 80 and greater than or equal to 70, "Need Improvement" if the grade is less than 70 and greater than or equal to 60, and "Fail" if the grade is less than 60.
Expert Answer:
Related Book For
Business Communication Essentials a skill based approach
ISBN: 978-0132971324
6th edition
Authors: Courtland L. Bovee, John V. Thill
Posted Date:
Students also viewed these computer network questions
-
Write a program that finds the course grades for several classes and write it in Java. Program Description Your assignment is to write a class averaging program that outputs a summary of classes and...
-
A 110 g hockey puck sent sliding over ice is stopped in 15 m by the frictional force on it from the ice. (a) If its initial speed is 6.0m/s, what is the magnitude of the frictional force? (b) What is...
-
The drilling mud is a stable slurry of seawater and barite (SG =4.37). What is the mass fraction of barite in the slurry? Discuss.
-
Now assume that the stock is currently selling at $30.29. What is the expected rate of return on the stock? MINI CASE Sam Struthers and Shawna Tibbs are senior vice presidents of the Mutual of...
-
A conducting sphere has a radius of \(2.25 \mathrm{~m}\) and carries a positive surplus charge of \(35.0 \mathrm{mC}\). A protective layer of barium titanate is applied to the surface of the sphere...
-
The following information is taken from the accounts of Latta Company. The entries in the T-accounts are summaries of the transactions that affected those accounts during the year. The overhead that...
-
what happens when ou use an aggregation function in a calculated column?
-
Suppose that there are p = 4 quality characteristics, and in correlation form all four variables have variance unity and that all pairwise correlation coefficients are 0.9. The in-control value of...
-
Biometrics narrowly defined as the identification of a user based on a physical characteristic, such as a fingerprint, iris, face, voice or handwriting. Using something that is part of the user such...
-
One step in the manufacture of a certain metal clamp involves the drilling of four holes. In a sample of 150 clamps, the average time needed to complete this step was 72 seconds and the standard...
-
Refer to Exercise 19. a. Find a 95 % 95 % lower confidence bound for the mean weight. b. Find a 90 % 90 % upper confidence bound for the mean weight. Data From Exercise 19: In a sample of 80...
-
The article "Bioremediation of Soil Contaminated Crude Oil by Agaricomycetes" (Mohammad-Sichani, Assadi, et al., Journal of Environmental Health and Engineering, 2017, online) describes an experiment...
-
Refer to Exercise 14. a. Find a \(95 \%\) upper confidence bound for the mean improvement. b. Find a \(98 \%\) lower confidence bound for the mean improvement. Data From Exercise 14: The article...
-
The data set contains observations from the years 1871 through 2020 , so the midpoint is 1945.5 . For some records, the record temperature occurred more than once. In these cases, only the most...
-
1. The management of Ro Corporation is investigating automating a process. Old equipment, with a current salvage value of $27,000, would be replaced by a new machine. The new machine would be...
-
Wal-Mart is the second largest retailer in the world. The data file on the disk holds monthly data on Wal-Marts revenue, along with several possibly related economic variables. a) Using computer...
-
You're preparing the annual report for FretCo Guitar Corporation. For each of the following types of information, select the appropriate chart or visual to illustrate the text. Explain your choices....
-
After several false starts, tablet computers have finally caught on among business users. In addition to Apple's popular iPad, seemingly every computer company on the planet is looking to get a share...
-
For items 1-5, indicate which words are common nouns and which are proper nouns. 1. Give the balance sheet to Melissa. 2. After three years of declining sales, the board fired the CEO and hired a...
-
What were Aristotles two main classifications of motion?
-
What two main ideas of Aristotle did Galileo discredit?
-
What is the name of the property of objects to maintain their states of motion?
Study smarter with the SolutionInn App