Path: utzoo!mnetor!uunet!portal!cup.portal.com!JJ From: JJ@cup.portal.com Newsgroups: comp.lang.fortran Subject: Fortran Problem -- HELP!! Message-ID: <4766@cup.portal.com> Date: 24 Apr 88 22:32:09 GMT Organization: The Portal System (TM) Lines: 59 XPortal-User-Id: 1.1001.4419 Hello, Lets have a little contest here, I'm going to give you all a problem, and lets see who can write the FORTRAN program to solve it first. C'mon this'll be fun!!! . Here we go.... . You are in charge of payroll for the ACME Vending Co., Inc.. It is your job to write a program which will print a payroll report for the 10 employees of the company. To prepare the payroll report, you must READ the identification number, hours worked, hourly rate, and tax rate, for each employee. After entering this information for all employees, the screen should be cleared before the OUTPUT is presented. All of this information is to be printed along with the gross pay, regular pay, overtime pay, deductions for taxes, and net pay. The last line of OUTPUT should be: "The total gross payroll for the week is _________". Overtime is considered anything over 40 hours per week. Overtime pay is worth 1.55 times the regular hourly rate. Output should look like this: NAME ID GROSS REG OVT DED NET PAY ==== == ===== === === === ======= The spacing between headings shown above is not significant. Here is some samples of the data that will be used to test the program: NAME ID HRS RATE TAX CARR 7056 56.8 6.71 .3 ELS 9111 63.2 7.3 .17 CAMPBELL 7958 40.4 7.5 .22 THERE WILL ALSO BE 7 MORE! So, there you have it... The first person who sends the CORRECT program listing WINS. You can use any version of FORTRAN you like, but keep it BASIC. There will be a panel of 4 people to judge the listings, and a prize WILL be awarded! So... G O T O I T !!!!! +----------------------------------------------------------------------+ |Address: ucbvax!sun!cup.portal.com!jj / "God loves YOU, just the | | _ _ Representing | way you are, he really, | | | | | | __ | really does! Bye Bye for | | | | | | | | today." -- Tammy Faye Bakker | | | | | | |-- NTERPRISES | | |__ | | __ | | |___ | BRING BAKKERS CLUB | |\ \_| | \ \_| | | PO BOX 3131 | | \___/ O \___/ O PO Box 5631 | Tega Cay, SC 29715 | | Lincoln, NE 68505 \ | +----------------------------------------------------------------------+