You are on page 1of 1

Steven McCarthy

Program 1- Movie Tickets

Planning-

Calculate gross and net income of movie theater.

Analysis-

Inputs- Movie Name, Number of tickets (adults, seniors, and childrens) sold.

Outputs- Movie Name, Number of tickets (adults, seniors, and childrens) sold, Gross and Net
income, Income of distributor

Formulas- (AT x 9.5) + (ST x 6.75) + (CT x 6.0) = Gross Income, (GI x 0.2) = Net Income, (GI x 0.8) =
Income of distributor

Assumptions- User inputs Name, number of tickets, price for movie always the same, percent
paid to distributor always the same

Constrants- Number of tickets sold is greater than or equal to zero

Design-

Get Input

1.1 Enter movie name


1.2 Enter number of adult tickets sold
1.3 Enter number of senior tickets sold
1.4 Enter number of child tickets sold

Find Profit
2.1 (AT x 9.5) + (ST x 6.75) + (CT x 6.0) = GI
2.2 (GI x 0.2) = NI
2.3 (GI x 0.8) = DI

Print Output
3.1 Print movie name
3.2 Print number of tickets (adults, seniors, and childrens) sold
3.3 Print Gross Income
3.4 Print Net Income
3.5 Print Distributors Income

You might also like