Complete the given program so that will ask the user to enter 5 fruit items given the name, price, and taste. The program will then display the total price of each group item base on the taste.
Q: Anvered Write a progran Anvered: Write a progran Answered: The results from Blendeo Assessment my…
A: Algorithm: Start Read member id, sales month and sales amount Define a method RateCommission which…
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Step 1:- The algorithm is defined as a set of instructions that is very helpful for design the…
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Required:
Q: 1 The salary scales of workers in an institution are taken as input. The workers get paid as per the…
A: Solution 1 - Programming language used - C All necessary comments are included in program code.…
Q: Q2. Write a program to get the marks in 5 subjects. Calculate the total and grade. Display name,…
A: As per requirement code is done in online compiler....
Q: ES085 Computer Programming 1 Course Number Course Title Topics Covered: Switch and if-else if…
A: /*C Program with if else if statement to calculate the commision of…
Q: Programming Language is (C#), Thank you. Write a code under Button named "ToUpper" given in…
A: Step 1: Add listBox1 to the form. Step 2: Add listBox2 to the form. Step 3: Add button1 to the form.…
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: conditional structures Create a program that will ask for the username and password. USER NAME:…
A: #include <iostream>using namespace std; int main(){ string CorrectUserName = "XXXXX";…
Q: Write a program that use a structure called item contains information about 100 different items in a…
A: #note no programming language is mentioned so i was used c++ programming language…
Q: C++ Mobile Service ProviderModify the program in Problem 5 so that it also displays how much…
A: Code:
Q: Design a program that calculate your age and displays the following information • Your name • Your…
A: Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.…
Q: Based on the following condition and statements, age Message 0 to 17 Display "You are kind" 18 to 50…
A: Problem statement In this problem statement, the program asks the user for his/her age. Based on…
Q: Problem Statement Write a program to help Florence decide which snacks and beverages to serve her…
A: the c ++ code is an given below :
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: // simple list program using inheritance // Fruit is a base class with 3 derived classes: Apple,…
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: C Language Create 3 functions for your program. Function 1: Display Menu Create a function to…
A: #include<stdio.h>#include<string.h>//function to display menuvoid Display(){…
Q: Write a program so that the user enters four items of information for each of three employees: an…
A: required: Write a program so that the user enters four items of information for each of three…
Q: QUESTION 2 An event for a company is designed to bring customers from Kuala Lumpur to a gathering in…
A: As the language is not specified answer written in c++ Introduction to the problem: 1)using if…
Q: Using c++ write a program : Write a program in C++ to handle the following scenario: Three friends…
A: #include <iostream> using namespace std; int main(){ float x,y,z,w,a,b,c,profit;…
Q: 7. Software Sales A software company sells a package that retails for $99. Quantity discounts are…
A: IPO CHART Input Processing Output 1 number (number_of_packages) Get 1 number Calculate…
Q: Function task2() emulates purchasing a soda from a vending machine. A soda costs $1.00. The user can…
A: Given: Write a python function that emulates purchasing of soda vending machine.
Q: Two players A,B are playing a game in which there are 3 rounds. Write a program in which user enters…
A: Algorithm : Step 1 : declare variables. Step 2 : ask for the scores of player A and B for three…
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: A C++ program to display the number of calories consumed for the cookies that he/she ate is given…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: Swift code to solve the given problem
Q: Two players A,B are playing a game in which there are 3 rounds. Write a program in which user enters…
A: We have to write a c++ code for the two players and at the end we have to show the winner who got…
Q: Problem 1. How Much Spaghetti Sauce? A spaghetti sauce recipe calls for the following ingredients: 2…
A:
Q: Function task2() emulates purchasing a soda from a vending machine. A soda costs $1.00. The user can…
A: def Task2(): currentAmount = 0.0 print("Soda Vending Machine") while True:…
Q: Bob a builder has come to you to build a program for his business. He needs to determine the square…
A: Note : As the question is not specific about the programming language to be used for the program, we…
Q: A certain store has the following scheme: Commodity Code: A - commodities are discounted by 10% B -…
A: Actually, program is a executable software that runs on a computer.
Q: İnstruction: A certain store has the following scheme: Commodity Code: A - commodities are…
A: From the given scenario, Find the total amount paid with some given condition. Decision structure:…
Q: The given table on the right lists the Calorie contents of several foods., Running or walking burns…
A: Code:- #include <iostream>using namespace std;int main() { int totalCalories, chocolate,…
Q: The Meteorological service requires a program to allow the operator to enter the rainfall level. The…
A: use while loop to take values until zero is pressed. store the values into array and then find min…
Q: QUESTION 1 a) Based on the requirement given below, prepare a flowchart for a program develop for…
A: A flowchart is defined as the unified modeling language diagram it describes the flow of events or…
Q: Design a retirement planning calculator for Skulling Financial Services. Allow a user to enter a…
A: #include<iostream> using namespace std; int main(){ int years; float savingsPerYear,…
Q: a) Write the C++ statements for following tasks: Declare a struct name GameRecord The members are…
A: The question is to write C++ code for the given problem.
Q: Write a program that will compute the students average •The user will input the following:…
A: Only the 1st question is answered. Please repost the other questions in another doubt session. As…
Q: (Financial application: find the profit-per-item) You have just started a new stationary shop. Your…
A: Note: As programming language is not mentioned. So, used C++ language to complete the task. Program:…
Q: Exercise 4: Write a program that reads how much a customer spends on groceries and computes the…
A: Write a problem, input, output , algorithm,comments and design a python program Note: Please make…
Q: a. What is the syntax error in Program B. b. Correct the syntax error. You are only required to…
A: Note: The answers of the first three subparts are given only. Please repost the last subpart to get…
Q: write a program that asks the user to enter the number of packages purchased. the program should…
A: Initially, the package is of $99 If you buy less than 10, no discount If you buy 10-19, the discount…
Q: Problem 2. Ocean Levels Assuming the ocean's level is currently rising at about 1.8 millimeters per…
A: We need to , create an python application that displays the number of millimeters that the ocean…
Q: Mobile Service ProviderModify the program in Problem 5 so that it also displays how much package A…
A: The code is corrected and the savings for all the packages(A,B and C) are displayed.
Q: Subject: programming language : c++ Question : Jane has opened a new fitness center with charges…
A: I have added the output screenshot. Also with total money made, the code prints members and their…
Q: Write a structure to store the names, salary and hours of work per day of 10 employees in a company.…
A: Read the name, salary, hours for every Employee and based on hours update the salary accordingly
Q: Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member…
A: Program: //include the required header files #include <iostream> #include <string>…
Q: Classification Based on Range (with C++) Write a program that takes the income of an employee and…
A: #include <iostream>using namespace std;int main() { int income,net_income,tax;…
Q: Modify the program that computes paint cost to allow the user to enter the number of doorways that…
A: The step-by-step approach(Pseudocode) for this problem is shown below. Input the wall width Input…
Q: The company offers 10-, 15-, and 30-year fixed loans. The interest rates offered to customers are…
A: Objective: This program builds an application for calculating the monthly payment of an entered loan…
Problem
given the name, price, and taste. The program will then display the total price of each group item base on the taste.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Change the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.Question: Party budget planning Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might help you…It's important to know how to best utilize the super keyword.
- In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.The company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salarySerendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: If a customer purchases no books, he or she earns 0 points If a customer purchases 1 through 5 books, he or she earns 5 points for each book. If a customer purchases 6 through 10 books, he or she earns 10 points for each book. If a customer purchases 11 or more books, he or she earns points equal to 20 points for each book. (Use Python) Use the Design Recipe to write the function customer_rewards which consumes the number of books purchased, and returns the total points. Include a docstring! Write 3 assert_equal statements to test your function.
- Design an application that accepts 10 numbers and displays them in descending order.Computer Science Question LabThere is only one list of N ingredients in the menu. Every ingredient has its beauty value that does not depend on its taste, but on the way it looks, which is expressed as a positive integer. To order a dish, the customer asks Ramsay to use all the ingredients from L to R (L is strictly less than R). Ramsay knows that the dish will be tasty and not only beautiful if the sum of its ingredients' beauty values is divisible by K. Ramsay does not want to use all the ingredients, so he always excludes one of them. Which one? - The least beautiful one! (in other words - which has the minimal beauty value). Now he wonders - how many segments (L,R) are there such that the sum of their beauty values will be divisible by K after excluding the least beautiful ingredient. Your assignment is to develop a python code that prints the answer for the problem. Sample test case are given below:Input:3 51 2 30utput:1Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.
- VBA - EXCEL Engine – optional – this indicates the solving method that needs to be used to get to a solution. 1 for the Simplex LP method, 2 for the GRG Nonlinear method, or 3 for the Evolutionary method. This corresponds to the Select a Solving Method dropdown list in the Solver Parameters dialog box EngineDesc – optional -this is an alternate way of selecting the solving method – here you would type the strings “Simplex LP”, “GRG Nonlinear” or “Evolutionary”. This also corresponds to the Select a Solving Method dropdown list in the Solver Parameters dialog box What happens when the code demonstrates: Engine:=1, EngineDesc:="GRG Nonlinear" ?Programming Exercise 3-5 Tasks Create the BookstoreCredit class. The computeDiscount method calculates a discount based on student's GPA. The BookstoreCredit program displays the discount for the student's information. JO > >! 1000$ by default, but discounts are applied to it based on different criteria. 1- Students get 20% discount. 2- People who purchase in 30 days in advance get 25% discount. 3- student purchasing 40 days in advance gets a 40% discount. This code segment calculates the final price. x = Text1.Text If x= "student" Then 1-... ElseIf x= "advance" Then price 1000 - 0.25 * 1000 ElseIf x= "stu_adv" Then price 1000 - 0.4 * 1000 2-...... price = 1000 3-..... 4-.. O = 1-price = 1000 - 0.2 * 1000 2-Else 3- End If 4-Print price 1-price 1000 - 0.2 * 1000 2-Else 3- Print price 4-End If 1-price = 3-End If 4-Print price = 1000 -0.2 * 1000 2-Elseif