Write a program to calculate students average test scores

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

Requirements:

• Analyze the problem; outline the problem and its solution requirements.
• Design an algorithm to solve the problem.
• Implement the algorithm in C++, and verify that the algorithm works.

Part 1

Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following functions:

a. Function getData: This function reads and stores data in the twodimensional array.
b. Function averageHigh: This function calculates and returns the average high temperature for the year.
c. Function averageLow: This function calculates and returns the average low temperature for the year.
d. Function indexHighTemp: This function returns the index of the highest high temperature in the array.
e. Function indexLowTemp: This function returns the index of the lowest low temperature in the array.

Part 2

Write a program to calculate students' average test scores and their grades.

You may assume the following input data:

Johnson 85 83 77 91 76
Aniston 80 90 95 93 48
Cooper 78 81 11 90 73
Gupta 92 83 30 69 87
Blair 23 45 96 38 59
Clark 60 85 45 39 67
Kennedy 77 31 52 74 83
Bronson 93 94 89 77 97
Sunny 79 85 28 93 82
Smith 85 72 49 75 63

Use three arrays: a one-dimensional array to store the students' names, a (parallel) two- dimensional array to store the test scores, and a parallel one dimensional array to store grades.

Your program must contain at least the following functions: a function to read and store data into two arrays, a function to calculate the average test score and grade, and a function to output the results. Have your program also output the class average.

Reference no: EM134358

Questions Cloud

What is the speed of the water leaving the nozzle : What is the speed of the water leaving the nozzle
What is least value for which stick remain in equilibrium : What is least value for which stick remain in equilibrium
Compute the density of entropically raised element of air : Compute the density of entropically raised element of air
Find out an effective coefficient of kinetic friction : Find out an effective coefficient of kinetic friction
Write a program to calculate students average test scores : Write a program to calculate students average test scores
Using einsteins formula : Using Einsteins formula
Find out vertical and horizontal components : Find out vertical and horizontal components
Explain the numerous business entities : Explain the numerous business entities that Mercer Mechanics could have formed to conduct business. Debate the strategic considerations involved in each choice of entity. What are the compensations and drawbacks of each
Determine the area of the shaded region : Evaluate the area of the shaded region (z=0.99). The graph depicts the standard normal distribution of bone density scores with mean 0 and standard deviation 1.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Base process which communicate with child processes

Write a program which has a "base process" which communicates with child processes acting as "bombers" that it creates.

  Calculation of mortgage interest rates

Instruction of pointers and the calculation of mortgage interest rates.

  Develop a basic temperature class

You have to develop a basic temperature class

  Write a program for find greatest common divisor

Write code for a recursive implementation of Euclid's algorithm

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

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