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

  Write a linked-list-based push-down stack implementation

Write a linked-list-based push-down stack implementation that keeps items on the list in order from least recently inserted to most recently inserted. You will need to use a doubly linked list.

  Displays a table showing the price of silver and gold

Write a C++ program that displays a table showing the price of silver and gold. The table will have three columns. The first column will be labeled Ounces, the second labeled Silver, and the third labeled Gold.

  Program that reads in the average monthly

Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formatted table showing the rainfa..

  Digital filtering

Write a main code that reads filter coefficient data from the file filter.txt and creates a filter, reads an input float_seq from the file input.txt, filters the input float_seq using the filterand then writes the output float_seq to the file, output..

  Writing function that computes leap years

Write down function that computes leap years. Function prototype is as follows: Write function body which returns true if year is a leap year and false if year is not a leap year.

  The process function will then need

The process function will then need to find the time the person waited by calling the time function and finding the difference between the start and end timestamps. Save this time to an accumulator so that in the end you can find the average wait tim..

  Design a program that asks for the number of fat grams

Starting out with Programming logic and design 3rd Author Tony Gaddis - Pg 279, PE 3 Fat Grams Calculator

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  How many times is the copy constructor called

In the subsequent code how many times is the copy constructor called in the given code?

  Program that initializes a 3x4 array

Write a program that initializes a 3x4 array with test data. It then asks the user for a number input, and checks if the number is present in the array

  Modify the code to change the variables

Quickly modify the code to change the variables if needed to the correct data type. Comment the code and indicate what the line or function performs

  Prepare an application that creates a quiz

Prepare an application that creates a quiz, which contains at least five questions about a hobby, popular music, astronomy, or any other personal interest.

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