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

3 A me \"he user a·spu. 40 ond 26.5 as the input date for the following C.. prog

ID: 3725992 • Letter: 3

Question

3 A me "he user a·spu. 40 ond 26.5 as the input date for the following C.. program, what wia the EXACT output of tra-program? (20 points) using namespace deuble Get detad doulde Cempute Grees Salarytdoulbile, doubdej, double Cempute Tax (doublel double Compute Net Selary (doubde, double) void Dieplay indo (double) double rate, weekly houre, grosssalary, Tax, Net weekly houre-Getdata ate Get datal) ross palary Compute Gross Salarytweekly hours, rate ax -Compute Tax (uross, salary) Net Compute Net Salary (igross salary, Tax) Display into(Tax) Display info(Net) return Q double Get, data(void) double data cin » data, return data double Compute Gross Salaryídouble WH, double R) double GS return GS; double Compute Tax (double GS) double Tax; if (GS>500.00) Tax GS 0.25 else Tax GS 0.15 return GS double Compute Net Salary (double GS, double T) double NS NS GS.T return NS void Display jnfo (double info) cout cc info

Explanation / Answer

Output:

Explanation

// taking user input 40 and 26.5
weekly_house = Get_data();
rate = Get_data();

// calculates gross salary which is 40*26.5 = 1060
gross_salary = Compute_Gross_Salary(weekly_house,rate);

// calculates tax which is 1060*0.25 = 265
Tax = Compute_Tax(gross_salary);

// calculates net which is 1060 - 265 = 795
Net = Compute_Net_Salary(gross_salary,Tax);

// prints output
Display_Info(Tax);
Display_Info(Net);

Output:

  265  795  

Explanation

// taking user input 40 and 26.5
weekly_house = Get_data();
rate = Get_data();

// calculates gross salary which is 40*26.5 = 1060
gross_salary = Compute_Gross_Salary(weekly_house,rate);

// calculates tax which is 1060*0.25 = 265
Tax = Compute_Tax(gross_salary);

// calculates net which is 1060 - 265 = 795
Net = Compute_Net_Salary(gross_salary,Tax);

// prints output
Display_Info(Tax);
Display_Info(Net);