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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:30, ninja12302
Some of the items below indicate the steps required to move a slide to a different location in a presentation. select those steps and indicate the order in which they should be performed to move the slide. (for example, if an item describes what you do first, select 1.) included in the list are items that are not part of the process. for these items, select n/a, an abbreviation for not applicable. 1 — first 2 — second 3 — third 4 — fourth 5 — fifth 6 — sixth n/a — not applicable drag the slide to the desired place. enter the slide position desired. hold the mouse button down. select move from the tools menu. select the slide. switch to the notes view.
Answers: 3
image
Computers and Technology, 22.06.2019 22:00, zay179
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
image
Computers and Technology, 24.06.2019 07:50, treytonmesser
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u. s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
Answers: 1
image
Computers and Technology, 24.06.2019 14:30, yeet74
Ahousehold consists of a married couple and their twin five-year old daughters. the couples children had no income and lived with their parents all of last year. how many exemptions can the couple claim on last years tax return or they file with the “ married filing jointly “ status? a. 4 b. 5 c. 3 d. 2
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 in other subjects:

Konu
English, 24.03.2021 20:50
Konu
Mathematics, 24.03.2021 20:50
Konu
Mathematics, 24.03.2021 20:50