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 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
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, 03.04.2020 06:39
question
Health, 03.04.2020 06:40
question
Mathematics, 03.04.2020 06:41