Month Days Weeks This will be a menu-driven program. The menu should look like this: Homer 16 4 20 Marge Bart 18 Menu Lisa 24 4 ==== Maggie Burns 16 2 1. Enter number of days in month 2. Enter number of weeks in month 3. Exit 18 Мое 24 6 Smithers 20 4 Enter your choice:
Q: By default, the first item to be shown in the drop-down list is Pick a college : Choose a college…
A: Answer:- (B) Choose a college
Q: A small airline has purchased a computer for its new automated navigation system. Write a program to…
A: So as per requirements, I have covered all the requirements in the code: The program deals with…
Q: On planet Groening, there are 8 months of the year as shown in the table. If the user chooses #1 in…
A: #include <iostream> using namespace std; int main() { intnumOfDays; /*used to store…
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: User defined Function: Return Value . ... MENU 4. Create a program compute the area of the following…
A: Below is the code in C++ as language not specified and sample output:
Q: 1- Create a menu to choose which of the problems below to solve. Your menu should have the following…
A: The program for the above question is given below in c programming language:
Q: following formula: area = Pi*r^2 Use 3.14159 for and the radius of the circle for r. If the user…
A: Program Geometry Calculator
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: Comm Target Outcome: (CO2) Write algorithms to solve different programming problems using flowchart…
A: Here we make simple flow chart:===================================================================
Q: **** Vending Machine **** 1. Coke $1.25 2. Pepsi S1.00 3. Water $2.00 4. Coffee $1.50 5. Exit Menu…
A: C++ code :- #include <iostream> using namespace std; int main() { int q,p; float t;…
Q: Write a program that gives simple math quizzes. The program should display two random numbers. An…
A: Actually, python is a easiest programming language. It is structural and object oriented programming…
Q: 7. Pennies for Pay (Make it fast!!!) Write a program that calculates the amount of money a person…
A: Below is a required C++ code. Approach of a program: Include necessary header files and use…
Q: Simple Arithmetic Calculator Create a program that would accept two input numbers then display the…
A: txt = "ARITHMATIC CALCULATOR"x = txt.center(40)print(x)txt = "MAIN MENU"x = txt.center(40)print(x) #…
Q: You can enter 1, 2, 3, or 4 for choosing an addition, subtraction, multiplication, or division test.…
A: Note: Here you didn't mention any programming language so we are solving this problem using the C++…
Q: The name of this program will be LastProgram6. This program will be a Doggy Day Care. The menu…
A: Answer: import java.io.*; import java.util.*; class Dog{ static int numberOfDogs=0; private 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: 23. Geometry Calculator Write a program that displays the following menu: Geometry Calculator 1.…
A: We need to write a program to calculate the area for circle, rectangle, and triangle. As the…
Q: Problem: Develop a calculator using Methods (add, sub, mul and divide). The program should take 2…
A: ANSWER:-
Q: Write a program that displays the following menu: 1. Calculate the area of a circle 2. Calculate…
A: This problem contains logic of switch case. According to User input we need to calculate the output.…
Q: 15. Speed Conversion Chart Your friend Amanda, who lives in the United States, just bought an…
A: Please find the answers to the above questions below:
Q: Program where the users (customers) can add Product name, Product Price, Product Quantity. Program…
A: C++ used to answer this question
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: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: #include <stdio.h> int main(){ int budget,m,n,p,d; printf("\n Menu\n Destination…
Q: Month Weeks This will be a menu-driven program. The menu should look like this: Days 16 Homer 4…
A: Program description: The C++ program,main.cpp that prompts the user to enter a choice from the menu…
Q: Case1: Write a menu driven program that allows you to visit cities of oman in random order with…
A: Answer: our guidelines is answer the first question form the first question so I have written code…
Q: SThis program allows the user to choose various geometry caleulations from a menu. elif choice =…
A: Note: Follow proper indentation while executing the code as specified in the snapshot. Code was…
Q: In Lab 2, you created a menu for a simple calculator program. In this lab, you will add some…
A: A C++ program for the given scenario is provided below;Program://Declare necessary header…
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A:
Q: 1. Create a class menu-driven automatic teller program in which the user's bank balance is…
A: The code is written below: import java.util.Scanner; class Main{ public static void main…
Q: 7. Pennies for Pay Write a program that calculates the amount of money a person would earn over a…
A: Below is a required C++ code. Approach of a program: Include necessary header files and use…
Q: python coding:-purpose of this code is to identify every employee detail using employee id ,name…
A: Input : Read data of two files : employees.txt payroll.txt Output : Output employee details…
Q: An online retailer sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Q: Code the given problem. (Language used: C++)
Q: 9. Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
A: Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
Q: Problem: Develop a calculator using Methods (add, sub, mul and divide). The program should take 2…
A: HI THEREI AM ADDING ANSWER BELOW IN C LANGUAGEPLEASE GO THROUGH IT THANK YOU
Q: C Program for a menu based program that uses a switch-case statement to include the following…
A: Program: #include <stdio.h> #include <ctype.h> #include <stdlib.h> //Menu…
Q: Question 2: Write a program to check responses of a student to the multiple-choice final exam. The…
A: C++ used to answer this question
Q: 9. Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
A: Use the C++ code #include<iostream>using namespace std; int main(){ int option=0; //to…
Q: 1- Create a menu to choose which of the problems below to solve. Your menu should have the following…
A: Given:
Q: 8. Pennies for Pay Write a program that calculates the amount of money a person would earn over…
A: Below is a required C++ code. Approach of a program: Include necessary header files and use…
Q: FLOW CHART Menu 1.Temperature Converter START Enter country name 2. Distance Converter Pick a number…
A: pseudocode :-Pseudo code is a methodology that allows the programmer to represent the implementation…
Q: Create a menu-driven program that calculates the area of a few, basic geometric shapes
A: #include <iostream>#include <math.h>#include <iomanip> using namespace std; int…
Q: Game 24: Create a program that is played by choosing a number (1, 2, or 3) to be added to th Game…
A:
Q: te a JAVA PROGRAM as a Currency Converter program. The program performs Currency Exchange operation…
A: I have the code below:
Q: If user presses a or A, the following sub menu should be displayed 1- Count characters: (Program…
A: A C++ program is as follows, File name: “main.cpp” #include<iostream> #include<ctype.h>…
Q: 21 menu.py ogram that asks the user to input an integer value (n) and displays the following menu: -…
A: int_value = input("Enter An Integer Value : ")# typecasting to intint_value = int(int_value)…
Q: Q1. With Menu Driven Program Design a Calculator having all the main functions also use Math's…
A: Menu driven C program for calculator This is a menu driven C program for calculator.This program…
Q: Make/create a conversion program with 5 choices of conversion these are the choices (1.mass,…
A: This is a menu based program to convert values between various units pertaining to Mass, Energy and…
Q: Build a simple calculator using text boxs in Ja va as below calculate num i num2 Select operation…
A: Introduction of the Program: The java program builds a calculator that calculates the basic…
Q: Use C Language Airline Reservation System A small airline has just purchased a computer for its…
A: Answer :
Q: Kindly edit the code and display the menu again after completing the fucntion. #include #include…
A: update added a function call menu() that will display the menu.
Hi, I need to solve this problem with C++
Step by step
Solved in 3 steps with 1 images
- A menu will show three items and their prices: (a) Carbonara 100php (b) Fries 80php (c) Chicken nuggets 150php. The user will choose among two food delivery services: (1) Foodie panda and (2) food-deliver. After choosing the food delivery service, a discount and service charge for the item will be computed depending on the service chosen based on the table below. Food Delivery Service Food Discount Delivery Charge (1) Foodie panda 1% +10php (2) Food deliver 4% +30php Example: (a) carbonara 100php (2) Food deliver Discount: 100php X .04 = 4.00 100-4 = 96 php discounted price Delivery charge: 96+30 = 126 php total payment my code: #Output menuprint("Items: \n1. Carbonara 100php \n2. Fries 80php \n3. Chicken nuggets 150php.")#Prompt for input choice = int(input("Enter item no: "))quantity = int(input("Input quantity : "))#Compare and assign priceif choice==1: price = 100elif choice==2: price = 80elif choice == 3: price =150 #compute totaltotal =…Our menu contains: drinks, dinner items, and desert. Each item on the menu has a price. We will ask the user if they want a drink, if the answer is yes, we will display the available drinks and then prompt the user to select one, we will then ask if they want large or small (different pricing for the two). We do the same for the dinner items and deserts (except there is no large or small option). At the end we ask the user if they are a senior, a military veteran, or a public servant, if they are a senior, a military veteran or a public servant, we apply a 10 percent discount. Ask the user if they want to give a tip, give them two options 1) selecting from predetermined percentages, 10%, 20%, 30%, or 2) entering in their own amount. Add the tip to the bill. Finally we display the bill. Keep the printing of the menu items simple using simple python codeIn Lab 2, you created a menu for a simple calculator program. In this lab, you will add some functionality to the menu. Also, it is important to let the user know if they entered an invalid choice. Write a program (or modify the one written for Lab 2) that displays the following menu and prompts the user for a selection. Once the selection has been made, display the selection back to the user. Then, ask the user for two numbers and perform the selected operation (+, -, *, /). Display the results back to the user (e.g. 2 + 3 = 5). When dividing, display an error message if the second number (denominator) is 0. 1) Add two numbers 2) Subtract two numbers 3) Multiply two numbers 4) Divide two numbers 9) Exit program The program should: contain header comments as shown in class display a "hello" message before presenting the menu display the menu prompt the user for selection display the selection back to the user if the selection was invalid, display error message to user and then go…
- The drop-down menu us the same for all of themin the programming language swift: I need to make convienent store inventory program. it will have five items: chips....1.99 chocolate...3.39 hot dog...2.89 pizza..3.85 gas...2.15 a gallon The main screen should be the option list. Once selected the system should ask for which item and how many. The system needs to ask the user if they want more items. After all the items are entered, it should calculate everything. Then it needs to add tax at 9.2 percent. Add everything together. then the system should ask for cash, enter an amount and show the change.Hi would you be able to modif the menu methode in my code below with the signature public static int menu() The menu should print all of the choices and ask the user to enter a choice. Then menu should declare to read the integer representing the user's choice. This int should be returned to the user. • do { • choice = menu(); • ,,, • ,,, • } while(choice !=5; import java.util.ArrayList;import java.util.Scanner;public class TestProgram {public static void main(String[] args) {ArrayList<Solid> solids = new ArrayList<>();Scanner scanner = new Scanner(System.in);int choice;do {choice = menu();switch (choice) {case 1:System.out.println("Enter radius of sphere:");double radius = scanner.nextDouble();solids.add(new Sphere(radius));break;case 2:System.out.println("Enter radius and height of cylinder:");double cylRadius = scanner.nextDouble();double height = scanner.nextDouble();solids.add(new Cylinder(cylRadius, height));break;case 3:for (Solid solid : solids)…
- Write a program which should handle books information for a book shop. It should be able to handle atleast 100 records. Your program should store following information against a book. Book Id (you may use index number as book ID) Book Code Book Name Author Name Publish Date Price No of copies in hand No of Copies sold Initialize 10 Books and initialize remaining with 0 and spaces. Create a menu, as given below, which should use above information to perform selected action from the given menu on the screen Add book (One book will be added. User will enter book id i.e. index number Record will be placed if code at that index is 0) Display book (Display Books in tabular format with nonzero codes only) Delete book (Place an empty record with 0 code and spaces at the selected index) Search book Sale book (First locate the book Id and check if code is not 0 then update No of Copies in hand and No of Copies sold accordingly) Exit Your assignment will be evaluated on the following basis:…A restaurant offers three options: A sandwich for BD2.500, with a reduction of 10% for orders of at least five sandwiches. A meal (sandwich, side, and drink) for BD3. Family meal for two adults and two or more children. The price is BD8.500 with an additional BD1.500 for each child beyond two children. Write a program that calculates the total price of tickets using a method and a switch statement. The program displays a menu with three options, lets the user select option, and then asks for the number of orders. It should then display the total amount due. Part 3: calculating your meal price Choose an option from the following menu: 1. Regular sandwich 2. Sandwich meal (sandwich, side, and drink) 3. Family meal 4. Quit Enter your choice (1-4): 1 Enter the number of regular sandwiches: 8 You total is BHD 18.000 Choose an option from the following menu: 1. Regular sandwich 2. Sandwich meal (sandwich, side, and drink) 3. Family meal 4. Quit Enter your choice (1-4): 3 Enter the number of…Java ATM machine program ATM machines are used to withdraw and deposit cash in additionto make balance inquiries. The user enters a card in the ATM’s cardreader, then the ATM, and through its console screen, asks the userto enter the card 4 digit PIN number. If the PIN is verified by theBank (which keeps a list of bank accounts), the ATM will presentthe user with a menu of the available choices (Transactions),otherwise, invalid PIN message will be displayed, users can try toenter the PIN three times after which the card will be claimed bythe machine.If the user choses to withdraw, he will be presented with a menu ofa specific amounts or he can enter the amount, if the user balance issufficient and if the cash dispenser has the amount available, thecash amount will be dispensed from the cash dispenser.ATM Transactions 1. Withdraw2. Balance inquiryAt any time during a transaction, the user can choose tocancel and thus end the transactionATM States 1. Ready: waits the user to enter the…
- You are to DESIGN and WRITE a menu-driven program using a menu like the sample menu below. Should the user select [M] the program will ask the user to enter a single deposit into the bank account. The rest of the menu options are self-explanatory. *** BANKING MAIN MENU *** [M]ake a new deposit [S]um of all deposits [D]eposits will be displayed from highest to lowest deposit [A]verage of all deposits [L]owest deposit will be displayed [Q]uit the program Your program should perform all of these menu options and after performing each task, return to the menu.Given the "Document" class below, you will write a basic version of Google Drive. Your program will store two lists of documents, one for documents the user has created and one for created documents the user has shared with a friend. The user will have a few options which you will need to implement (note: the menu will only be displayed once at the beginning of the program): Add a document to the user's list: Allow the user to enter the document name, document extension, and document contents and then add that Document to the list of documents Rename one of the user's documents Allow the user to enter the index of the document in their list they want to rename Allow the user to enter the updated name of that document Set the name of the document to be the updated name they enter Share one of the user's documents with a friend Allow the user to enter the index of their document they want to share with their friend Display all the documents in both the user's and the friend's…Lovely Warteg Lovely Warteg is a canteen that provides food service. The owner of this canteen is planning to make a program to make the transaction process of paying easier and more effective. You as a programmer are asked to create this program based on the criteria given using Java Programming Language. This application consists of 2 menus which are: Order Menu Exit Figure 1. Lovely Warteg Main Menu Order Menu The first option of the menu allows the user to order food through the program. The user is required to fill in a few user inputs which are: Ask the user to input the customer’s name. Validate that the customer’s name must be between 6 and 25 characters. Figure 2. Input Customer Name Ask the user to the input type of vegetable to eat. Validate that the vegetable must end with “Vegetable” (case sensitive). Figure 3. Type of vegetable Ask the user to the input type of meat to eat. Validate that meat must be either “Fish”, “Beef”, or “Chicken” (case sensitive). Figure…