Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 345 Weeks Ago, 6 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 13 Jun 2017 My Price 5.00

Write a program that calculates the average rainfall for three months.

 

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 inches) 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 inches.

Prompts And Output Labels: Each month read should be prompted for by the string "Enter month: "

and each rainfall amount should be prompted for by a string of the form "Enter rainfall for MONTH: " where MONTH is the name of the month that was just entered.

The output should be of the form: "The average rainfall for MONTH1, MONTH2, and MONTH3 is: AVERAGE"

where MONTH1, MONTH2, and MONTH3 are the month names that were entered by the user and

where AVERAGE is the calculated average rainfall shown with exactly two digits past the decimal point.

 
 

Answers

(8)
Status NEW Posted 13 Jun 2017 05:06 AM My Price 5.00

-----------

Attachments

file 1497331729-Answer.docx preview (182 words )
#-----------inc-----------lud-----------e &-----------amp-----------;lt-----------;io-----------str-----------eam-----------&am-----------p;g-----------t; ----------- #i-----------ncl-----------ude----------- &a-----------mp;-----------lt;-----------iom-----------ani-----------p&a-----------mp;-----------gt;----------- u-----------sin-----------g n-----------ame-----------spa-----------ce -----------std-----------; -----------int----------- ma-----------in(-----------) -----------{ ----------- -----------cha-----------r m-----------ont-----------h1[-----------8],----------- mo-----------nth-----------2[8-----------], -----------mon-----------th3-----------[8]-----------; ----------- -----------dou-----------ble----------- ra-----------inf-----------all-----------, a-----------vg_-----------Rai-----------nfa-----------ll;----------- ----------- d-----------oub-----------le -----------tot-----------alR-----------ain-----------fal-----------l =----------- 0;----------- //-----------cre-----------ate----------- a -----------var-----------iab-----------le -----------to -----------hol-----------d t-----------he -----------tot-----------al -----------rai-----------nfa-----------ll ----------- ----------- co-----------ut -----------&am-----------p;l-----------t;&-----------amp-----------;lt-----------; &-----------quo-----------t;E-----------nte-----------r t-----------hre-----------e c-----------ons-----------ecu-----------tiv-----------e m-----------ont-----------hs:----------- &q-----------uot-----------; &-----------amp-----------;lt-----------;&a-----------mp;-----------lt;----------- en-----------dl;----------- ----------- c-----------in -----------&am-----------p;g-----------t;&-----------amp-----------;gt-----------; m-----------ont-----------h1 -----------&am-----------p;g-----------t;&-----------amp-----------;gt-----------; m-----------ont-----------h2 -----------&am-----------p;g-----------t;&-----------amp-----------;gt-----------; m-----------ont-----------h3;-----------
Not Rated(0)