Programming Forums
User Name Password Register

RSS Feed

Thread Tools Display Modes
Old Feb 14th, 2012, 1:13 PM   #1
Join Date: Feb 2012
Posts: 1
Rep Power: 0 eazyd is on a distinguished road
Design A Module Program

Can someone help design this module program for python.

There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Design a module program that asks how many tickets for each class of seats were sold, and then displays the amount of income generated from ticket sales.

eazyd is offline   Reply With Quote
Old Feb 24th, 2012, 2:49 PM   #2
Hobbiest Programmer
Purity_Lake's Avatar
Join Date: May 2011
Location: Ireland
Posts: 131
Rep Power: 7 Purity_Lake is on a distinguished road
Re: Design A Module Program

its quite simple to do, you create variables to hold how much each type of seats cost, use raw_input() to get the input, the variables you use to hold this data can be converted to an int, and then simply you multiply the number of each seat wanted by the number of seats and add them together returning the value using print ""
Purity_Lake is offline   Reply With Quote


« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airline Reservation System program.. batzishu C 3 Nov 1st, 2011 1:42 AM
Program design question. PaCkEtPiRaTe C++ 8 Mar 26th, 2011 11:00 AM
Question in trap program for signal handle ljzwaterbull Bash / Shell Scripting 0 Sep 9th, 2010 6:32 AM
Python developer looking for design advice Foxandxss Software Design and Algorithms 2 Jul 11th, 2007 1:40 PM

DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC