A developer is being asked to create a meal planner tool. Users enter the appetizer, main course, and dessert into the program and it will print out a summary of the information. Rewrite he following menu-based program along with test class to show the desired output. Usage Example Welcome to The PAF-KIET Canteen Meal Selector Please select from the following 1-Add appetizer 2 - Add main course 3 - Add dessert 4 -Summary of items 5 – Exit
Q: 1. Modify the Dice Poker program from this chapter to include any or all of the following features:…
A: Answer is given below:-
Q: Write an application that determines whether a phrase entered by the user is a palindrome. A…
A: Program code: //importing data package import java.util.*; //Palindrome class public class…
Q: For this, I would like you to implement a system that estimates the cost of houses based on square…
A: public class Main { public static void main(String[] args) { IEstimatable house1 = new…
Q: my homework problem Complete the code in the Practice class such that each time the user clicks the…
A: We need to fix the java code: See below steps for code and output:
Q: Lovely Warteg Lovely Warteg is a canteen that provides food service. The owner of this canteen is…
A: Java code :- import java.util.*;public class MyClass { public static void main(String args[]) {…
Q: a program that uses different operators; and Use the methods of the Math class. structions: 1.…
A: using System;class ComputeAverageApp{ static void Main() { Console.WriteLine("Enter 5…
Q: An interactive program for customers of Sanderson's Ice Cream Sundae needs to be created. Design…
A: Here is the answer:-
Q: You have probably gotten an automated text where it says something like “Text STOP to opt out of…
A: Required Java code is given below :
Q: Instructions AdmissionModulariz.. 1 using System; 2 using static System.Console; 3 class Admission…
A: Actually, given information you wrote a program named Admission for a college admissions office in…
Q: The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the…
A: for i in range(1,25): print("{}\t\t\t{}".format(i,round(IP,2))) IP += (IP * 0.06)IP = 4000for…
Q: JAVA Joe's Automotive performs the following routine maintenance services: Oil change - $26.00…
A: JAVA Joe's Automotive performs the following routine maintenance services: Oil change - $26.00 Lube…
Q: Q1. Create Python program using Graphical User Interface (GUI) that will: 1. Create a tkinter main…
A: 1. create a tkinter main window with specific title name for the window: from tkinter import *…
Q: Find the MISSING_CODE which would generate output as: Z--Y---Z-A Hint: MISSING_CODE is an if…
A: Code and output is in step2.
Q: In JavaScript, there are two types of comments: 1. Single-line comments start with // 2. Multi-line…
A: Coded using JavaScript.
Q: In JavaScript, there are two types of comments: 1. Single-line comments start with // 2. Multi-line…
A: 1. create the new method and pass a String argument.2. if condition string contains ("/*/") then…
Q: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create a folder named…
A: Algorithm: Start Initialize an array options of size 10 with characters A or B or C which…
Q: Build a calculator program that can allow user to select the specific arithmetic operation from the…
A: Given:
Q: You are asked to write a Java program for the programming quiz system. There are two types of…
A: Short Summary: Within the allotted time completed the class hierarchy as per the requirement.…
Q: Add radio button options for filing status to the tax calculator program of Project 1. The user…
A: Sample Output
Q: Program Name: FinalExamConversion. Write a program that asks the user to enter a distance in meters.…
A: A Java program for the given criteria is as follows, File name: “FinalExamConversion.java” import…
Q: Write a program in qt creator that asks the user to enter a temperature in Celsius, and then…
A: program in qt creator that asks the user to enter a temperature in Celsius, and then computes and…
Q: Write a program to design a graphical user Interface for Your coffee shop or restaurant or any…
A: Actually, java is a object oriented programming language.
Q: Please do it in c++ as soon as possible.Little Johnny Bubbles appreciates going through hours before…
A: Here have to determine about code for bubble strike.
Q: QI/ Write a Program to compute the area of triangle with design. Q2/Write a program to enter the…
A: Algorithm “Since you have asked multiple question, we will solve the first question for you. If you…
Q: PYTHON: In this assignment, you will use all of the graphics commands you have learned to create…
A: Answer in step 2
Q: Question 1: Write a program in Visual Basic6 to perform a number of settings, such as adding and…
A: Question :-
Q: Please do it in c++ as soon as possible. Little Johnny Bubbles appreciates going through hours…
A: Here have to determine about code for bubble strike.
Q: Use Java language ONLY Mastermind is a code-breaking game between two players, the codemaker (in…
A:
Q: hello, below i done a coding on visual studios but theres an error that keeps showing which is…
A: Step 1: Create new console application in Visual Studio. Step 2: Declare a List of Strings. Step 3:…
Q: A developer is being asked to create a meal planner tool. Users enter the appetizer, mai course, and…
A: using System;public class Program{ string appetizer,mainCourse,dessert,ans = "yes";//needed…
Q: Mastermind is a code-breaking game between two players, the codemaker (in this case the computer)…
A: The code is below:
Q: Must be in JAVA. Please Attached text code and output Create a new project and name it "Lab10" Write…
A: import java.util.*; public class Main { public static ArrayList<Integer>…
Q: in c# please Write an app that simulates coin tossing. Let the app toss a coin each time the user…
A: Write an app that simulates coin tossing. Let the app toss a coin each time the user chooses the…
Q: You are a Chemistry major who has to create a program for first time chemistry lab users. The…
A: Check the code below.
Q: Write a program that uses different operators; and Use the methods of the Math class. nstructions:…
A: PROGRAM EXPLANATION Create a class as given in the question. Take 5 grades as input from the user.…
Q: is
A: I have divided this into many functions, and listed below are some of those which may help you…
Q: developer is being asked to create a meal planner tool. Users enter the appetizer, main course, and…
A: Required: developer is being asked to create a meal planner tool. Users enter the appetizer, main…
Q: The program should implement a class. Write a program that reserves a room in a hotel. The hotel…
A: #include <iostream> #include <iomanip> using namespace std;class HotelRoom{private:…
Q: Part C: Interactive Driver Program Write an interactive driver program that creates a Course object…
A: 1.Basically driver classes are the utility classes that are used to carry out some task. 2.In java…
Q: For this challenge, you will write a program that prompts a user to answer whether or not they are…
A: Find the required code in python given as below and sample output :
Q: Write an application that determines whether a phrase entered by the user is a palindrome.
A: The given problem is to ask user to enter a string and find whether it is a palindrome string or…
Q: in Java Programming, I need help creating a ComboBox control to allow a user to select choices for a…
A: A Java program is as follows, File name: “Car.java” public class Car extends javax.swing.JFrame {…
Q: Look at this program: int main() { int x = 4; displayMessage(); return 0; } void…
A: Any function that is called before it has been defined or declared, will result in a compilation…
Q: Question 1: Write a program in Visual Basicó to perform a number of settings, such as adding and…
A: Question :-
Q: Using Math.max and/or Math.min, write a class MaxOrMin, and make sure touse Math.max and Math.min…
A: Java codeimport java.util.Scanner; public class MaxOrMin {public static void main(String[]…
Q: As a programmer you are required to develop a temperature conversion program with a menudriven…
A: As no programming language is mentioned so I have done using JAVA. Here I have created a function…
Q: You are to DESIGN and WRITE a menu-driven program using a menu like the sample menu below. Should…
A: The program will take the Input options according to the Question given. Program will execute in the…
SOLVE IN "C#" BY USING DECISION STRUCTURE
Attempt THIS question using Windows Form and MS Access.
Step by step
Solved in 4 steps with 5 images
- 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)…In Java Menu-Driven System Part AWrite a menu-driven program that will give the user the three choices: 1) Wage calculator, 2)Coupon Calculator, and 3) Exit. Class Name: PartAWage Calculator: For the wage calculator, prompt for the name and hourly pay rate of anemployee. Here the hourly pay rate is a floating-point number, such as $9.25. Then ask howmany hours the employee worked in the past week. Be sure to accept fractional hours. Computethe pay. Any overtime work (over 40 hours per week) is paid at 150 percent of the regular wage(1.5 the hourly pay rate). Print the employee’s name, regular hours worked, regular hours pay,overtime hours worked (do not show overtime hours, if there are none), overtime hours pay (donot show overtime pay if there is none), and total pay. [Do not prompt for overtime hours]Coupon Calculator: For the coupon calculator, the total coupon amount is calculated based onthe type of items purchased. Ask for the shopper’s total purchase amount. Then show…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:…
- You are part of a team writing a system which keeps track of envelopes people sendthrough the postal system. The process begins when a person gives the envelope to apost office, at which point a barcode (containing all necessary information) is generated,and the envelope is labelled. Then, it is possible to keep track of the envelope betweendifferent cities/offices. The software has the following functions:i. generateBarcode()ii. createDatabaseRecord()iii. updateDatabaseRecord()iv. decodeBarcodeAndUpdateEnvelopPosition()v. getEnvelopPosition() (a) State and describe TWO types of beneficial module couplings that may be present inthis piece of software. (b) For each function, pick an example of possible module cohesion and explain the typeof that module cohesion. (c) We know that function updateDatabaseRecord() alters the actions of functioncreateDatabaseRecord(). State and describe the type of module coupling that exists inthe code containing these two functions.Can you please add an execution chart for the code that was answered by tutors like the example below: execution chart: 1.0 Main() 2.0 CalculatePropertyTax() 3.0 displayMessage( input string messageToDisplay) 3.1 return double getHomeValue() 3.2 return boolean checkHomeValue() 3.3 return double applyPropertyTax(input double homeValue) 3.4 displayPropertyTax(input homeValue) 3.5 return Boolean queryMoreData() 4.0 displayMessage(input string messageToDisplay) 4.1 return char getYesNo() 4.2 return char convertCase(input char) 3.6 displayErrorMessage()Task 2: Conditional Statements (Java) ‘Taste Buds’ Ice cream shop provides a menu to customers with ice cream flavours and prices. The customer selects a flavour from the menu at a time until ‘S’ or ‘s’ is entered to stop: Write an application in Java that reads customer choices, calculates the subtotal and total cost of an order using appropriate conditional statements; Output the summary of the task as follows: Welcome to Taste Buds Ice Creams!! Select from the following menu: V: Vanilla: 1.000 OMR S: Strawberry: 1.500 OMR M: Mango: 2.000 OMR C: Chocolate: 2.500 OMR Sample Output: Order a flavour or enter ‘S’ to stop >> V: Vanilla ordered, Subtotal: 1.000 OMR Order another flavour or enter ‘S’ to stop >> M, Mango ordered, Subtotal: 3.000 OMR Order another flavour or enter ‘S’ to stop >> s Total Order cost is 3.000 OMR
- There is a garage where the access road can accommodate any number (specified by user) of trucks at one time. The garage is built in such a way that only the last truck entered can be moved out. Each of the trucks is identified by a positive integer (a truck_id). Write a program to handle truck moves, allowing for the following commands: • On_road(truck_id); • Enter_garage(truck_ id); • Exit_garage(truck_id); • Show_trucks(garage or road); If an attempt is made to get out a truck which is not the closest to the garage entry, the error message Truck is not near garage door DATA STRUCTURES AND ALGORITHMS JAVAA class plays a fishing game in which a large tub is filled with plastic fish that are identical, except that some are red and the rest are white. A student is blindfolded and pulls 10 fish out of the tub. The student removes the blindfold, writes down how many of each color fish she got, and then puts the fish back in the tub. Each student takes a turn. The results are shown in the table. Display these data in a dot plot. Write and answer (to the extent possible) at least three questions about the data display in part (a); include at least one question at each of the three graph-reading levels discussed in the reading.Chapter 5, Programming Challenge #8, Conversion Program (page 314). Program Name: FinalExamConversion. Write a program that asks the user to enter a distance in meters. The program will then present the following menu of selection: Convert to Kilometers Convert to Inches Convert to Feet Quit the Program The program will convert the distance to kilometers, inches or feet, depending on the user’s selection. Write the following methods: getInput: This method prompts user to enter a distance in meters. Returns input to the caller. TestData: Cannot accept negative numbers. Menu: This method does not accept any arguments, but returns a selection to the caller. Convert2Kilometers: This method receives a parameter, converts to kilometers (meters * 0.001) and returns the value to the caller. Convert2Inches: This method receives a parameter, converts to inches (meters * 39.37) and returns the value to the caller. Convert2Feet: This method receives a parameter, converts to feet (meters *…
- Design a program using a console application in java NetBeans, named studentMarksReport that will print the final result obtained by a student with the weighting of each module. Make use of a class named Student that contains variables to store the student number, test result, assignment result and exam. Create a constructor that accepts the student number, test result, assignment result and the exam result as parameters and create get methods for the variables (UseJOptionePane to get variable from the user). Create a subclass called Student_Report that extends the Student class. The Student_Report overrides all getter methods and the constructor from Students. Write code for the print_report method which calculates each assessment weighting as follows: test =25% weighting assignment=25%weighting exam=50%weightingDesign a program using a console application in java NetBeans, named studentMarksReport that will print the final result obtained by a student with the weighting of each module. Make use of a class named Student that contains variables to store the student number, test result, assignment result and exam. Create a constructor that accepts the student number, test result, assignment result and the exam result as parameters and create get methods for the variables (UseJOptionePane to get variable from the user). Create a subclass called Student_Report that extends the Student class#this is a python program #topic: OOP Design the Country class so that the code gives the expected output. [You are not allowed to change the code below] # Write your Class Code here country = Country() print('Name:',country.name) print('Continent:',country.continent) print('Capital:',country.capital) print('Fifa Ranking:',country.fifa_ranking) print('===================') country.name = “Belgium” country.continent = “Europe” country.capital = “Brussels” country.fifa_ranking = 1 print('Name:',country.name) print('Continent:',country.continent) print('Capital:',country.capital) print('Fifa Ranking:',country.fifa_ranking) Output: Name: Bangladesh Continent: Asia Capital: Dhaka Fifa Ranking: 187 =================== Name: Belgium Continent: Europe Capital: Brussels Fifa Ranking: 1