*From now and on yourLastName will be changed to your last name. *Your program should change White to your last name. *Your program should change McKINLEY WHITE to your name. *Change Mary Lane to the name of user who is using the Investment Application  entered from the keyboard. *Write the file name as the first comment line at the top of the program. *After running your program, get the picture of the output window from your program with your name on to paste at the bottom of the pseudo-code to turn in   *Step1: Read the requirement of each part; write the pseudo-code in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Lab2_pseudoCode_yourLastName. *Step2:  start editor (for example eClipse) create the project with the following project name:                                 Part 1: SU2022_LAB2PART1_yourLastName                       -add a driver class (file with extension .java)  that contain main()                           Part 1: Class: SU2022_AnnualSalaryCalculatorr_yourLastName   *Step3: follow step by step in the pseudo-code (or the flowchart) to write the java code in main() or driver class *Step:4 compile and run the program. *Step5: debug if there are any errors to complete the program LAB2 PART1 REQUIREMENT IF YOU DO NOT HAVE THE PSEUDO-CODE, YOU HAVE TO READ THE BELOW REQUIREMENT THEN WRITE THE PSEUDO-CODE BEFORE WRITING THE CODE   Add the code to the main() in the driver class SU2022_AnnualSalaryCalculator_yourLastName to create the application that helps employees to calculate their annual salary they get after a year.   The application should display message to ask users to enter their information from the keyboard about:           * employee name (String)           * hourly salary (float)           * number of working hours in each week (int) All lines of code that are used to display the message to ask for the input and all lines of code to read input cannot be counted as the output. These input lines should be done before continue do the following   One year has 52 weeks, then the formula to calculate the annual salary:          Annual salary = hourly salary * number of working hours per week * 52   Display the result in the following format. All 9 output lines should go together. The information is displayed in two columns. The information of the second column should be aligned to the right and the decimal numbers should be displayed with 2 decimal digits. (To learn how to format the output, read the instruction from HOW TO DO LAB)   For example: if the name of the employee is `Mary Lane, your name is McKINLEY WHITE, hourly salary is 20.49 and number of working hours in one week is 40 then the output is as below:   ------------------------------------------------------ File: SU2022_AnnualSalaryCalculator_White.java Annual Salary Application – McKINLEY WHITE ------------------------------------------------------ Name of Employee:                      Mary Lane Hourly salary:                             20.49 Number of working hours in each week:      40 ------------------------------------------------------ Yearly salary is:                       42619.20   *After running your program, take screen shot of the output and paste at the bottom of the pseudo-code document to turn in ITEMS TURN IN THE LAB ON TIME Part 1: The name of project and source file correct and files .class Part 1: pseudo-code, output pictures Part 1: Define variables, read input Part 1: calculate the result correctly Part 1: output 9 lines in columns, numbers in 2 decimal digits, change McKINLEY WHITE to your name, separate the output from input Part 1: compile without errors, qualified the requirements, the code indented easy to read Part 1: File name at the top and write the comments

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

*From now and on yourLastName will be changed to your last name.

*Your program should change White to your last name.

*Your program should change McKINLEY WHITE to your name.

*Change Mary Lane to the name of user who is using the Investment Application  entered from the keyboard.

*Write the file name as the first comment line at the top of the program.

*After running your program, get the picture of the output window from your program with your name on to paste at the bottom of the pseudo-code to turn in

 

*Step1: Read the requirement of each part; write the pseudo-code in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Lab2_pseudoCode_yourLastName.

*Step2:  start editor (for example eClipse) create the project with the following project name:        

                        Part 1: SU2022_LAB2PART1_yourLastName

                  

   -add a driver class (file with extension .java)  that contain main()  

                        Part 1: Class: SU2022_AnnualSalaryCalculatorr_yourLastName

 

*Step3: follow step by step in the pseudo-code (or the flowchart) to write the java code in main() or driver class

*Step:4 compile and run the program.

*Step5: debug if there are any errors to complete the program

LAB2 PART1 REQUIREMENT

IF YOU DO NOT HAVE THE PSEUDO-CODE, YOU HAVE TO READ THE BELOW REQUIREMENT THEN WRITE THE PSEUDO-CODE BEFORE WRITING THE CODE

 

Add the code to the main() in the driver class SU2022_AnnualSalaryCalculator_yourLastName to create the application that helps employees to calculate their annual salary they get after a year.

 

The application should display message to ask users to enter their information from the keyboard about:

          * employee name (String)

          * hourly salary (float)

          * number of working hours in each week (int)

All lines of code that are used to display the message to ask for the input and all lines of code to read input cannot be counted as the output. These input lines should be done before continue do the following

 

One year has 52 weeks, then the formula to calculate the annual salary:

         Annual salary = hourly salary * number of working hours per week * 52

 

Display the result in the following format.

All 9 output lines should go together. The information is displayed in two columns. The information of the second column should be aligned to the right and the decimal numbers should be displayed with 2 decimal digits.

(To learn how to format the output, read the instruction from HOW TO DO LAB)

 

For example: if the name of the employee is `Mary Lane, your name is McKINLEY WHITE, hourly salary is 20.49 and number of working hours in one week is 40 then the output is as below:

 

------------------------------------------------------

File: SU2022_AnnualSalaryCalculator_White.java

Annual Salary Application – McKINLEY WHITE

------------------------------------------------------

Name of Employee:                      Mary Lane

Hourly salary:                             20.49

Number of working hours in each week:      40

------------------------------------------------------

Yearly salary is:                       42619.20

 

*After running your program, take screen shot of the output and paste at the bottom of the pseudo-code document to turn in

ITEMS

TURN IN THE LAB ON TIME

Part 1: The name of project and source file correct and files .class

Part 1: pseudo-code, output pictures

Part 1: Define variables, read input

Part 1: calculate the result correctly

Part 1: output 9 lines in columns, numbers in 2 decimal digits, change McKINLEY WHITE to your name, separate the output from input

Part 1: compile without errors, qualified the requirements, the code indented easy to read

Part 1: File name at the top and write the comments

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education