Calculates the average of three test scores

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

Write a program that calculates the average of three test scores. The program should contain three value-returning functions: main, getTestScore, and calcAverage. The main function should call the get TestScore function to get, validate the score to make sure the value is between 0 and 100, and return each of the three test score. The testscore may contain a decimal place. (Hint: the main function will need to call the getTestScore function three times.) The main function then should call the calcAverage function to calculate and return the average of the three test scores. When the calAverage function has completed its task, the main function should display the average on the screen.

Reference no: EM13166146

Questions Cloud

Reads a set of integers from file : The code in file "hw5-stree.cpp" reads a set of integers from file and inserts them into a binary search tree. You are asked to implement two functions max() and depth() that compute the maximum element and the depth of the binary search tree.
Vanilla versions versus best practices–based software : Compare and contrast customized and packaged software as well as vanilla versions versus best practices–based software.
Implement a client program : Implement a client program with a main method to demonstrate the evolution of the sales tax rates in the 50 US states over the last 10 years. Declare a two-dimensional array of values representing the sales tax rates. Dimension 1 represents the st..
Draw a two-dimensional house seen from the front : Draw a two-dimensional house seen from the front, the way a child would: with a dor, two windows, and a roof with a chimney
Calculates the average of three test scores : Write a program that calculates the average of three test scores. The program should contain three value-returning functions: main, getTestScore, and calcAverage
Create an update query to select all records in the tbl over : Create an update query to select all records in the tblOverPriced, decrease the Price field values by 10%, run and close the query.
How many grams of potassium permanganate are needed : How many grams of potassium permanganate are needed to decolorize 1g of 2-pentane in basic solution?
Detailed calculation of non-controlling interest balance : Detailed calculation of non-controlling interest balance and consolidation worksheet and consolidated financial statements and statements of changes in equity for the group and parent.
What will be the concentration of the diluted solution : If you dilute 28.0 of the stock solution to a final volume of 0.540 , what will be the concentration of the diluted solution?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Object oriented programming paradigm is better choice

Explain why object oriented programming paradigm is considered better choice than structured programming paradigm. Does it reflect our "natural" way of thinking or do you find it artificial?

  Asks the user for the name of an input file and translates

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  Create class has three pieces of information as data members

Create a class called Date in C++ that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int).

  Write a program which accepts the total of food and drink

Write a program which accepts the total of food and drink purchased for a restaurant bill as input. The output should be adjusted bill with a sales tax of six percent 6% and a tip (gratuity) of 15%.

  Time conversion

Write a C++ program that takes an Eastern standard time in hours, minutes, and seconds,and prints it out in Central time, Mountain time, or Pacific time.

  Monkey business, a local zoo

Monkey Business, a local zoo, wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. Write a program that stores this information in a two-dimensional 3 7 array, where each row represents a di..

  Design in c a unix utility program gasp

Design in C a Unix utility program gasp. Command gasp [options] STRING FILE... must read listed files (FILE...) and copy each line from input to stdout if it contains STRING.

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

  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

  Reads from the external file input.txt

Program that reads from the external file input.txt, counts the letters in every word, replaces the word by that number, and then writes the numbers to an external file output.tx

  C++ program to draw a correct texas flag using rectangles

Write a C++ program to draw a correct Texas flag using rectangles, lines, and/or polygons (not images).

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