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

  How to modify bellman-ford algorithm to find and print

Show how to modify the Bellman-Ford algorithm to find and print a negative weight cycle (reachable from the source, s) in a weighted directed graph G if one exists.

  Create the table relationships

make one query, your choice. Remember a query answers a question. As an example, list all household electronics that are greater in value than $200. Please ensure that the query title reflects what the query is about.

  Point out the physical memory location corresponding to the

a computer system with 16k of memory a memory management unit with a page size of 2000 and the following page

  Managed care organizations and information technology

Normal 0 false false false EN-US X-NONE X-NONE Managed Care Organizations and..

  Print all lines where the birthdays are in november

Print all lines where the birthdays are in November or December - Append three asterisks to the end of lines starting with Fred

  How to convert a string of binary into decimal

how to convert a string of binary into decimal and a decimal into binary using java

  Assembly program

Specify the assembly language program (of equivalent binary instructions), created by a compiler from following pseudo-code program. Suppoose all variables are integer.

  Compare the pros and cons of 3g and 4g technology to

there are a number of cellular phone companies each serving their own unique geographical areas. likewise they each may

  What are the capabilities of odd parity

How many bits are needed to uniquely represent a code that includes.

  What federal government agency oversees the cpic operation

What is the the relationship of IT governance to IT policy - What federal government agency oversees the CPIC operation?

  Program that prompts the user to enter his height in inches

make a complete C++ program that prompts the user to enter his or her height in inches and outputs the following.

  Write a program that will read in a list of numbers

Write a program that will read in a list of numbers, triple each number in the list and print the result.

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