MIT Questions
Question 1
An automobile dealership uses CODE=1 for new automobiles, CODE=2 for used automobiles, and CODE=3 for separate accessories.
A saleman's commissions are as follows, on new automobiles, 3% of the selling price but a maximum of $300; on used automobiles. 5% of the selling price but with a minimum of $75; on accessories, 6% of the selling price.
1.1 Draw a flowchart that inputs CODE and PRICE and outputs COMMISSION
1.2 Write a pseudocode programme with input CODE and PRICE and output COMMISSION.
Question 2
Fifty men are members of a golf club. The annual dues that each of them pay depends on their annual salary as shown below.
Annual salary: Less than $200000 - Annual Dues: $1500
Annual salary: From 200000 to $300000 - Annual Dues: $1500 + (1% of excess over $200000)
Annual Salary: More than $300000 - Annual Dues: $2500 + (1.5% of excess over $300000)
1.1 Draw a flowchart that inputs NAME and SALARY and outputs NAME na d DUES
1.2 Write a pseudocode programme that inputs NAME and SALARY and outputs NAME and DUES
Price $ 5.00