Person operating the java program

Assignment Help Macroeconomics
Reference no: EM131271522

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.

Reference no: EM131271522

Questions Cloud

Select a social media site to investigate what site offers : Social Media such as FaceBook, Google Apps and Second life is now used for e-commerce type of activities. Select a Social Media site to investigate what the site offers. You will have the opportunity to use this site with the marketplace in future..
Make an argument for or against corporate diversification : What do you believe is the most significant demographic change facing the American workplace? What are the important dimensions of diversity that might matter at work or in your classroom? What is the primary form of powere we tend to use frequently?..
Who is liable for daves negligence for causing car accident : Explain who is liable for Dave's negligence for causing the car accident, and explain who is liable for Dave's intentional tort for punching Victor. Provide your answers in a case analysis of a minimum of 500 words.
Arguments for prorating production-volume variance : What are the arguments for prorating a production-volume variance that has been deemed to be material among work-in-process, finished goods, cost and cost of goods sold as opposed to writing it all off to cost of goods sold?
Person operating the java program : 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 ..
Create a nice abstract and an introductory paragraph : Create a nice abstract and an introductory paragraph Introduction page for my Capstone Project. - Given the subject is "Diabetes Prevention Program in Older Adults".
There are many more adverse medical events than lawsuits : Study after study indicates that there are many more adverse medical events than lawsuits. Additionally, Statistics compiled by Physician Insurers Association of America indicate that juries are reluctant to find a physician negligent. Seventy percen..
Discuss what marketing strategies are used in social media : Social Media such as FaceBook, Google Apps and Second life is now used for e-commerce type of activities. Discuss what marketing strategies are used in Social Media E-Commerce
Overall framework for project integration management : Describe the overall framework for Project Integration Management as it relates to the other project management knowledge areas and the project life cycle.

Reviews

Write a Review

Macroeconomics Questions & Answers

  Identifying good alternative solutions

What are the one or two most challenging issues in identifying good alternative solutions that meet the IT acquisition requirements that were defined? Explain your reason(s) and how the issue(s) can be successfully addressed

  Function in python programming

Giving an example show which function in Python programming is used to convert a given string to a pattern?

  Explain specific effects of price controls at given prices

Identify and explain specific effects of price controls at given prices. Using the hypothetical information in the table on the market for gasoline, complete the following questions: Price of Gasoline (per gallon) Quantity Demanded

  Name 2 events that contributed to the growth

if you were born in 1991 ,research govenment purchases for the year 1996. Then name 2 events/products/ services that contributed to the growth.

  Bank reserves and the discount rates

Explain how bank reserves and the discount rates would react to (i) a change in the RRR and (ii) an open market purchase of CB's bonds

  Inflation is a a term that is widely used in economics

Inflation is a a term that is widely used in economics. What happens when there is an Increases in the rate of inflation

  Describe the evolution of industrial production

Describe the evolution of industrial production in the U.S. from 1790 to 1860. Use statistics to describe changes in production levels. Please include references.NO plagiarizing.Need references and there is no word count.

  What are two main goals of federal aviation administration

What are two main goals of Federal Aviation Administration? Describe them. Who is current FAA Administrator? Tell me about him. According to the text, list and describe the six safety certificates issued by the FAA.

  Describe what type of foreign investments

Describe what type of foreign investments would be best for the economy's PPF. What are the opportunity costs of these decisions.

  Advantages and disadvantages of instituting an import tariff

Compare and contrast the advantages and disadvantages of instituting an import tariff, or an outright ban on the importation of certain goods into U.S. markets.

  Advertise the safety of cars

Many automobile manufacturers routinely advertise the safety of their cars, yet airlines generally do not even mention safety in their advertising. Can you suggest an explanation for this difference?

  Differentiate between goods and expensive goods

As an economy increase and productivity grow, real wages tend to rise - people get richer on aggregate. Real wage growth implies that people are able to buy more of the services that are in basket of goods.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd