Calculate the average rainfall for three months

Assignment Help Programming Languages
Reference no: EM13191923

Question 1

Write a program that can be used as a math tutor. The program should display two random numbers between land 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: EM13191923

Questions Cloud

Define how many total moles of ions are released : How many total moles of ions are released when the following sample dissolves completely in water?
What is the ground speed of the plane : A plane is heading due east and climbing at the rate of 120 km/hr. If its airspeed is 530 km/hr and there is a wind blowing 120 km/hr to the northwest, what is the ground speed of the plane?
How many of the bulbs should she plant next fall : How many of the bulbs should she plant next fall if she would like at least 88 to bloom?
Define calcium chloride by mass : Need to dissolve CaCl2 in water to make a mixture that is 38.5% calcium chloride by mass. If the total mass of the mixture is 886.2g
Calculate the average rainfall for three months : 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.
How far are you from your staring point : How far are you from your staring point?
Compute the change in internal energy of a balloon is cooled : Calculate the change in internal energy of the following system: a balloon is cooled by removing 0.651kJ of heat. It shrinks on cooling, and the atmosphere does 384J of work on the balloon.
What dimensions will give the largest printed area : A poster is to have an area of 240 in2 with 2 inch margins at the bottom and sides and a 3 inch margin at the top. What dimensions will give the largest printed area?
Find the direction and magnitude of the resultant : Three forces with magnitudes of 70 pounds, 40 pounds, and 60 pounds act on an object at angles of -30 degrees, 45 degrees, and 135 degrees, respectively, with the positive x-axis. Find the direction and magnitude of the resultant of these forces.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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