Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROGRAMMING: IF LOOPS & INPUT FROM DATA FILE ASSIGNMENT INSTRUCTIONS OVERVIEW You will write a CI program that computes a student's grade for an assignment

image text in transcribed
PROGRAMMING: IF LOOPS & INPUT FROM DATA FILE ASSIGNMENT INSTRUCTIONS OVERVIEW You will write a CI 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 INSTRUCTIONS Write a CH 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 1. Use the Lab Template you set-up last week to function as the foundation of your program. 2. Add the variables & math computations necessary to complete the calculations. Make sure you use the ceil function in the -cmath- header file. 3. The input to the program must come from an external data file that you create. You will create a text file. The file will contain a single line with the score and total separated by a space. 4. Display the floating-point result up to $ decimal places. Output the results to the screen. The output must be labeled clearly and formatted neatly. 5. Include proper formatting, and appropriate comments in your code. 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions