Question
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,
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 and DUES
1.2 Write a pseudocode programme that inputs NAME and SALARY and outputs NAME and DUES
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