Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For the following pseudocode, write ALL the appropriate statements that you woul

ID: 3532650 • Letter: F

Question

For the following pseudocode, write ALL the appropriate statements that you would put into the code module for the following in the Commission button. Format the total sales and commission to currency.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

2.      The user entered the following values in 3 text boxes: Wyoming Sales 6000, Utah Sales 21000, Montana Sales 17000.

Caculate total sales = Wyoming Sales + Utah Sales + Montana Sales.

#3Calculate commission = total sales * 5 percent

#4Display total sales and commission in totalSalesLabel and commissionLabel as currency

Explanation / Answer

1. Declare local variables for 3 state sales amounts, the total sales and the commission.


double sale1, sale2, sale3;

double total;

double com;


2. The user entered the following values in 3 text boxes: Wyoming Sales 6000, Utah Sales 21000, Montana Sales 17000.


sale1 = 6000; //or you can enter the varaible that you used to enter the value from user

sale2 = 21000;

sale3 = 17000;


Caculate total sales = Wyoming Sales + Utah Sales + Montana Sales.


total = sale1+sale2+sale3;


#3Calculate commission = total sales * 5 percent


com = total * 0.05;


#4Display total sales and commission in totalSalesLabel and commissionLabel as currency


System.out.println("Total sales is $" + total);

System.out.println("Commission is $" +com);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote