subject

Using java languagedesign a modular program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. the program should then display the total monthly cost of these expenses, and the total annual cost of these expenses. the professor asked me to get this module to work on drjava but im confused with how to do that. this is the module i got. module main()call monthlycost()end moduledeclare integer loan , insuranceamtdisplay "enter the monthly cost of payment"input loandisplay "enter the monthly cost of insurance"input insurancedisplay "enter the monthly cost of gas"input gasdisplay "enter the monthly cost of oil"input oildisplay "enter the monthly cost of tires"input tiresdisplay "enter the monthly cost of maintenace"input maintenanceset monexpense = loan+insurance+gas+oil+tires+mainte naceset annualexpense = monexpense*12display "total monthly cost of automobile: "display monexpensedisplay "total annual cost of automobile: "display annualexpenseend module

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
You know the right answer?
Using java languagedesign a modular program that asks the user to enter the monthly costs for the fo...
Questions
question
Mathematics, 01.08.2021 04:10
question
Social Studies, 01.08.2021 04:10
question
Mathematics, 01.08.2021 04:10
question
History, 01.08.2021 04:20
question
Chemistry, 01.08.2021 04:20
Questions on the website: 13722367