Theater seating revenue with input validation

Assignment Help Basic Computer Science
Reference no: EM13861091

Theater Seating Revenue with Input Validation:

A dramatic theater has three seating sections, and it charges the following prices for tickets in each section: 

Section A seats cost $20 each

Section B seats cost $15 each

Section C seats cost $10 each

The theater has 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program, in python, that asks for the number of tickets sold in each section and then displays the amount of income generated from ticket sales. The program should validate the number that are entered for each section.

 

 

Reference no: EM13861091

Questions Cloud

A program that will prompt the user for a date and a time : It's to be written in C++. You will be writing a program that will prompt the user for a date and a time. For the date, the user will be asked to enter in three integers (month, day, year). There will be four functions related to the date:
Sample the dribbling to extract its frequency : Consider a basketball being dribbled. If the height of the basketball can be described by a sine wave of maximum height 2h, average height h and minimum height 0, and the ball hits the ground once per second, how fast would a video camera have to sam..
What are your thoughts about your results : What are your thoughts about your results?  What are you feelings towards this assignment?  How would you improve it? Submit this with your assignment.
Know how to process command line arguments : Through this programming assignment, the students will learn to do the following: Know how to process command line arguments. Perform basic file I/O.
Theater seating revenue with input validation : Theater Seating Revenue with Input Validation: A dramatic theater has three seating sections, and it charges the following prices for tickets in each section:  Section A seats cost $20 each
Discuss the differences between external and internal threat : Discuss the differences between external and internal threats as they relate to network security. Which threat is most difficult to defend against and why? What protections would be used specifically related to internal threats? Why is it important f..
Display to the screen the first 20 numbers : Design an algorithm that will display to the screen the first 20 numbers, with their squares and cubes, as follows: Number Square Cube
The ph of an aqueous solution is a measure : Microsoft Word - HW#9.docx In chemistry, the pH of an aqueous solution is a measure of its acidity. A solution with a pH of 7 is said to be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic.
Design a program that will read a file of employee records : Design a program that will read a file of employee records containing employee number, employee name, hourly pay rate, and regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules:Regular..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How you use a computer application for accounting

How do you feel your comprehension of a manual system benefits how you use a computer application for accounting

  The built in python string functions

letterCount(letter, myString) This function should take a single letter, and then a string. It should return the number of times letter occurs in myString. So the call letterCount('h', 'hello') should return 1, and the call letterCount('a', 'aa..

  A flow chart and a pseudocode

A flow chart and a pseudocode

  Identify defragmentation problems

For these reasons, you should defragment your hard drive every week as part of a good maintenance plan. Defragmenting rearranges files on the drive into as few segments as possible. Identify defragmentation problems.

  Discuss the advantages and disadvantages of outsourcing it

Discuss the advantages and disadvantages of outsourcing IT.

  Consumption of goods

Joe College is a UT student.  His course schedule is set and his parents have already paid for his tuition, room, and board for the semester. Now Joe must decide how to allocate his time between "leisure" (which includes study time, socializing, etc...

  Decimal to the ieee 32 bit floating point

Numbers from decimal to the IEEE 32 bit floating point - binary IEEE 32-bit floating point to decimal.

  Wrtie a recursive boolean function named ismember

wrtie a recursive boolean function named isMember that accepts two arguments: an array and a value. Teh function shourld return true if the value is found in the array, or false if the value is not found in the array.

  Flowchart for batch control tape

Design a document flow chart to depict each of given situations. Batch control tape is prepared along with set of transactions to make sure completeness of the data.

  Describe the differences and similarities of an attack

Describe the differences and similarities of an attack of convenience and a targeted attack. Implement countermeasures to social and reverse social engineering attacks.

  Understanding of storage classes and scope rules

It amounts to a "divide and conquer" approach to problem solving. This needs sound understanding of storage classes and scope rules. Response and or thoughts?

  What is a plausible explanation of what may have happened

Prepare a short research paper of approximately 1300-1500 words, double-spaced, exclusive of cover, title page, and table of contents, endnotes and bibliography. Your paper must use APA formatting with the exception that tables and figures can be ins..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd