Write a program that calculates the average rainfall

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

Question 1
Write a program that can be used as a math tutor. The program should display two random numbers between 1 and 99 to be added, such as
20
+ 33
After the student has entered an answer and pressed the [Enter] key, the program should display the correct answer so the student can see if his/her answer is correct.

Question 2

Write a program that calculates the average rainfall for three months. The program should ask the user to enter the name of each month, such as June or July, and the amount of rain (in millimeters) that fell each month. The program should display a message similar to the following:

The average rainfall for June, July, and August is 6.72 millimeter.

Question 3

Modify the program you wrote for Question 2 (Average Rainfall) so it reads its input from a file instead of the keyboard.

Question 4

Program 1: Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

Program 2• The program should open the file created in Program 1 and ask the user to enter another five floating-points numbers and save all five numbers to the file, calculate the average of all ten numbers in the file and finally display the average and save the average to the file.

Reference no: EM13325615

Questions Cloud

Display the average and save the average to the file : Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.
Calculate the force she must exert : When landing after a spectacular somersault, a 40.0 kg gymnast decelerates by pushing straight down on the mat. Calculate the force she must exert
Find out the energy of 1.20mol of photons : Determine the energy of 1.20mol of photons for each of the following kinds of light. (Assume three significant figures.) infrared radiation (1480nm) visible light (520nm) ultraviolet radiation (130nm)
What about the concession stand inside the theater : If a local movie theater sells tickets at different prices (senior citizens versus young people, matinee versus evening prices) is the local movie theater a monopoly? What about the concession stand inside the theater?
Write a program that calculates the average rainfall : Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.
What is the cost-minimizing input mix for producing 4 units : If the wage rate is $30 per hour and the rental rate on Capital is $10 per hour, what is the cost-minimizing input mix for producing 4 units of output?
Case study - forensic accountants: fraud busters : Exactly what forensic accountants are. People who work in this growing field investigate such white-collar crimes as business fraud, improper financial reporting, and illegal investment schemes.
How to evaluate the ph at the points in the titration : Calculate the pH at the points in the titration of 40.00 mL of 0.425 M NH3 for the reaction below. NH3(aq) + HNO3  NH4+(aq) + NO3?(aq) For NH3, Kb = 1.8x10-5.
Who is pilotimos : Who is Pilotimos?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

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

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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