Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me with this lab. And write a pseudo code in english list all steps on how to do this lab. And Please add
Please help me with this lab. And write a pseudo code in english list all steps on how to do this lab. And Please add comments
"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 Provide the pseudo-code and a java application to help Investors to calculate the profits after their investments. Through a broker, the Investors buy a number of shares then after a while they sale these shares when they see the share price is growing up. Frist, the application should declare variables, display message to ask the investors to enter their information from the keyboard about: * Investor name (string) * number of shares they want to invest (int) * purchase price of one share (float) * sale price of one share (float) The broker will charge commission fee rate 2% on the total of the purchase shares money and on the total of the sale shares money After calculating, the application must display the result on the screen in 11 output lines in the following format with the name and numbers should be aligned to the right and with 2 decimal digits. Notes: You must complete reading input before displaying the output and write the comments for each task (not for each line of the code) File: SP2023_ShareInvestment_Martinez.java Profit from the Investment: 6686.02 The formula to calculate the profit from the investment are: PURCHASE Purchase shares money = purchase price of share unit " number of shares Purchase Commission fee = Purchase money purchase commission rate Total of invested money= Purchase money + purchase commission fee SALE Sale shares money = sale price of share unit "number of shares Sale Commission fee = sale shares money * sale commission rate File: SP2023_ShareInvestment_Martinez.jaya Spring 2023 semester-LUIS MARTINEZ Profit from the Investment: 6686.02 The formula to calculate the profit from the investment are: PURCHASE Purchase shares money = purchase price of share unit number of shares Purchase Commission fee = Purchase money * purchase commission rate Total of invested money= Purchase money + purchase commission fee SALE Sale shares money = sale price of share unit * number of shares Sale Commission fee = sale shares money sale commission rate Total of money returned from investment = Sale shares money sale commission fee The protit from the investment = Total of money returned from investment Total of invested money LAB2 PART2 REQUIREMENT Provide the pseudo-code and Java application to help users to calculate the BMI rate of Adults. BMI (Body Mass Index) is a measure of body fat based on height and weight of adult men or women. The application should display message to ask and read from the keyboard users to enter the users' information from the keyboard about: * The name of user (string) * Height in inches (int) * Weight in pounds (int) The formula to calculate BMI: BMI=(weight703)i(heightheight) The BMI rate is displayed in 9 output lines in the following format with the name and numbers should be aligned to the right and with 2 decimal digits. Notes: You must complete reading input before displaying the output and write the comments for each task (not for cach line of the code) "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 Provide the pseudo-code and a java application to help Investors to calculate the profits after their investments. Through a broker, the Investors buy a number of shares then after a while they sale these shares when they see the share price is growing up. Frist, the application should declare variables, display message to ask the investors to enter their information from the keyboard about: * Investor name (string) * number of shares they want to invest (int) * purchase price of one share (float) * sale price of one share (float) The broker will charge commission fee rate 2% on the total of the purchase shares money and on the total of the sale shares money After calculating, the application must display the result on the screen in 11 output lines in the following format with the name and numbers should be aligned to the right and with 2 decimal digits. Notes: You must complete reading input before displaying the output and write the comments for each task (not for each line of the code) File: SP2023_ShareInvestment_Martinez.java Profit from the Investment: 6686.02 The formula to calculate the profit from the investment are: PURCHASE Purchase shares money = purchase price of share unit " number of shares Purchase Commission fee = Purchase money purchase commission rate Total of invested money= Purchase money + purchase commission fee SALE Sale shares money = sale price of share unit "number of shares Sale Commission fee = sale shares money * sale commission rate File: SP2023_ShareInvestment_Martinez.jaya Spring 2023 semester-LUIS MARTINEZ Profit from the Investment: 6686.02 The formula to calculate the profit from the investment are: PURCHASE Purchase shares money = purchase price of share unit number of shares Purchase Commission fee = Purchase money * purchase commission rate Total of invested money= Purchase money + purchase commission fee SALE Sale shares money = sale price of share unit * number of shares Sale Commission fee = sale shares money sale commission rate Total of money returned from investment = Sale shares money sale commission fee The protit from the investment = Total of money returned from investment Total of invested money LAB2 PART2 REQUIREMENT Provide the pseudo-code and Java application to help users to calculate the BMI rate of Adults. BMI (Body Mass Index) is a measure of body fat based on height and weight of adult men or women. The application should display message to ask and read from the keyboard users to enter the users' information from the keyboard about: * The name of user (string) * Height in inches (int) * Weight in pounds (int) The formula to calculate BMI: BMI=(weight703)i(heightheight) The BMI rate is displayed in 9 output lines in the following format with the name and numbers should be aligned to the right and with 2 decimal digits. Notes: You must complete reading input before displaying the output and write the comments for each task (not for cach line of the code)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started