The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Unable to create script to run progra
See Dropbox for Due Date
Â
Project Outcomes - Develop a Java program that:
Prep Readings:
zyBooks 1.3, 1.4, 2.11, 2.18, 3.8, 3.9
Project Requirements:
1.     In this project, you need to use methods of Scanner and String class that will allow the user to enter information about two products sold at a Grocery Store and display information about the products.
2.     Products will consist of the following data:
a.      productName – String
b.     quantity – integer
c.      unitPrice – double
3.     The program will
a.      prompt the user to enter the information for two products and store this information in the appropriately named variable. Assume product name is one word only and less than 10 characters.
b.     store the product name in proper case (first letter to upper case and the rest of the word to lower case. For example: apple becomes Apple, and ORANGE becomes Orange.
c.      calculate the total price of each product (quantity * unitPrice) and store this in an appropriately named variable. Assume both quantity and unitPrice are less than 1000.
d.     display the data for each product and the total price in a table (see below) with the follow requirements
                                                             i.     Product name in Proper case
                                                           ii.     Product name will be left justified.
                                                         iii.     Numbered data (qty, price and total price) will be right justified.
                                                         iv.     The price and total price will be 2 decimal places. (Use printf format specifiers)
4.     Include javadoc class comment following Project Comment Template on the content page.
5.     Sample run below:

Â
6.     The project requires one files to be turned in - Product.java (the source code of your Product program)
7.     Be sure to follow the Programming Project Submission Instructions posted by your instructor on the elearning site. The submission requirements are part of the grading for this assignment.
Â
Important Notes:
Â
m please see attached file
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly