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

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 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 Lab3_pseudoCode_yourLastName.

 *Step2 

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

                     

                        Part 2: SU2022_LAB3PART2_yourLastName

   -add data type class:

                        Part2: SU2022_Customer_yourLastName           

   -add a driver class that contains main()

                        Part 2: Class: SU2022_SavingMoneyCalculator_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.

 

FROM THIS LAB3, WE USE OBJECT ORIENTED PROGRAMMING TECHNIQUE TO WRITE THE CODE. IN ONE PROJECT (ONE PART) WE HAVE TWO TYPES OF CLASSES:

-DATATYPE CLASS (NEW FORMAT)

-DRIVER CLASS (CLASS CONTAINS public static void main(String[] args))

 

CLICK ON “HOW TO DO LAB” AT LAB3 ON ECAMPUS TO LEARN:

-HOW TO WRITE THE CODE OF A DATATYPE CLASS

-INSIDE main() OF DRIVER CLASS:

 *HOW TO CREATE AN OBJECT

 *HOW TO USE THE OBJECT TO ACCESS THE METHODS OF DATATYPE CLASS

 

LAB3 PART2 requirement

As part 1, you must use Object Oriented Programming to do this part with 2 classes:

  • data type class: SU2022_Customer_yourLastName
  • driver class: SU2022_SavingMoneyCalculator_yourLastName

 

DATATYPE CLASS

Class SU2022_Customer_yourLastName

Provide the UML of this class before writing the code.

Datatype class includes:

-data members: name (String), amount of money (float), interest rate (float)

-the no-argument constructor and parameterized constructor

-method to calculate and return the saving money by using the following formula:

             Interest amount = amount of money * interest rate

             Total saving money = amount of money + interest amount

 

-method toString() to create the output string in the requested format with the information displayed in 2 columns, aligned and decimal numbers in 2 decimal digits

 

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

File: SU2022_SavingMoneyCalculator_White.java

Saving Money Calculator Application – McKINLEY WHITE

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

Name of Customer:                    Mary Lane

Amount of Money:                      18765.75

Interest Rate:                            3.37%

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

Interest Amount:                        632.41

Total Saving Money:                   19398.16

 

DRIVER CLASS

Before writing the code, you must create the pseudo-code for the main().

 

The driver class named SU2022_SavingMoneyCalculator_yourLastName includes the function main().

 

In the function main(), after reading all the information of one customer about name, amount of money, interest rate. You must create the object of the above data type class SU2022_Customer_yourLastname; then use the object to access the method toString() to display the result of the saving money.

 

HOW TO GRADE THE LAB

Part 2: UML- pseudo-code – output pictures

1.5

Part 2: Class Customer: data members

1

Part 2: no-argument constructor, parameterized constructor

2

Part 2: method to calculate interest amount

1

Part 2: methods to calculate saving money

1

Part 2: method toString – prepare for the output string

2

Part 2: Driver class – declare variables – read input

1

Part 2: Create the object

1

Part 2: Display the output as requested by access toString

1

Part 2: Compile success, qualified the requirement,

3

Part 2: Write comments, file name at the top

1

Total

30

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 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
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