Guest User

Untitled

a guest
Mar 10th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Use Python: Based on chapter 7 - Arrays. A car dealership wants to process sales information for each of his dealers. Ask the user to enter the number of dealers. For each dealer, store the name and the amount of sales in 2 arrays. Don’t allow the user to enter a negative number for sales. Calculate commission in dollars and store it in another array based on the following table:
  2.  
  3. Sales Commission
  4. $1 - $5000 5%
  5. More than $5000 to $15000 10%
  6. More than $15000 12%
  7.  
  8. Display total sales for the dealership.
  9. Display the total commission for the dealership.
  10. Display the dealer name and amount of sales and the amount of commission for all dealers.
  11. Ask the user for the name of a dealer and display the salary and commission. If the name is not in the list, display an error message.
Advertisement
Add Comment
Please, Sign In to add comment