You are to write a program that will allow the user to select from a menu of 3 movies available to watch. The menu should look like the following:
If the user asks to watch Movie 1, ask for the number of tickets to buy and print the total to pay. The price per ticket for Movie 1 is $8.
If the user asks to watch Movie 2, then the program must ask for his/her age before it proceeds. If the user is younger than 18 years old, the program must print a message saying "Sorry you must be 18 or older to watch this movie." If the user is 18 or older, then proceed to ask how many tickets the user wants and print the total to pay. Price per ticket for Movie 2 is $10.
If the user asks to watch Movie 3, ask for the number of tickets to buy and print the total to pay. The price per ticket for Movie 3 is $6.50.
Write a program to determine whether character is a vowel or not.
Write a small program that displays a menu with the following options:
Program that will calculate either the diameter, circumference or area of a circle. Select your choice.
Use the switch statement. The program is to ask for the radius of a circle. Present the menu and execute the corresponding calculation.
Using MS-Excel, make a table for n=1 to 10 and generate a graph to show how the following functions grow. Using the table and the graph, determine which function grows faster.
e. a2n
1, Develop an algorithm to calculate the sum of 5 numbers.
2, Develop an algorithm to find the largest number among the 3 numbers.
3, Develop an algorithm to calculate the average score of 50 student.
What values are returned during the following sequence of queue operations, if
executed on an initially empty queue? enqueue(5), enqueue(3), dequeue(), enqueue(2),
enqueue(8), dequeue(), dequeue(), enqueue(9), enqueue(1), dequeue(), enqueue(7),
enqueue(6), dequeue(), dequeue(), enqueue(4), dequeue(), dequeue().
Give the algorithm to convert the input dollars(s) into the equivalent peso. One dollar is approximately equal to 50.60 pesos. Then display the result.
Write a small program called window.cpp to calculate the cost of a rectangular window. The total cost of a window is based on two prices; the cost of the glass plus the cost of the metal frame around the glass. The glass is 50 cents per square inch (area) and the metal frame is 75 cents per inch (perimeter). The length and width of the window will be entered by the user. The user will also enter y or n, to indicate whether or not the customer wants delivery. If the customer wants the window delivered, there is an extra charge of $50. The output of the program should be the length and width (as entered by the user) and the total cost of the window, including delivery if requested.
A customer goes and purchases some items at A & R. The store is offering discount to their customers. If a customer spends less than a $100, he/she will only get 5%. If the customer spends $100 or more, but less than $200, he/she will get 10% discount. If the customer spends $200 or more, he/she will get 20% off. Read the amount the customer spent at A&R. Calculate and print the discount amount and the final price after the discount has been deducted.
Write a program to find whether character entered is a vowel or a consonant.