What does the following algorithm show Algorithm   Begin [initialization]                baseSalary ← 250             perCarAmount ← 50             additionalBonus ← 0 monthlySalary ← 0 read(“Enter the employee name”)             Write(empName) read(“Enter the total number of cars sold in Month”) Write(carSold) saleAmount ← carSold*perCarAmount monthlySalary←baseSalary+saleAmount if (carSold>10) …..then additionalBonus ←0.05*(saleAmount) End if   monthlySalary← saleAmount+ additionalBonus read(“Name of the Employee is :”,empName) read (“Total Number of cars sold: ”,carSold) read(“Base Salary: “,baseSalary) if(additionalBonus is not 0) read(“AdditionalBonus for sales : ”,additionalBonus End if read(“Total Salary for the month: ”,monthlySalary End

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 11PP
icon
Related questions
Question
100%

What does the following algorithm show

Algorithm

 

Begin

[initialization]

               baseSalary ← 250

            perCarAmount ← 50

            additionalBonus ← 0

monthlySalary ← 0

read(“Enter the employee name”)

            Write(empName)

read(“Enter the total number of cars sold in Month”)

Write(carSold)

saleAmount ← carSold*perCarAmount

monthlySalary←baseSalary+saleAmount

if (carSold>10)

…..then additionalBonus ←0.05*(saleAmount)

End if

 

monthlySalary← saleAmount+ additionalBonus

read(“Name of the Employee is :”,empName)

read (“Total Number of cars sold: ”,carSold)

read(“Base Salary: “,baseSalary)

if(additionalBonus is not 0)

read(“AdditionalBonus for sales : ”,additionalBonus

End if

read(“Total Salary for the month: ”,monthlySalary

End

Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Computational Systems
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage