Develop a program that ask for the number of tickets

Answers

Answer 1

Answer:

# Ask user for the number of tickets

num_tickets = input("How many tickets would you like to purchase? ")

# Convert the user input to an integer

num_tickets = int(num_tickets)

# Set the price per ticket

PRICE_PER_TICKET = 10

# Calculate the total cost

total_cost = num_tickets * PRICE_PER_TICKET

# Print the number of tickets and total cost to the user

print("You want to purchase " + str(num_tickets) + " tickets, and the total cost is $" + str(total_cost) + ".")


Related Questions

Arithmetic Instructions: Activity : Display 3 Digits (Assembly Code)
Hardcode a 3 digit value into a variable. Display the number

Answers

The value 123 is hardcoded into the "number" variable that is defined in this code. The programme then prepares the output by changing the value of "number" and initialising the registers with the proper values.

How many arithmetic instructions are there in three?

Binary, decimal, logical, shift/rotate, and bit/byte manipulation instructions are additional categories for the arithmetic instructions.

section .data

 number db 123 ; hardcode the 3-digit value

section .text

 global _start

_start:

 ; set up the output

 mov eax, 4 ; use the write system call

 mov ebx, 1 ; write to standard output

 mov ecx, number ; move the number variable into ecx

 mov edx, 3 ; print 3 characters

 ; display the number

 int 0x80 ; execute the system call

 ; exit the program

 mov eax, 1 ; use the exit system call

 xor ebx, ebx ; return 0 to indicate success

 int 0x80 ; execute the system call

To know more about programme visit:-

https://brainly.com/question/30307771

#SPJ1

You suspect a problem with a file that is important to one of your installed applications. You are running Windows 7 64-bit edition. You have thoroughly checked the Program Files folder and cannot find the folder that holds this application. What might be the problem?

Answers

Answer:

Explanation:

There could be a few potential problems that could be causing the issue:

The application might not have been installed correctly, and the files are located somewhere else on the computer. In this case, you may need to search the entire computer or contact the application's support team for assistance.

The application may have been uninstalled, or the files could have been deleted or moved. If this is the case, you may need to reinstall the application or restore the files from a backup.

The application might not be compatible with Windows 7 64-bit edition, and therefore, the files may not be stored in the Program Files folder. In this case, you may need to check the application's documentation or contact the support team to determine where the files are located.

Overall, it is essential to troubleshoot the issue thoroughly and gather as much information as possible to determine the root cause of the problem.

1. Which of the following supports a vehicle's weight?
OA. Shock
OB. Idler arm
OC. Stabilizer link
OD. Spring

Answers

The component that supports a vehicle's weight is the spring.

What is the Spring?

The spring is responsible for absorbing the shock and weight of the vehicle, ensuring a smooth ride for the passengers. The idler arm is part of the steering system, while the stabilizer link helps to control the vehicle's sway and stability during turns.

The shock, on the other hand, helps to dampen the bounce and movement of the vehicle. While all of these components play a vital role in a vehicle's performance, it is ultimately the spring that bears the weight and keeps the vehicle stable on the road.

Read more about vehicles here:

https://brainly.com/question/28918094

#SPJ1

Other Questions
The KwaZulu-Natal Provincial Department has embarked on a multi-million-dollar Transport Rehabilitation Initiative (TRI). The initiative has been identified as one that will ensure that the transportation networks and systems of the province are categorized as being world class by the year 2020. This will however include a series of projects that will encompass the construction of bridges, dual carriageways, railway networks, ports and airports. One of the first projects that will be performed under the initiative will be the expansion of the Durban Port this is aimed at increasing its current holding capacity and overall operational efficiency. The KwaZulu-Natal MEC of Transport has indicated that the success of TRI depends heavily on the efficient management of the different projects under this initiative (KZN Department of Transport, 2019). Calculate the following without using a calculator -5(-3+7)+20(-4) 6. Since the angular velocity is currently 360o/s, the period T is 1 rotation/s. A) Using v = 2r/T, calculate the tangential velocity the beetle would have if you moved him to the edge of the turntable (a radius of 4 m from the axis). B) Move the beetle to r = 4 m and record his tangential velocity if a person buys a $100 bond with a nominal interest rate of 5 percent and the actual inflation rate is 5 percent for the year, what real interest rate did they earn in that year? A bookstore sells 7 books for $89.25. Which table represents the relationship between number of books and the total price? Please help me on this: 90 BRAINLY POINTS. Yuri bakes lemon bars in a pan shaped like a right rectangular prism. The volume of the pan is 150 cubic inches. The width of the pan is 7 1/2 inches, and its height is 2 inches.What is the length of the pan?Enter your answer in the box The mass of the moon is 7.35 1022 kg and the mass of the earth is 5.98 1024 kg. The average distance between the moon and the earth is 3.84 108 m. What is this satelite's speed, in km/s (kilometer per second)? Use G = 6.67 10-11 Nm2/kg2. (15 sentences) William Shakespeare biography (DONT C&P) Pls help !! Find the equation of a line parallel to that passes y= 4/3x+4 through the point (3,-7). What right did the National Labor Relations Act give workers while protectingthem from retaliation from their employers?A. The right to barter for better positionsB. The right to strike for higher wagesC. The right to ask for better working conditionsD. The right to organize and form unionsSUBMIT What is the equation of the graph below?On a coordinate plane, a curve crosses the y-axis at (0, negative 1). It has a minimum of negative 1 and a maximum of 1. It goes through 1 cycle at 2 pi.y = cosine (x + StartFraction pi Over 2 EndFraction)y = cosine (x + 2 pi)y = cosine (x + StartFraction pi Over 3 EndFraction)y = cosine (x + pi) What are the aims of the protesters, and do you think protesting can be an effective method to bring about change? When asked to draw a quadrilateral with all four sides measuring 5 cm, Jada drew a square. 5 cm15 cm5 cm1. Do you agree with Jada's answer?2. Is there a different shape Jada could have drawn that would answer the question? Explain yourreasoning Draw a ray diagram to locate an image formed by a lens when a object is placed at 2f Under fasting conditions, one would expect to find large amounts of free ammonia in the bloodstream due to the breakdown of amino acids for energy production in skeletal muscle. TrueFalse An object is dropped from a small plane. As the object falls, its distance, d, above the ground after t seconds, isgiven by the formula d = -16 +1,000. Which inequality can be used to find the interval of time taken by the objectto reach the height greater than 300 feet above the ground?-16 +1,000 300 The radius of a cylindrical construction pipe is 2.5 ft. If the pipe is 20 ft long, what is its volume.. - Which of the following is a reason that Lewis electron dot diagram only show electrons in the outermost orbital of an atom? 1. Which of the following supports a vehicle's weight?OA. ShockOB. Idler armOC. Stabilizer linkOD. Spring An iPhone costs 800 in London, 880 in Paris and $850 in New York. Using 1 = 1.16 and 1 = $1.41, state the lowest price of the iPhone in . Give your answer to 2 dp.