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

  Excel file for further analysis

Then after naming each test on the program, the test was executed. After the test was completed, the data obtained was exported to an excel file for further analysis.

  Define the quicksort algorithm to sort vector v

define the quicksort algorithm to sort vector v. During each pass, list all exchanges of a pair of elements in the lower and upper sublist.

  Find whether the numbers would be an arithmetic

assume you are given a list of n integers in random order. Describe an algorithm that will determine whether the numbers would be an arithmetic progression if they were sorted.

  Problem on crawler program

Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial cred..

  Assess the product by using the five-step plan which is

imagining yourself to be the customer construct a house of quality to provide the organization with your perspectives

  What dependencies there may be

For each one justify why you would select the particular file format and what dependencies there might be.

  Part-1task 1 the first task in this assignment tests your

part-1task 1 the first task in this assignment tests your knowledge of what is required to build a fully-functioning

  Design reportthe design report is a single team report that

design reportthe design report is a single team report that describes the functionality of the application in its final

  Do you think the conversion strategy was appropriate

Do you think the conversion strategy was appropriate? Regardless of whether you agree, what other conversion strategy could have been used?

  Implement the augmented lagrange multiplier method

Write a computer program to implement the augmented Lagrange multiplier method with a suitable method of unconstrained minimization.

  Briefly explain explanatory and predictive analytics

What is the purpose of the GROUPING SETS subclause and what is its primary use? What is data analytics? Briefly explain explanatory and predictive analytics.

  Multicast type connection

In DVMRP, routing messages are transmitted through a multicast type connection (a specific multicast address).

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