Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROGRAMMING: USER-DEFINED FUNCTIONS ASSIGNMENT INSTRUCTIONS OVERVIEIV In this assignment you will create user-defined functions OUTSIDE the main program and call those functions from INSIDE the

image text in transcribed
PROGRAMMING: USER-DEFINED FUNCTIONS ASSIGNMENT INSTRUCTIONS OVERVIEIV In this assignment you will create user-defined functions OUTSIDE the main program and call those functions from INSIDE the main program. INSTRUCTIONS This assignment will require you to create functions in the program which the main procedure calls. Write a C+ program that 1. Reads data from an input file. The data file should include 10 students. Each student should have 2. 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. 3. Round the final score up to the nearest whole value using the ceil function in the header file and displayed as a percentage. You must also display the floatingpoint result up to 5 decimal places. 4. 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. Here is an example of what the input file might look like: name score tot possible Heems 5060 Dale 5160 Richards 5760 Smith 3660 Tomlin 4460 Bird 4560 Here is an example of what the output of your program might look like: Heens 83 . 83333 Hell Done Dale 85 . 85000 Hell done Richards 955.95000 Excellent Smith 60x,60000 Need Improvement Toml in 73x . 73333 Good B1rd 75%.75000 Good

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_2

Step: 3

blur-text-image_3

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago