the employee's gross pay. 2. Theater Seating Revenue with Input Validation A dramatic theater has three seating sections, and it charges the following prices tor tickets in each section: section seats cost $20 each, section B seats cost $15 each, and 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 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 numbers that are entered for each section.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Question 2

1. Payroll Program with Input Validation
Design a payroll program that prompts the user to enter an employee's hourly pay
rates in the range of $7.50 through $18.25 and hours in the range of 0 through 40
rate and the number of hours worked. Validate the user's input so that only pay
Programming Exercises
Programming Exercises
349
ealivte
Fayroll Program
with Input Valldation
Problem
rates in the range of $7,50 through $18.25 and hours in the range of 0 through 40
are accepted. The program should display the employee's gross pay.
Design a payroll program that prompts the user to enter an employee's nou pay
rate and the number of hours worked. Validate the user's input so that ony40
2. 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 eaci,
and 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 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 numbers that are entered for
each section.
3. Fat Gram Calculator
Design a program that asks for the number of fat grams and calories in a food item.
Validate the input as follows:
amc and calories is not less than 0.
Transcribed Image Text:1. Payroll Program with Input Validation Design a payroll program that prompts the user to enter an employee's hourly pay rates in the range of $7.50 through $18.25 and hours in the range of 0 through 40 rate and the number of hours worked. Validate the user's input so that only pay Programming Exercises Programming Exercises 349 ealivte Fayroll Program with Input Valldation Problem rates in the range of $7,50 through $18.25 and hours in the range of 0 through 40 are accepted. The program should display the employee's gross pay. Design a payroll program that prompts the user to enter an employee's nou pay rate and the number of hours worked. Validate the user's input so that ony40 2. 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 eaci, and 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 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 numbers that are entered for each section. 3. Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: amc and calories is not less than 0.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education