Theater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then
Q: Problem Description: In this assignment, you will need to write a program that will allow the user…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Problem Description: In this assignment, you will need to write a program that will allow the user…
A: Algorithm: Start Display menu to user and ask to choose and validate the choice If user selects 1,…
Q: 4. Area of a Rectangle • Write a program that compares the area of two rectangles. You can do this…
A: len_rect1 = float(input("Enter the length of first rectangle: ")) # taking the length of rect1…
Q: Air Pacific Limited, Fiji's international airline, operates international and domestic services…
A:
Q: Computer Science PYTHON PROGRAMMING Write a program that generates a random number in the range of…
A: The python language has inbuilt functions to generate random numbers. A random number guessing game…
Q: (Prism Program) Write a program that can calculate the value of the surface area and volume of a…
A: As Programming language is not mentioned, taking C as reference. Inputs : Lenght, Width and Height…
Q: Airline Reservation System A small airline has just purchased a computer for its new automated…
A: NOTE: Here student did not mention any programming language. So, here i am using c language to…
Q: Word Counter Create an application with a method that accepts a string as an argument and returns…
A: Program plan: Include the necessary header files . create a class called WordCounter use Scanner()…
Q: 13. PowerBall Lottery To play the PowerBall lottery, you buy a ticket that has five numbers in the…
A: output:
Q: IN JS PROGRAMMING LANGUAGE Your local bank has decided to upgrade its ATM machines by incorporating…
A: const moves = ["Shimmy", "Shake", "Pirouette", "Slide", "Box Step", "Headspin",…
Q: in the programming language swift: I need to make convienent store inventory program. it will have…
A: Answer: I have done code and also I have attached code as well as code screenshot and output.
Q: Scissor, rock, paper Write a program called GameSRP.java that plays the popular scissor-rock-paper…
A: We have to write a JAVA code foe Scissor, Rock and Paper with our computer. It will be continuous…
Q: Java Programming Travel Tickets Company sells tickets for airlines, tours, and other travel-related…
A: Prompt and read the ticket_number Convert the string ticket_number to the long integer and store it…
Q: This program uses Java. You will be making a general class that will be called “GeneralBusiness”.…
A: There wasn't any such use of separate food and clothing classes but still f you need them you can…
Q: alled classname.py. The program should define a class called person that has one method called…
A: We need to define the Person class.
Q: Microsoft Visual C# debugging exercise 5-2 for chapter 5. This is my code but it gave me an error.…
A: // Hi Buddy, You have done a fabulous job but made a mistake at one point i.e. in while loop, you…
Q: ftware allows the user to key in two numbers (the beginning and ending values), and then a…
A: (HTML & Javascript) Create a nested loop program that generates a multiplication table, but…
Q: Magic Number Programming: Magic program ask user to enter three integers by the user, the three…
A: # include<stdio.h> void magic(int left, int right, int digit) // the function to generate…
Q: Even/Odd Counter You can use the following logic to determine whether a number is even or odd: if…
A: below is the code to generate 100 random integers and display the even and odd numbers. In the…
Q: Travel Tickets Company sells tickets for airlines, tours, and other travel-related services. Because…
A: Required: write an application that indicates invalid ticket number entries. The class prompts a…
Q: Mathletes Game! With the introduction of loops, we now know enough about programming to begin…
A: Please check the below c++ code
Q: Lab Work 2 In this lab work, you will implement a coffee shop example. In this coffee shop,…
A: To create: To write a menu-driven C program for a coffee shop that asks the user the number of…
Q: Airline Reservations System A small airline has just purchased a computer for its new automated…
A: Your program should display the following menu of alternatives:Please type 1 for "first class"Please…
Q: Magic Number Programming: Magic program ask user to enter three integers by the user, the three…
A: # include<stdio.h> void magic_numbers(int left, int right, int digit) // the function to…
Q: Homework - identical arrays for one-dimensional: Write a test program which prompts a user to enter…
A: - The question is to check if the two arrays are identical or not. - We are using c++ here.
Q: Theater Ticket System: A small ten-seat theater has contracted you to build software which will…
A: Theater Ticket System: A small ten-seat theater has contracted you to build software which will…
Q: Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently…
A: Use a list to store tickets and from this we can check whether the number is already in list or not
Q: There is only one list of N ingredients in the menu. Every ingredient has its beauty value that does…
A: Given: There is only one list of N ingredients in the menu. Every ingredient has its beauty value…
Q: (HTML & Javascript) Create a nested loop program that generates a multiplication table, but instead…
A: I have provided HTML CODE( having internal JS) along with CODE SCREENSHOT and OUTPUT…
Q: Write method IsEven that uses the remainder operator (%) to determine whether an integer is even.…
A: Program : import java.util.Scanner; public class Main { public static boolean isEven(int z){…
Q: Problem 1 - Methods Write a program that has a loop of three iterations. In every iteration, the…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To…
Q: PYTHON PROGRAMMING Reza Enterprises sells tickets for buses, tours, and other travel services.…
A: ALGORITHM:- 1. Take choice from user. 2. Take input for ticket number. 3. Check if it is valid…
Q: Geometric Progression Printer As you might recall, a Geometric Progression (or GP) is a sequence of…
A: ALGORITHM:- 1. Take input for the a1, r and the number of terms to generate in the gp. 2. Print the…
Q: Geometric Progression Printer As you might recall, a Geometric Progression (or GP) is a sequence of…
A: Step-1: Start Step-2: Declare variable a1 and take input from user Step-3: Declare variable r and…
Q: The mean of a list of numbers is its arithmetic average. The median of a list is its middle value…
A: Start enter 9 number by defining median `calculate median calculate mean and print it
Q: Ask the user to enter the amount of money he or she wants to insert into the slot machine. Instead…
A: The moment you read the word 'randomly' in a question, you should immediately start thinking about…
Q: 24. Word Game Write a program that plays a word game with the user. The program should ask the user…
A: sample output
Q: (Game: pick four cards) Write a program which creates a deck of cards of 52 and pick any four cards…
A: As Language is not defined I'm doing it in Java Language
Q: ESTION3. The program will ask the user to enter the width and length o tangle, and then display the…
A: 1- In this assignment requires creating the object of the scanner class to take input from the user…
Q: Java Program 01 - Theater Ticket System A small ten-seat theater has contracted you to build…
A: .
Q: (Bar-Chart Printing Program) One interesting application of computers is drawing graphsand bar…
A: Program to print the asterisk in line by taking input from the user.
Q: Credit Card Number Check. The last digit of a credit card number is the check digit, which protects…
A: Program approach: import the necessary packages required for scanning the input from user create a…
Q: Question Language: JAVA Keep Guessing Write a program that plays a number-guessing game to guess a…
A: Import the required java libraries. In main an object of the Random class has been created as r. In…
Q: Credit Card Number Check. The last digit of a credit card number is the check digit, which protects…
A: Actually, the code has given below:
Q: Use C Language Airline Reservation System A small airline has just purchased a computer for its…
A: Answer :
Q: The mean of a list of numbers is its arithmetic average. The median of a list is its middle value…
A: In the above code, it has been asked to print the mean and median of the 9 numbers, in the following…
Q: Problem description: Write a python application to simulate an Amazon online book shopping system,…
A: Please give positive ratings for my efforts. Thanks. PRE-REQUISITE This is a python program. So,…
Q: Treasure Hunter description You are in front of a cave that has treasures. The cave can…
A: Given The answer is given below
Theater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Theater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then display a message stating the next show is tomorrow. Upon selecting a row, the program should present the user with a choice of available seats in the row. The user can then either choose a seat and print the ticket (in this case a simple message will suffice) or return to row selection. If a ticket is printed the program should return to row selection. The program terminates when all seats are reserved. Please enter a row: 1 Available seats: A B C D E Which seat, enter Q for none?: B You have booked seat: 1B…Random Number Guessing Game Create an application that generates a random number in the range of 1 through 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” If the user guesses the number, the application should congratulate the user and then generate a new random number so the game can start over. Optional Enhancement: Enhance the game so it keeps count of the number of guesses that the user makes. When the user correctly guesses the random number, the program should display the number of guesses.Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). Your program should display the following menu of alternatives: Please type 1 for "first class" Please type 2 for "economy" If the person types 1, then your program should assign a seat in the first class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-10). Your program should then print a boarding pass indicating the person's seat number and whether it is in the first class or economy section of the plane. Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of the array to 1 to…
- PYTHON programming solotion Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and a multiplier of 2 to 8. The program must display a multiplication table with results using these values. For example, if the user enters a start value of 3, a stop value of 7 and a multiplier value of 3, the table should be displayed as follows: Multiplication Table 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 additionally Each multiplication problem must be displayed with a problem number. The program must prompt the user to enter an answer to each of the multiplication problems. The correct answer should be displayed after the user enters an answer. A message should be displayed informing the user that the answer entered was correct or incorrect followed by an appropriate motivating comment. A running record of the number of correct and incorrect responses must be kept. After all the problems have been presented the user must be informed of…Slot Machine SimulationA slot machine is a gambling device that the user inserts money into and then pulls a lever (or presses a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user. Create a program that simulates a slot machine. When the program runs, it should do the following: Asks the user to enter the amount of money he or she wants to enter into the slot machine. Instead of displaying images, the program will randomly select a word from the following list: Cherries, Oranges, Plums, Bells, Melons, Bars To select a word, the program can generate a random number in the range of 0 through 5. If the number is 0, the selected word is Cherries; if the number is 1, the selected word is Oranges; and so forth. The program should randomly select a word from this list three times and display all three of the words. If none of the randomly selected words match, the…99 question Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently mistypes long ticket numbers, Reza Enterprises has asked his students to write an application that shows if a ticket is invalid. Your application/program tells the ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you lose the last digit of the number, then divide by 7, the remainder of the division is exactly the same to the last dropped digit. This process is shown below: Step 1: Enter the ticket number; for example 123454 Step 2: Remove the last digit, leaving 12345 Step 3: Determine the remainder when the ticket number from step 2 is divided by 7. In this case, 12345 divided by 7 leaves a remainder of 4. Step 4: Display a message to the ticket agent indicating whether the ticket number is valid or not. If the ticket number is valid, save the number to a .txt file called “tickets.txt” and.
- Road Trip Programming challenge description: You've decided to make a road trip across the country in a straight line. You have chosen the direction you'd like to travel and made a list of cities in that direction that have gas stations to stop at and fill up your tank. To make sure that this route is viable, you need to know the distances between the adjacent cities in order to be able to travel this distance on a single tank of gasoline, (No one likes running out of gas.) but you only know distances to each city from your starting point. Input: Your program should read lines from standard input. Each line contains the list of cities and distances to them, comma delimited, from the starting point of your trip. You start your trip at point 0. The cities with their distances are separated by semicolon. Output: Print out the distance from the starting point to the nearest city, and the distances between two nearest cities separated by comma, in order they appear on the route. Test 1…Computer Science PYTHON PROGRAMMING Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the user's guess is higher than the randomly generated number, the program should display "Too high, try again." If the user's guess is lower, the program prints "Too low, try again." If the user guesses the number, the application should congratulate the user and generate a new random number so the game can start over. Keep track of the number of guesses a user makes before guessing the correct one and display it with the congratulatory message when the user guesses the number correctly. For this assignment, create functions that: generate and return a random number between 1 and 100. format and return the failure and congratulatory messages. Put these function in a module called helper.py and put the rest of the code in game.py. The game module must import the helper module. Please provide both helper.py & game.py…Web page bill calculator. User inputs the "item name" and "item amount" on the webpage. The webpage will return the total money he need to pay. If the payment is more than 30 dollars, the user can have a 10% off discount. Bill = (item cost )* (# of items) Item cost apple orange peach $1.2 $2
- Lap Timer Tool Write a Python (GUI program) that asks the user to enter the number of times that they have run around a racetrack, and then uses a loop to prompt them to enter the lap time for each of their laps. When the loop finishes, the program should display the time of their fastest lap, the time of their slowest lap, and their average lap time.Carpet Calculator The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms. To calculate the price, you multiply the area of the floor (width times length) by the price per square foot of carpet. For example, the area of floor that is 12 feet long and 10 feet wide is 120 square feet. To cover that floor with carpet that costs $8 per square foot would cost $960. First, you should create a class named RoomDimension that has two fields: one for the length of the room and one for the width. The RoomDimension class should have a method that returns the area of the room. (The area of the room is the room’s length multiplied by the room’s width.) Next you should create a RoomCarpet class that has a RoomDimension object as a field. It should also have a field for the cost of the carpet per square foot. The RoomCarpet class should have a method that returns the total cost of the carpet. Figure 8-20 is a UML…Use C Language Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). Your program should display the following menu of alternatives: Please type 1 for "first class" Please type 2 for "economy" If the person types 1, then your program should assign a seat in the first class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-10). Your program should then print a boarding pass indicating the person's seat number and whether it is in the first class or economy section of the plane. Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of…