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

  Create the program uses two arrays to hold employee names

Create the program which uses two arrays: one to hold employee names and one to hold employee salaries (standard US currency, two decimal points). The program must prompt user to enter employee names.

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

  Create modular program to enter monthly costs expenses

Create the modular program which asks user to enter monthly costs for following expenses incurred from operating his or her automobile: loan payment, tires.

  Write down the xml file with markup tags

Write down the XML file with markup tags and some sample data to represent list of invoices. Write the XML tags for two invoices in list.

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Write class to hold hourly rate of pay

Write down the class which comprises variables which hold your hourly rate of pay and number of hours that you worked. Illustrate your gross pay.

  Develop unix shell script to input number of hours

Develop a Unix shell script to input number of hours worked and pay rate and calculate the total pay, then the social security amount (assume 5%), then the net pay.

  Perform a paired t-test to verify your claim

Which type of t-test is most appropriate to investigate your co-investigator's claim? Why is it most appropriate t- test? Please explain your answer in 1-2 lines.

  Write program which will accept list of student-s name

Write a program which will accepts list of student's name, individual scores for quiz1, quiz2 and quiz3. Your program must then compute for average of 3 quizzes.

  Create a main loop to accepts text commands

Using the ADT described in Dale p280-282, implement a FIFO Queue. Then create a main loop that accepts text commands as specified below and executes the appropriate FIFO queue functions.

  Write script to declare and sets variable equal to balance

Write a script that declares and sets a variable that's equal to the total outstanding balance due. If that balance is greater than $10,000.00, the script should return a result set consisting of VendorName.

  Create a print stream object using dos

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

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