Requirements bull analyze the problem outline the problem

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

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: EM13350403

Questions Cloud

Question1a person eats a dessert that contains 210 calories : question1a person eats a dessert that contains 210 calories. this calorie unit with a capital c is the one used by
Question1a 408 kg mass is brought close to a second mass of : question1a 408 kg mass is brought close to a second mass of 110 kg on a frictional surface with coefficient of friction
Question1consider an element of air in the standard : question1consider an element of air in the standard atmosphere at a standard altitude of 1000 m. imagine that you
Question1one 29 kg paint bucket is hanging by a massless : question1one 2.9 kg paint bucket is hanging by a massless cord from another 2.9 kg paint bucket also hanging by a
Requirements bull analyze the problem outline the problem : requirements bull analyze the problem outline the problem and its solution requirements. bull design an algorithm to
Question1an atomic nucleus of mass 230 u moving at 400 ms : question1an atomic nucleus of mass 230 u moving at 400 ms emits an alpha particle of mass 4.0 u in direction of its
Question1a 20g rifle bullet travelling 230 ms buries itself : question1a 20g rifle bullet travelling 230 ms buries itself in a 3.9 kg pendulum hanging on a 2.7 m long string that
Questionmercer mechanics offers a one-day sale on battery : questionmercer mechanics offers a one-day sale on battery installation. during the progression of the day the mechanics
Question 1 determine the area of the shaded region z032 the : question 1. determine the area of the shaded region z0.32. the graph depicts thestandard normal distribution with mean

Reviews

Write a Review

C/C++ Programming Questions & Answers

  An expression whose value depends upon the evaluation

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Lexicographically preceding permutation

Output a single line containing a space separated list of integers which is the lexicographically preceding permutation of the input permutation.

  Design a cruiseship class that is derived from ship class

SEN 970 Object-Oriented Programming in Objective-C. Demonstrate the classes in a program that has an array of ship pointers. The array elements should be initialized with the addresses of dynamically allocated Ship, CruiseShip and CargoShip objects..

  Write a complete c program to do the following1 the main

write a complete c program to do the following1. the main program will read in a parameter value n read this in main.

  Create the appropriate constructor, getters and setters

Create the appropriate constructor, getters and setters for the class. Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.

  Calculate the component voltages

Calculate the component voltages for the following series resonant RLC circuit

  Taskwrite a bouncing ball video game the balls bounces

taskwrite a bouncing ball video game. the balls bounces within the screen where the two horizontal walls are fixed. the

  Consider implementing subnetting to support three department

Consider implementing subnetting to support three departments within an organization. The three departments P, Q and R need support for 30, 40 and 60 hosts.

  Iterative programming problem solving approaches

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

  Squares, triangles, circles and ellipses

write a program which will answer a pair of questions for squares, triangles, circles and ellipses. A square is defined by its lower left corner ( S L L x , S L L y ), and the length of one side  S W .

  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

  State diagram to recognize one form

Design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin with /* and end with */. and also Write and test the code to implement the state diagram.

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