Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++, please! You're the administrator of a school district and you have to purchase art supplies for kindergarteners in bulk for all schools in the
C++, please!
You're the administrator of a school district and you have to purchase art supplies for kindergarteners in bulk for all schools in the district based on their enrollment. You need to buy one art kit per student at $4.50, and you get a discount for all the kits, based on the number of art kits you purchase. Discount rates are as follows: Quantity Discount 100-199 10 % 200 - 399 15 % 400 - 599 20 % 600 or more 25 % Write a program that takes the number of students (integer) in the school district as input, and outputs the total cost (double) for buying art kits for each student, as shown in examples below. If user inputs negative values for the number of students, then print "Invalid input." The total cost should be formatted with a two-digit precision as shown below. You can use the setprecision function with the fixed manipulator fromStep 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