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 02:00
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
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
Chemistry, 01.04.2020 01:36
question
Mathematics, 01.04.2020 01:36
Questions on the website: 13722363