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

  Explain your plan for implementing cobit for gardner novelty

Explain your plan for implementing COBIT for Gardner Novelties

  Assess the ease of use and efficiency of using both windows

evaluate the ease of use and efficiency of using both windows and unix file management systems. of the two file

  Design a step by step algorithm

Design a step by step algorithm, keeping in mind the limitations of assembly language, to determine the physical address of the 3rd byte of the data segment variable LIST in the following code example.

  The fourth floor is currently occupied by another tenant

Imagine that you have been hired as a contractor by a local business that has recently purchased new office space for its growing business. Design a network for the local business based on the following information: The business has approximately fif..

  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...

  Write the statement that includes a friend function

Write the statement that includes a friend function named before in the class dateType that takes as parameters two objects of type dateType and returns true if the date represented by the first object comes before the date represented by the second ..

  How entry level manager adjust able to grow into upper level

How do you think an entry level manager has to adjust to be able to grow into an upper level manager

  The most essential in developing an input design

Explain what principle you believe is the MOST essential in developing an input design, and justify your choice.

  Class encapsulating a singly linked list of website objects

PROGRAM 1Code a class encapsulating a singly linked list of website objects. A website has two attributes: a URL address (a String, you do not need to use the existing URL Java class) and 10 or fewer keywords describeing the topic of the website

  Public key cryptography

The format of an X.509 certificate is described in

  Developing a strong scm process to match is system

Developing a strong SCM process to match IS system upgrades would provide what advantage(s)? What would such a process look like

  What are the five different approaches to risk

What are the five different approaches to risk? What are the pros and cons of each strategy? Support your answer with solid reasoning class is cmgt 400

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