## Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only

Programming crisis.............Need help writing a program in pascal Posted by tahittie on 21 Jan 2012 at 7:32 AM
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.

Re: Programming crisis............ Posted by Actor on 24 Jan 2012 at 8:34 PM
What have you coded thus far?

Re: Programming crisis............ Posted by tahittie on 25 Jan 2012 at 8:56 AM
I stopped trying it because nothing was working so i need a fresh start................................
Re: Programming crisis............ Posted by tahittie on 25 Jan 2012 at 8:58 AM
I stopped trying it because nothing was working so i need a fresh start................................
Re: Programming crisis............ Posted by tahittie on 25 Jan 2012 at 9:00 AM
I stopped trying it because nothing was working so i need a fresh start................................

## Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.