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 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
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, 20.09.2020 05:01
question
Chemistry, 20.09.2020 05:01
question
Mathematics, 20.09.2020 05:01
Questions on the website: 13722360