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

  Illustrate the short run effects on the macro-economy

Illustrate the short run effects on the macro-economy by using the aggregate supply-aggregate demand model. Be sure to indicate the direction of change in Real GDP, the Price Level and the Unemployment Rate. Label all curves and axis for full cred..

  It is estimated that the financial crisis of 2008 led to a

it is estimated that the financial crisis of 2008 led to a loss of 7 trillion in the real estate industry due to the

  Illustrate what happens to an individual persons

Illustrate what happens to an individual person's demand curve for BlackBerry phones as the number of other Blackberry users declines.

  Question regarding the taxation and spending

What are the government efforts to influence the economy through taxation and spending?

  By specializing in the production of one good

By specializing in the production of one good, a company is able to benefit from economies of scale which increases its revenue. Which of the following is an attribute of specialization?

  Calculate labor force participation rate

What is national saving? What is private saving? How are these three variables related and what is Labor Force Participation rate? Calculate Labor Force Participation rate.

  Who currently has an incentive to care about the wild tiger

most wild asian tigers are the common property of the humans and governments that control the land they inhabit. why does this pose a significiant problem for maintaining the wild tiger population in the future

  Hacking of memory or hacking of ram means

1. Describe what hacking of memory or hacking of RAM means. 2. Examine the common tools that hackers use to hack into memory of computing devices. Detail two (2) real-life examples of such tools in action.

  Elucidate what is the effect of an increase in the quantity

Elucidate what is the effect of an increase in the quantity of money. What is the difference between real variables and nominal variables.

  Do workers at airbus to have the same marginal product

Recently, the Boeing Commercial Airline Group (BCAG) recorded orders for more than 15,000 jetliners and delivered more than 13,000 airplanes. To maintain its output volume, this Boeing division combines efforts of capital and more than 90,000 work..

  Describe an effluent fee

A good which if supplied to one person is supplied to all and whose consumption by one individual does not prevent its consumption by another individual is known as:  a private good. a public good. an external good. an internal good.

  How is unemployment measured

Explain why there is unemployment in your country of birth and How is unemployment measured - Classify underemployment accompanied by practical examples reflecting on the Australian labour market.

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