Answered You can hire a professional tutor to get the answer.

QUESTION

Program 03: Check Out at the 10$ Store (CheckOut.java) Use your other two functions for this program. At the 10$ store nothing is more than $10....

Program 03: Check Out at the 10$ Store (CheckOut.java)

Use your other two functions for this program. 

At the 10$ store nothing is more than $10.00. Prompt the user for the price of their item (.50 cents to $9.99 dollars) using the getRangedDouble method and continue to input items as long as they indicate that they have more using your getYNConfirm method. Display the total cost of the item(s) to 2 decimal places with printf. 

Past your output results here:

Part E and Program 04: Pretty Header (PrettyHeader.java)

This program does not use any of the previous methods but requires you to write additional one.

Create method (in SafeInput) that creates a Pretty header like this:

*****************************************************************

***                                    Message Centered Here                                          ***

*****************************************************************

public static void prettyHeader(String msg)

The output is always 60 characters wide for each line. Use loops to print out the lines. Long output statements of stars are not allowed! (Use loops instead.)

Center the msg on the second line with 3 stars on either end. HINT: use msg.length() to determine the length in characters of the msg and then use this info to calculate how to center it within the 60 character wide header.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question