Program that reads a student''s name together with score

Assignment Help C/C++ Programming
Reference no: EM13938744

Write a program that reads a student's name together with his or her test scores. The program should then compute the average test scores for each student and assign the appropriate grade. The grade scale is as follows: 90-100, A; 80-89, B; 70-79, C; 60-69, D; 0-59, F.

Your program must use the following functions:

1. A void function, calculateAverage, to determine the average of the five test scores for each student. Use a loop to read and sum the five test scores. (This function does not output the average test score. That task must be done in the function main.)

2. A value-returning function, calculateGrade, to determine and return each student's grade. (This function does not output the grade. That task must be done in the function main.)

Test your program on the following data. Read the data from a file and send the output to a file. Do not use any global variables.

Use the appropriate parameters to pass value in and out of functions.

Please see attached for full question.

Attachment:- grades.zip

Reference no: EM13938744

Questions Cloud

What do you think the strongest argument : What do you think the strongest argument for free trade is, and what do you think the strongest argument against it is?
Discuss labor negotiation process between a sports league : Discuss the labor negotiation process between a sports league and a players union in the context of the contract zone and threat point framework. Describe the major milestones in the history of labor relations in the MLB. Incorporate the role of barg..
Discuss the difference between force and speed of movement : Briefly discuss the positive benefits of exercise on the brain and include how regular exercise maintains neuronal health. Discuss the difference between force and speed of movement during muscular contraction.
Prepare a flexible budget for a normal school month : Prepare a flexible budget for a normal school month. Prepare a flexible budget for October. Do you think it was worthwhile for Luis to add the additional shifts for homecom- ing weekend last October?
Program that reads a student''s name together with score : A value-returning function, calculateGrade, to determine and return each student's grade. (This function does not output the grade. That task must be done in the function main.)
Cigarette industry has negotiated with congress : Assignment 4: The U.S. Cigarette industry has negotiated with Congress and government agencies to settle liability claims against it. Under proposed settlement, cigarette companies will make fixed annual payments to government based on their historic..
Would expect severe injury to medulla oblongata cause death : After a severe blow to the head, a patient suddenly does not produce sensations of hunger and seems unable to tell if he is dehydrated. The attending physician should suspect damage to a or a lesion within what general region of the brain?
Design an eco-optimized container for fizzy drinks : The objective of the class assignment is to design an eco-optimized container for fizzy drinks using eco design tool  (CES)
Determine whether or not there is data pertaining : For each employee you are to compute the number of overtime hours worked by that employee, the salary, and the overtime pay. An employee earns straight time for the first forty hours of work, time-and-a-half for up to the first 10 hours in excess ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Total cost for buying the books

Print out the title of the book. If a 20% discount is provided for buying the book, calculate and print out the discounted price for the book. Also, calculate and print out the total cost for buying the books at the discounted price.

  Nbspyou are to insert the missing code in the c program

nbspyou are to insert the missing code in the c program given for combinational equivalence checking. this program will

  Write the prototype and header for a function

Write the prototype and header for a function called calculate. The function should have three parameters: an int, a reference to a double, and a long (not necessarily in that order). Only the int parameter should have a default argument, which is..

  You are required to prepare a program for assessment system

you are required to prepare a program for assessment system of a university. the main idea is to evaluate the gpa

  Create a void function that takes as parameters

Create a void function that takes as parameters two integers, adds them, and prints them out to the command line.

  Write a recursive function that takes a string

Write a recursive function that takes a string as a parameter and prints its reversal in the same function in C++

  Develop a simple poker game

Develop a simple poker game

  Variable of primitive type

What value is stored in ch by the following statement? ch = str.charAt(0); What value is stored in ch by the following statement? ch = str.charAt(10);

  Advantages of compilers and interpreters

Discuss the advantages and disadvantages of compilers and interpreters

  Write a driver to thoroughly test your implementation

Write a driver (SortedListArrayDriver) to thoroughly test your implementation. Part of your grade  will depend on evidence of testing. Note that it is not necessary to provide user interaction in your driver class for this program

  An assembly program to determine the price of a car rental

an Assembly program to determine the price of a car rental

  Program to read the numbers and add certain digit

Write a program that will read in 5 numbers and add 10 to the first number, 20 to the second number, and 30 to the third number, 40 to the fourth and 50 to the 50th.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd