Write a program to display a menu (as given beld and prompt the user to choose from the menu (I numbers 1 to 5). Show the menu until the user enters 5 to exit from the program. 1.Circle 2.Square 3.Rectangle 4.Triangle 5.Exit
Q: 10. Hollywood Star Make your own star on the Hollywood Walk of Fame. Write a program that displays a…
A: To create the star Tkinter library has been used. Make a new object for Canvas() and background…
Q: Volume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent…
A: Step: 1 Step 1Tips to keep in mind: 1) Just one geometric solid is really the hexagonal pattern,…
Q: Programming Problem 1. Rock, Paper, Scissors This is your traditional rock-paper-scissors game,…
A: Lets see the solution in the next steps
Q: In the Raptor program Write a program that lets the user play the game of Rock, Paper, Scissors…
A: Description of the program 1. When the program begins, a random number in the range of 1 through 3…
Q: Java Programming - Create a program List a menu of 10 food combos for a restaurant/store for a…
A: Code: import java.util.*;public class MyClass { public static void main(String args[]) {…
Q: Analyze the following code: boolean even = false; if (even = true) { System.out.println("It is…
A: lets see the solution in the next steps
Q: Archery Scorer. Write a program that draws an archery target (see Pro-gramming Exercise 2 from…
A: below is the python code:
Q: This will be a menu-driven program. The menu should look like this: Menu === 1. Addition of…
A: Program description: The main.cpp program that displays a menu to choose from three choices. 1.…
Q: Exercise 2: Write a program that uses input to prompt a user for their name and then welcomes them.…
A: Explanation: You did not mention programming language so I did this program using c,c++, java, and…
Q: The following program moves a robot in a grid of squares. The initial position and direction of the…
A: To move the robot to the final position after the program is run, you should click on the grid as…
Q: Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the user to…
A: Given: Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the…
Q: Volume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent…
A: Tips to keep in mind: 1) Just one geometric solid is really the hexagonal pattern, cube, tetrahedra,…
Q: PYTHON Programming Language Write a simple program that asks the user for their name (first,…
A: take first name user input take middle name user input take last name user input making a string…
Q: 8. Write a program: a menu-driven automatic teller program in which the user's bank balance is…
A: The code for the given problems below- #include <stdio.h> #include<stdlib.h> int…
Q: Create an algorithm for a menu based program that uses a switch-case statement to include the…
A: #include <iostream>using namespace std;int main() { int userinput; string name; cout…
Q: In C write a simple scientific calculator program as follows: Display a menu of options according to…
A: 1. Initialize a character variable 'option' to store the user's choice.2. Start a do-while loop:…
Q: This is not opinion based question. Create a module in Excel -Use an input box to ask for a phrase…
A:
Q: A for statement is a loop that goes through a list of things. Therefore, it keeps running as long as…
A: Objects to process: System analysis and design may be approached in a number of ways, two of which…
Q: Write a program that will convert miles to kilometers and kilometers to miles. The user will…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: A rod is used to hang a load (force) of 1000 N. There are 4 ingredients with their respective…
A: Task : The task is to create two lists to store details for the : ingredient names strengths
Q: This example creates a program to teach a first grade child how to learn subtractions. The program…
A: Code Screenshot, output and code is below:
Q: Don't use ai to answer Solve it
A: Import the Scanner Class: import java.util.Scanner; -> is necessary for reading input from the…
Q: A program is needed to manage sales of Super Bowl souvenir t-shirts. There are three types of shirts…
A: Algorithm: Display a welcome message to the user. Display a menu of the available t-shirts,…
Step by step
Solved in 3 steps with 1 images
- Write a program that asks the user to enter a 1st color choice from a set of options: red, yellow or blue, and then asks them to enter a 2nd color choice from the remaining 2Python help. Write a menu-driven program for Food Court. Display the food menu to a user (Just show the 5 options' names and prices - No need to show the details!) Use numbers for the options and the number "6" to exit. If the user enters "6", your code should not ask any other questions, just show a message like "Thank you, hope to see you again!" Ask the user what he/she wants and how many of them. (Check the user inputs) Keep asking the user until he/she chooses the exit option. Use a data structure to save the quantities of the orders. You should use ArrayLists/Array Bags, or LinkedLists/LinkedBags (one or more of them) to save data. Calculate the price. Ask the user whether he/she is a student or a staff. There is no tax for students and a 9% tax for staff. Add the tax price to the total price. Display(print) the bill to the user. The bill includes: The food items The quantities The cost of them The total before tax Tax Total price after tax You can have your own…LAB ASSIGNMENTS, CONT. 2. sandwich.py - follow the instructions below. You may adjust the food items to include your personal favorites. • It uses all of our standard mipo_ex features. • The menu should have numbered or letter options. Sandwich Maker Write a program that asks users for their sandwich preferences. The program should use PylnputPlus to ensure that they enter valid input, such as: Using inputMenu() for a bread type: wheat, white, or sourdough. Using inputMenu() for a protein type: chicken, turkey, ham, or tofu. Using inputYesNo() to ask if they want cheese. If so, using inputMenu() to ask for a cheese type: cheddar, Swiss, or mozzarella. Using inputYesNo() to ask if they want mayo, mustard, lettuce, or tomato. Using inputlnt() to ask how many sandwiches they want. Make sure this number is 1 or 120 00T 110 more. Come up with prices for each of these options, and have your program display all the choices and their prices plus a total cost at the very end. 3 130
- Write a program that displays the following menu: Geometry Calculator1. Calculate the Area of a Circle2. Calculate the Area of a Rectangle3. Calculate the Area of a Triangle4. QuitEnter your choice (1-4):If the user enters 1, the program should ask for the radius of the circle and then display its area. Use 3.14159 for π. If the user enters 2, the program should ask for the length and width of the rectangle, and then display the rectangle’s area. If the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. If the user enters 4, the program should end.Input Validation: Decide how the program should handle an illegal input for the menu choice or a negative value for any of the other inputs.A menu is generated using the following code: Status=menu('ClassStanding','Freshman','Sophomore','Junior','Senior'); Write a segment of code using switch-case that will classify the person making a menu selection as a new student (freshman) or a continuing student (sophomore, junior, or senior). The code should display one of the following messages: You are a new student. You are a continuing student. You did not make a selection.Write a program that displays the following menu: Geometry Calculator1. Calculate the Area of a Circle2. Calculate the Area of a Rectangle3. Calculate the Area of a Triangle4. QuitEnter your choice (1-4): If the user enters 1, the program should ask for the radius of the circle and then display its area. Use the following formula: area = π(the square of r) . Use 3.14159 for π and the radius of the circle for r. If the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. Use the following formula: area = length * width If the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. Use the following formula: area = base * height * .5 If the user enters 4, the program should end. Input Validation: Display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. Do not accept negative values for…
- The Yukon Widget Company manufactures widgets that weigh 9.2 pounds each. Write a program that calculates how many widgets are stacked on a pallet, based on the total weight of the pallet. The program should ask the user how much the pallet weighs by itself and with the widgets stacked on it. It should then calculate and display the number of widgets stacked on the pallet.The text presented the Sierpinski triangle fractal. Inthis exercise, you will write a program to display another fractal, called the Kochsnowflake, named after a famous Swedish mathematician. A Koch snowflake iscreated as follows:1. Begin with an equilateral triangle, which is considered to be the Koch fractalof order (or level) 0, as shown in Figure a.2. Divide each line in the shape into three equal line segments and draw an outwardequilateral triangle with the middle line segment as the base to create aKoch fractal of order 1, as shown in Figure b.3. Repeat Step 2 to create a Koch fractal of order 2, 3, . . . , and so on, as shownin Figures c and d.Taking a Restaurant Order: Sentinel Style. Using the restaurant menu you selected in assigment below , you will create a program that will take an order from a customer and calculate the total. Your program shall, Display the menu with the prices. Take an order using the Sentinel approach in section 5.2.5 (atatched) The user will input numbers between 1 and 10, according to the menu you created below. Use zero as sentinel value (see Listing 5.5, p. 141) Inform the user about invalid input values (greater than 10 or less than 0) Add the prices of the dishes ordered After taking the order, the program displays the subtotal, the sales tax (8.75%), the grand total, and a suggested 15% tip. You can use the program you created below and modify to incorporate the new requirements. Notice that you will still need the multi-way conditional to add the right price value to the running total of the order. import sys #Enter number for each dish and price for users DishNumber=…
- Write a program that prompts the user to enter three cities and displays them in ascending order.Create starting menu using PythonCan someone help me solve this program? The only result shown is the empty window. Below is the codes I have: import tkinter as tk import tkinter.messagebox def myWindow: def --unit--(self): self.main_window = tkinter.Tk() #This is a button for show info #When the user clicks the show info button # The name and address should be displayed self.my_button = tkinter.Button(self.main_window, text = 'Click', command = self.do_something) #quit-button. When the user clicks on it, # the info should be deleted or closed self.quit_button = tkinter.Button('Response', text = 'Quit', command = self.main_window.destroy) #pack the button self.my_button.pack() self.quit_button.pack() #manin loop tkinter.mainloop() #enter the do something callback function for the button widget def do_something(): #display info dialog box tkinter.message box.showinfo('Response', Name and Address comes here') window =tk.Tk() window.title(My Adrress) window.mainloop() if --name-- == '--main--':…