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

  Question 1 the lecture described how taxing income may

question 1 the lecture described how taxing income may change savings behavior. suppose instead that the government

  Big ben taxis and whitehall taxis

What is the highest fee that the government can charge for a license, if the government wants both Big Ben Taxis and Whitehall Taxis to purchase a license? (Note: A licence does not place a limit on the number of taxi trips a company can supply. Y..

  Calculate the government spending multiplier

Economics 442: Macroeconomic Policy - Problem Set 1. Assume G increases by ΔGO, and is completely bond financed (and there are no portfolio effects here). Calculate the government spending multiplier

  Driver price elasticity of demand

Two drivers - Tom and Jerry - each drive up to a gas station. Before looking at the price, each places an order. Tom says, "I'd like 10 gallons of gas." Jerry says, "I'd like $10 of gas." What is each driver's price elasticity of demand?

  Keynesian theory of money demand

If money demand for speculative purpose is$ 5000 and money demanded for transaction motive is $ 40 000. if money demanded for speculative purpose increases by $ 5000, what is the new total demand for money using Keynesian Theory of Money Demand.

  Gdp growth rate the business cycle

GDP growth rate the business cycle, fiscal policy and level of unemployment, monetary policy and interest rates, international trade, and demographics.

  Should the measure of imports used in the gnp

Should the measure of imports used in the GNP (or GDP) accounts therefore be defined to include only imports of final goods and services from abroad? What about exports?

  If the slope of the ae function was 0.8, from the mpc

If the slope of the AE function was 0.8, from the MPC, before taxes, and government introduced net taxes NT = 0.2Y, the slope of AE would be:             A)      1.0.             B)      0.6.

  What is meaning of an account labele statistical discrepancy

What is the meaning of an account labeled "statistical discrepancy" or "errors and omissions"? If this account is a credit, what does that imply about the measurement of other items in the balance of payments?

  Is the value of intermediate goods and services included

Why must the total value of expenditures in the economy be equal to total income? Is the value of intermediate goods and services included in GDP? Explain.

  Illustrate what are monthly fixed costs-quasi-fixed costs

Illustrate what are monthly fixed costs, quasi-fixed costs, and variable cost for Exquisite Portraits Inc.

  Fishers equation-crowding out effect

In the country of Wiknam, the velocity of money is constant. Real GDP grows by 5 percent per year, the money stock grows by 14 percent per year, and the nominal interest rate is 11 percent. What is the real interest rate?

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