Calculate and display the total retail value of all products

Assignment Help JAVA Programming
Reference no: EM13853818

Decision Control and Loops with User Interaction:

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). 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). All 15 items below are for a single purchase. 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)

Your application must calculate and display the total retail value of all products sold after all five pairs of inputs are completed. You must also display the line total and cumulative order total after each new pair of input values (i.e. a product number and its quantity) is entered. You must also show the input of the sentinel value and the resulting display of the total order amount.

(taken from Deitel&Deitel, 2012, p. 194).

1. You may use the Windows Command Prompt command line interface or any Java IDE you choose to compile and execute your program.

2. You are to submit the following deliverables to the Assignment Dropbox in a single Microsoft Word file:

a. A screen snapshot of your Java source code (just the beginning is OK) as it appears in your IDE (e.g., jGRASP, Net Beans, Eclipse, etc.) or editor (e.g., a Windows Command line more of the .java file's first screen).

b. A listing of your entire Java source code in the same Microsoft Word file as item a). The source code should be placed in the Word file so that it follows the screen snapshot from item a). To obtain the copy of your source code, you can simply copy and paste the text from your IDE into Microsoft Word. Be sure to maintain proper code alignment by using Courier font for this item.

c. A screen snapshot of your program's input and output in the same Microsoft Word file, and following item b). You must include screen snapshots of all inputs and all outputs, not just a sample.

• Your instructor will compile and run your program to verify that it compiles and executes properly.

• You will be evaluated on (in order of importance):

o Inclusion of all deliverables in Step #2.

o Correct execution of your program.

o Adequate commenting of your code.

o Good programming style (as specified in the textbook's examples).

o Neatness in packaging and labeling your deliverables.

Deficiencies in any of the above areas are subject to deductions in each area, based on the severity of the deficiency.

Reference no: EM13853818

Questions Cloud

Write the pseudocode for the flowchart : Write the pseudocode for the flowchart below, and list what the output will be if the input fornum is 8.
Company''s reason for implementing the change. : Company's reason for implementing the change.
What are the critical issues surrounding newly released taps : What are the critical issues surrounding the newly released tapes? How should Peter Bijur and Texaco respond to the allegations? How should the company respond to the publicity
What is the big-o run-time of the remove operation : What is the big-O run-time of the Remove operation for an array-based list? Do your empirical results agree with this? Why or why not. What are the big-O run-times of the Get and Set operations for a linked-list? Do your empirical results agree wi..
Calculate and display the total retail value of all products : Your application must calculate and display the total retail value of all products sold after all five pairs of inputs are completed - Write a Java application that prompts the user for pairs of inputs of a product number
Measures and scales in quantitative research : Measures and Scales in Quantitative Research .Distinguish between Correlation and Regression.
Method of obtaining necessary approval : Method of obtaining necessary approval
Is the related lease finance or operating lease : Is the related lease Finance or operating lease and how would Lion Nathan account for any profit or loss on the sale of the pubs?
Estimate mwms additional funds needed for next year : Midwest Mining (MWM) expects its sales to grow by 20 percent next year. Last year, when the firm was operating at full capacity. Estimate MWM's additional funds needed (AFN) for next year.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java programming murach 4th ed 1open the ch06ex1invoice

1.open the ch06ex1invoice project. take a screenshot after you open netbeans and paste it into a word or word

  Can you provide the output of this program

Can you provide the output of this program - What is the output of following JavaScript code?

  Coin change program

coin change program. Make change using fewest number of coins. I'm attempting dynamic programming and i may be misunderstanding the algorithm

  Your task in this assignment is to develop a graphical user

your task in this assignment is to develop a graphical user interface based java program that can communicate with a

  Create a class named blooddata

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor

  Arguments a minimum value and a maximum value

Write a function that takes as arguments a minimum value and a maximum value and plots sin(x) from the specified minimum to the specified maximum.

  Create a jsp that displays the student name

Create a JSP that displays the student name and the current score, given the EMPLID and class ID. For each class, a text file is used to store the student name, EMPLID, and current score

  Become the leading coffee shop in arlington and to be the

primarily my project involves theestablishing of a javanet cafeacute where customers would enjoy coffee as they connect

  Create and code a program that uses three parallel numeric

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Prepare an app that calculates the product of a series

Prepare an app that calculates the product of a series of integers that are passed to method   product using a variable-length argument list.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  What is the greatest common divisor

What is the greatest common divisor of the Fibonacci numbers f100 and f101 by Euclid algorithm.

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