Write a java application that prompts the user for pairs

Assignment Help Computer Engineering
Reference no: EM131184759

General Summary:

For assignment, write a Java application that prompts the user for pairs of inputs of a product number (1-5), and then an integer quantity of units sold (these are two separate prompts for input values).

Assignment Description:

Write a Java program to process the 15 items below for a single order. There are five sets of inputs as follows:

Product 1 1 unit (cost is $2.98 per unit)

Product 2 2 units (cost is $4.50 per unit)

Product 3 3 units (cost is $9.98 per unit)

Product 4 4 units (cost is $4.49 per unit)

Product 5 5 units (cost is $6.87 per unit)

You must use a switch statement and a sentinel-controlled loop (i.e., a loop that stops execution when an out of range value, such as -1, is input).

You must show all user inputs, including the product numbers, quantities, and sentinel value. You must also show all program outputs.

Your application must calculate and display the cumulative total order amount after each of the five pairs of input values is entered.

You must also show the total order amount after the sentinel value is entered.

Only showing a subset of all the required inputs and outputs will result in lost points.

Deliverable:

Put everything in a single Word or PDF file, number your steps, and keep the steps in order.

At the top of your Word or PDF file include the course, the program number, your name, and the date completed.

Also include this information in the source code program header of your source code files. Include additional comments as necessary in

your source code, and maintain consistent indentation for good programming style, as shown and discussed in our text.

Include the following three items in your file, number them, and put them in this order:

A screen snapshot of a portion of your Java source code in your IDE for each class of your program

The complete source code listings for all of your Java classes

Screen snapshots of your complete program output

Reference no: EM131184759

Questions Cloud

Briefly describe the tpm waterfall method : Briefly describe the TPM waterfall method and briefly describe one or more Agile project management approaches.
Discuss human rights as it relates to the controversy : In 1,000-1,250 words, consider the following: Discuss human rights as it relates to the controversy. Explain ethical implications that may arise for both sides of the controversy
Determine the functions of a behavior : Describe how teachers collect data in order to determine the functions of a behavior. Analyze the importance of collecting and reviewing data before implementing specific interventions to address challenging behavior
What is the resistance and inductive reactance of the trace : A PCB trace is 0.008 in wide and 0.0014 in thick. The trace is located 0.020 in above a ground plane. What is the resistance and inductive reactance of the trace at 100 MHz?
Write a java application that prompts the user for pairs : Write a Java application that prompts the user for pairs of inputs of a product number (1-5), and then an integer quantity of units sold (these are two separate prompts for input values).
What is the cross-sectional area of each conductor : Compare the results and draw your conclusions with respect to the characteristics of the two conductors.
Create opportunities to change behavior : What are the best strategies for the performance psychology practitioner to invoke in an intervention plan in order to create opportunities to change behavior? Why
Relationship between cognitive development and poverty : Describe the relationship between cognitive development and poverty. How does poverty in the U.S. compare to poverty in other nations & cultures
What is the maximum diameter for one of the holes : A product requires 20 dB of shielding at 200 MHz. It is planned to use 100 small round cooling holes (all the same size) arranged in a 10 by 10 array. What is the maximum diameter for one of the holes?

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  What are the parallel arrays

The memory address of the first array location is known as ?Java exception thrown if an array index is out of bounds.

  How to use ms access and create a database

How to use MS Access and create a database

  Ms access usually suggested as a good candidate

Why is a PC based DBMS like MS Access often suggested as a good candidate to use in story boarding/prototyping the user interface presentation screens and basic database functionality for the new database development (even though MS Access is not ..

  What control mechanisms at your organization

What control mechanisms at your organization are (or should be) the most useful or important for the success of DHL?

  Describe the best approach to integrating domain-specific

q1. write a 200- to 300-word short answer response that addresses the followingwhat is the best approach to integrating

  How to create a checking account balance code

compute the balance by adding deposits and subtracting service charges and checks. Include buttons for calculate, Clear, Print, and Exit. Please put comments in the code.

  Find that a successful vectorized implementation is faster

E19: Numerical Methods for Engineering Applications Spring 2016 - HOMEWORK 13. You will find that a successful vectorized implementation is vastly faster than one with explicit loops. On my laptop, for N = 32, the looped code takes about 130 ms per..

  What is the most favorite loop structure

What is the most favorite loop structure. How may you use it in a real business programming problem.

  What is resolution of ultra extended graphic array adapter

What is the resolution of an Ultra Extended Graphic Array adapter? Which of the following is a type of product that complements the human body's best posture and functionality?

  Computer hardware purchases over the next five years

what criteria will you use to make the purchases.

  Create the following symbolic equations

Create the following symbolic equations.

  Create a draggableinterface that specifies a single method

Create a DraggableRectangleclass that implements this method. See Lab 5: Drag & Dropfor details of how to do this. The idea behind the lab exercise is what you need, not the exact code. The code will be different because this is not Wheels.

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