subject

Write the following static methods. assume the reference variable input for the scanner class and any global variables mentioned are already declared. use printf.

a. a method called tickets() that prompts for the number of tickets to be purchased and stores it in a global variable called nooftickets. think about the data type.

b. overload the method coded in 1a above so that it accepts the number of tickets and the price for a ticket through its parameter list, and returns the cost for the ticket(s). no prompts are needed.

c. a value-receiving method that accepts the cost for a ticket purchase and adds it to a global variable called monthlyfun.

d. a method that accepts yearlyfun and yearlyfunbudget through its parameter list and tests to see if yearlyfun is over-budget, under-budget, or on-budget. if it is over-budget return the message "way too much fun! over-budget! "; under-budget return "little more fun! under-budget! "; and on-budget "just the right fun! " on-budget! ". no prompts are needed.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
question
Computers and Technology, 24.06.2019 16:50
Ramp charts are generally created in wordlotusexcelpowerpoint
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
You know the right answer?
Write the following static methods. assume the reference variable input for the scanner class and an...
Questions
Questions on the website: 13722363