Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Programming crisis.............Need help writing a program in pascal
You are a barber at a local hair salon. The money you earn is dependent on the number of clients you serve within a month (6 days per week). Each customer pays $10.00 per haircut.
Write a structured program that will calculate the amount of money you will earn for a month.
Use the following guidelines:
(a) Write the program header.
(b) Write all variables.
(c) Ensure that the variables can store whole numbers.
(d) Set the number of days in your week to 6.
(e) Set the cost of a haircut to 10 ($10.00).
(f) Prompt the user for the number of weeks in the month.
(g) Allow the user to enter the number of weeks in the month.
(h) Prompt the user for the number of clients seen per day.
(i) Allow the user to enter the number of clients seen per day.
(j) Calculate your salary as 70% of the total money you collected.
(k) Print your salary after a prompt which says "Salary:".
(1) Write the closing statements of your program.
(m) February is customer appreciation month. Clients are charged $8.00 per haircut. Write
the program line which will show this change in cost of a haircut.
0 · ·