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: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Please help with writing this code.
Microsoft Word - CS 219 Unit 6 Ch 15 Assignment.doc
Unit 6 Chapter 15 Assignment Grading Information: This Program is due on Date Specified.
Comments are REQUIRED; flow charts and pseudocode are NOT REQUIRED.
|
Directions |
Points |
|
The files must be called <LiFiUnit6Ch15.java> LiFiSaleCheck.java (Sale Checker Class File) The files must be called as specified above, (LiFi = Your Last Initial Your First Initial) Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter. Only submit the .java files needed to make the program run. Do not submit the .class files or any other files. |
5% |
|
Style Components Include properly formatted prologue, comments, indenting, and other style elements as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892. |
5% |
|
Topics covered in chapter Topics with * are covered in this assignment. Ensure you use every item listed below in your completed assignment. *Exceptions and Exception Messages *try / catch *throws |
|
|
Basic Requirements Write a program that validates a sale in dollars and cents with a $ and a .(period). See sample output below. |
20% |
|
LiFiUnit6Ch15.java
|
20% |
o Print amount by calling:
• If error
o Call the getError() method on this LiFiSaleCheck object and print the
error message (see sample)
|
LiFiSaleCheck.java class Sales object should store the sale in 2 integer instance variables, dollars and cents, and include a string variable to hold the error. This should be initialized with null. LiFiSaleCheck Constructor:
• Print in the format $123.45 using both dollars and cents instance variables (if amounts like $4.2 is entered, should print $4.20) print alphabetic method: instance variables (if amounts like $4.2 is entered, should print 4 dollars and 20 cents) getError method: |
50% |
|
NOTE: Complete your activity and submit it by clicking "Submit Assignment" |
|
|
Total Percentage |
100% |
|
Sample |
|
|
Directions |
Points |
|
The files must be called <LiFiUnit6Ch15.java> LiFiSaleCheck.java (Sale Checker Class File) The files must be called as specified above, (LiFi = Your Last Initial Your First Initial) Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter. Only submit the .java files needed to make the program run. Do not submit the .class files or any other files. |
5% |
|
Style Components Include properly formatted prologue, comments, indenting, and other style elements as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892. |
5% |
|
Topics covered in chapter Topics with * are covered in this assignment. Ensure you use every item listed below in your completed assignment. *Exceptions and Exception Messages *try / catch *throws |
|
|
Basic Requirements Write a program that validates a sale in dollars and cents with a $ and a .(period). See sample output below. |
20% |
|
LiFiUnit6Ch15.java
|
20% |
o Print amount by calling:
• If error
o Call the getError() method on this LiFiSaleCheck object and print the
error message (see sample)
|
LiFiSaleCheck.java class Sales object should store the sale in 2 integer instance variables, dollars and cents, and include a string variable to hold the error. This should be initialized with null. LiFiSaleCheck Constructor:
• Print in the format $123.45 using both dollars and cents instance variables (if amounts like $4.2 is entered, should print $4.20) print alphabetic method: instance variables (if amounts like $4.2 is entered, should print 4 dollars and 20 cents) getError method: |
50% |
|
NOTE: Complete your activity and submit it by clicking "Submit Assignment" |
|
|
Total Percentage |
100% |
|
|
Unit 6 Chapter 15 AssignmentGrading Information:This Program isdueonDate Specified.Comments areREQUIRED; flow charts and pseudocode areNOT REQUIRED.DirectionsPointsThe files must be called <LiFiUnit6Ch15.java>LiFiSaleCheck.java(Sale Checker Class File)The files must be called as specified above, (LiFi = Your Last Initial Your First Initial)Proper coding conventions required the first letter of the class start with a capitalletter and the first letter of each additional word start with a capital letter.Only submit the .javafiles needed to make the program run. Do not submit the.classfiles or any other files.5%Style ComponentsInclude properly formatted prologue, comments, indenting, and other style elementsas shown in Chapter 2 starting page 64 and Appendix 5 page 881-892.5%Topics covered in chapterTopics with * are covered in this assignment. Ensure you use every item listed below in yourcompleted assignment.*Exceptions and Exception Messages*try / catch*checked and unchecked exceptions*generic catch block*throwsBasic RequirementsWrite a program that validates a sale in dollars and cents with a $ and a .(period).See sample output below.20%LiFiUnit6Ch15.java•Driver class should loop until “q” is entered to quit•If enter is not “q”, then create an instance of the LiFiSaleCheck object passingthe entry as an argument•If no error20%
Attachments:
-----------