Reference no: EM131274855
Java program showing a Loop, Decision Structure, and an array for a company that sells school supplies to children and prints out a receipt in a console window for the user at the end.
Children purchase no more than 10 school supplies at a time (so this should be the size of any arrays you have if you need a number depending on how you set it up.)
Here is the Table of things the person operating the Java Program can choose from based on what the child chooses:
Item Number
|
Item Name
|
Price
|
1
|
Box of Crayons
|
4.25
|
2
|
Pencil
|
.15
|
3
|
Paper
|
.05
|
4
|
Eraser
|
.10
|
Requirements:
1. The program should ask the user for the item number for an amount of items. The user should not directly enter the price. (You will need to use Ifs or a Switch Case decision structure to find that out.)
2. The loop needs to control the entry of the item choices one by one (you can ask the user for a number of items to enter or use a sentinel variable. It is up to you. You must demonstrate a loop though.)
3. The program should store the Item Names and Prices in separate arrays (or one message with both in a string array if you want to do it that way), and it should print out all of the items at the very end of the program when the program is over.
4. Finally, print the total of all the items the user selected. There should be a total for the supplies that are being purchased at this store.
Explain whether or not the intruder is liable for his action
: Explain whether or not the intruder is liable for his actions. Explain your legal duties and responsibilities to Sharon and Daryl. Differentiate among some of the potential torts that might arise from this business context. Discuss ways to prevent or..
|
Represented with each signal change
: A carrier wave is modulated with 4 amplitudes and 4 phase changes; how many bits can be represented with each signal change?
|
Describe type of communication mechanism that can be adopted
: Describe the types of communication mechanisms that can be adopted by Richard to help ensure better understanding and co-ordination not only with existing employees, but also with new employees?
|
How might parents schools the juvenile courts
: How might parents, schools, the juvenile courts and service providers better communicate and work together to identify treatment and behavioral needs of juvenile offenders and to create cross-disciplinary approaches to case management?
|
Determining the loop-decision structure
: Java program showing a Loop, Decision Structure, and an array for a company that sells school supplies to children and prints out a receipt in a console window for the user at the end.
|
Concerning the market test of the new cups and carriers
: Concerning the market test of the new cups and carriers, I have a few suggestions that may be helpful, although the final decision is yours - During the third weekend we'll have someone make a survey at the store to determine its acceptance
|
What made the individuals professional
: Describe and explain what you viewed. Answer the following questions in your response: Were the individuals professional? What made the individuals professional (consider attire, communication skills, presentation of self, etc.)?
|
Identify the resources required for implementation
: Describe the range of available options from which a VPN solution can be selected. Identify the resources required for implementation.
|
Display the proper message on that and terminate
: Display the user's name (first and last), hourly rate, hours worked, withholding tax percentage, withholding tax and gross pay. When a user is not an employee - display the proper message on that and terminate the application. Use logical AND and OR ..
|