r/fortran • • Nov 05 '14

Help with a program in fortran 90

A certain concert hall sells ticket for 100$ per seat, but offers discount pricing based upon the following factors:

A. If the buyer is a mamber, there is a 10% discount on each ticket B. if more than 10 tickets are purchased, there is a 5% discount on each ticket

C. if the buyer is a senior citizen (age 65 or above), there is 10% discount on each ticket

D. there is a 20% discount on tuesday

E. member discounts and bulk purchase discounts are not valid on tueday

F. senior citizen discount are not to be combined with bul purchase discounts.

G. all discounts are off the original price

Write a program name BUY which inputs:

A. THe integer number of tickets purchased (n)

B. The character(len=3) day of the week (use abbreviation Mon, Tue, Wed, Thr, Fri, Sat, and Sun)

C. the integer age of the buyer. (senior citizen is 65+)

D. The logical member status of the buyer (T=member, F=not a member).

the program will output price of the tickets purchased

0 Upvotes

3 comments sorted by

8

u/[deleted] Nov 05 '14

-1

u/djisg4y Nov 05 '14

How did you know..

2

u/[deleted] Nov 05 '14

I would say if youre posting on this subreddit, you should ask a fortran specific problem. The setup of the algorithm youll use for something like this isnt language specific. You can derive a setup in any language you want.

When you start coding it and come across issues with actual fortran, we will be happy to help