Question: In JAVA!! Fall 2018 CS 140 Intro to Computing Project 1-Objects, input, formatted output Due: zip archive of entire project- upload to Moodle by Wed,

In JAVA!!
 In JAVA!! Fall 2018 CS 140 Intro to Computing Project 1-Objects,
input, formatted output Due: zip archive of entire project- upload to Moodle

Fall 2018 CS 140 Intro to Computing Project 1-Objects, input, formatted output Due: zip archive of entire project- upload to Moodle by Wed, Sep 12,2018, 11:55 pm Consspts covered in this assignment-keyboard inpat (Scanner class), formatted output to screen (printf), objects and classes, constructors, instance variables, getters and setters, UML diagram, date You are the Postmaster General of the brand new Ankh-Morpork Post Office! Your establishment has opened its doors for business and is testing several delivery destinations on the Discworld. You are delivering letters and packages to three destinations (Ankh-Morpork, Pseudopolis, Ueberwald), with predetermined (letter, package) to valid destinations. Ichde 6% tax in the receipt prices for all services. Write a program that prints a formatted receipt for valid mail pieces Fellow the steps A. Create a new project, call it Projectl B. Create a new class, name it Projectl. Create a new class, name it Mail C. Implement the mail class according to the following UML diagram. Do not add or alter methods, make sure you spell all names as in the UML. Make sure you have the correct visibility modifiers and return types Mail destination: String The standard constructor should do nothing else but set the instance variables to neutral dest: String ): void etostagn stanps: double): void values: the two Strings to an empty String the double to 0.0 Typer Ope . String ) : void + String + pePostage) : double D. Downlond the ProjectI Test java file from Moodle. Copy and paste its contents to your Projectl class E Compile both classes and run the main method from Projectl F Make sure your class passes all tests Download the Project1 Assignment. java file from Moodle. Copy and paste its contents into your Projectl class (replace all ode) H Finish the main method -as directed in the comments and below a Write code to complete all 10 steps as they are described in the comments Hints - Make sure you import the necessary classes Trim the input and ignore capitalization errors. This program is looking for particular keywords- "package" or "letter". Unless the input from the keyboard is an exact match, the program will not recognize the type of mail as valid. This means that input Strings like eg.letter", "PAckage", "Letter "will be considered to be an error. To avoid that you can remove (trim) leading and trailing spaces from the input String and disregard capitalization by turning the letters in the string to lower case. Example String word- oh NOES! "; word- word.trim) l/the value of word is now "oh NOES!" word word.toLowerCase (): l/the value of word is now "oh noes!" Fall 2018 CS 140 Intro to Computing Project 1-Objects, input, formatted output Due: zip archive of entire project- upload to Moodle by Wed, Sep 12,2018, 11:55 pm Consspts covered in this assignment-keyboard inpat (Scanner class), formatted output to screen (printf), objects and classes, constructors, instance variables, getters and setters, UML diagram, date You are the Postmaster General of the brand new Ankh-Morpork Post Office! Your establishment has opened its doors for business and is testing several delivery destinations on the Discworld. You are delivering letters and packages to three destinations (Ankh-Morpork, Pseudopolis, Ueberwald), with predetermined (letter, package) to valid destinations. Ichde 6% tax in the receipt prices for all services. Write a program that prints a formatted receipt for valid mail pieces Fellow the steps A. Create a new project, call it Projectl B. Create a new class, name it Projectl. Create a new class, name it Mail C. Implement the mail class according to the following UML diagram. Do not add or alter methods, make sure you spell all names as in the UML. Make sure you have the correct visibility modifiers and return types Mail destination: String The standard constructor should do nothing else but set the instance variables to neutral dest: String ): void etostagn stanps: double): void values: the two Strings to an empty String the double to 0.0 Typer Ope . String ) : void + String + pePostage) : double D. Downlond the ProjectI Test java file from Moodle. Copy and paste its contents to your Projectl class E Compile both classes and run the main method from Projectl F Make sure your class passes all tests Download the Project1 Assignment. java file from Moodle. Copy and paste its contents into your Projectl class (replace all ode) H Finish the main method -as directed in the comments and below a Write code to complete all 10 steps as they are described in the comments Hints - Make sure you import the necessary classes Trim the input and ignore capitalization errors. This program is looking for particular keywords- "package" or "letter". Unless the input from the keyboard is an exact match, the program will not recognize the type of mail as valid. This means that input Strings like eg.letter", "PAckage", "Letter "will be considered to be an error. To avoid that you can remove (trim) leading and trailing spaces from the input String and disregard capitalization by turning the letters in the string to lower case. Example String word- oh NOES! "; word- word.trim) l/the value of word is now "oh NOES!" word word.toLowerCase (): l/the value of word is now "oh noes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!