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
- SWIFT PROGRAM Complete the given program so that will ask the user to enter 5 fruit itemsgiven the name, price, and taste. The program will then display the total price of each group item base on the taste.PARTICIPATION ACTIVITY 1.3.5: Output simulator. The tool below allows for experimenting with print statements. The variables country_population = 1344130000 and country_name = 'China' have been defined and can be used in the simulator. Try printing the following output: The population of China was 1344130000 in 2011.A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a $500 store bonus is awarded. Additionally, they are doing away with the previous day off program and now using a percent of sales increase to determine if employees get individual bonuses. If sales increased by at least 4% then all employees get a $50 bonus. If they do not, then individual bonuses are 0. The first module in the program is getSales(). Since this is still required, leave this module as is. This module should be written as follows: //MODULE 1 //this module takes in the required user input Module getSales(Real Ref monthlySales) Display “Enter the total sales for the month.” Input monthlySales End Module Step 3: The second module in the program was isBonus(). Since there are two types of bonuses now, rename this module and the module call to storeBonus(). Write an if then else statement within this module that will set the bonus amount to either 5000 or…
- Code a game of sudoku in C++ where the user needs to guess the missing numbers in the grid. The grid will be displayed with given random numbers and the empty places where the user needs to find the number. The user will be given three attempts to solve it, on the third attempt they will be prompted on whether they want to replay the game or quit.In the ChiliToGo program in Exercise 12, the costs to produce an adult meal and a child’s meal are $4.35 and $3.10, respectively. Adult meals are sold for $7.00 and children's meals are sold for $4.00. Modify the ChiliToGo program to display the total profit for each type of meal as well as the grand total profit. An example of the program is shown below: Enter number of adult meals ordered >> 10 Enter number of child meals ordered >> 5 10 adult meals were ordered at 7.0 each. Total is 70.0 5 child meals were ordered at 4.0 each. Total is 20.0 Grand total for all meals is 90.0 Profits: Adult profit is 26.5 Child profit is 4.5 Total profit is 31.0For this homework assignment, you are asked to design an algorithm to compute the employee's bonus using the rules shown below: Bonus Schedule Overtime - (2/3) * Absent Bonus Paid greater than 40 hours = $50 ,greater than 30 but less than 40 hours =$40 ,greater than 20 but less than 30 hours =$30, greater than 10 but less than 20 hours= $20 ,less than 10 hours =$10
- Based on this program, write a flow charts. Addendum: allow user input. */ // set up variables int sharesPurchased; double sharesCostPerShare; double stockBrokerCommission; //int sharesOnHand; //double sharesOriginalCostPerShare; double buyingCost; //double sellingCost; double brokerCost; String input; // input input = JOptionPane.showInputDialog("Purchase how many shares? "); sharesPurchased = Integer.parseInt(input); input = JOptionPane.showInputDialog("Cost per share? "); sharesCostPerShare = Double.parseDouble(input); input = JOptionPane.showInputDialog("Stock broker commission? (ie. .02 for 2%) "); stockBrokerCommission = Double.parseDouble(input); // calculate buyingCost = sharesPurchased * sharesCostPerShare; brokerCost = sharesPurchased * stockBrokerCommission; // display purchase JOptionPane.showMessageDialog(null, "Shares…The monthly payment for a givenloan pays the principal and the interest. The monthly interest is computed by multiplyingthe monthly interest rate and the balance (the remaining principal). The principalpaid for the month is therefore the monthly payment minus the monthly interest.Write a program that lets the user enter the loan amount, number of years, and interestrate then displays the amortization schedule for the loan. Here is a sample run: Loan Amount: 10000 ↵EnterNumber of Years: 1 ↵EnterAnnual Interest Rate: 7 ↵EnterMonthly Payment: 865.26Total Payment: 10383.21Payment# Interest Principal Balance1 58.33 806.93 9193.072 53.62 811.64 8381.43...11 10.00 855.26 860.2712 5.01 860.25 0.01Question: Party budget planning - complex 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…
- Question: Party budget planning - complex 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…Simulate the dice game of lucky sevens. The rules are: roll two dice if the sum equals 7, win $4 if the sum is not 7, lose $1 Write a program that asks the user how much they would like start the game with. The program should then: simulate the dice roll (using the random function) and show what was rolled show what the user’s funds are after each roll ask the user if they want to roll again if the user wants to roll again, repeat the three actions above if the user does not want to roll again give some response and end the game the final output should show if they won or lost money, and how many rolls they played// Program gets a quantity ordered from user // then determines price and discount based on quantity // price per item before discounts is $6.00 // order 15 or more, get a 20% discount // order 10 to 14 - get a 14% discount // order 5 to 9, get a 10% discount using System; using static System.Console; using System.Globalization; class DebugSeven3 { static void Main() { int quantity; double price; quantity = GetQuantity(); price = CalculatePrice(int quantity); WriteLine("Final price for {0} items is {1}.", quantity, price.ToString("C", CultureInfo.GetCultureInfo("en-US"))); } private static int GetQuantity() { int quan; WriteLine("Enter number of items >> "); quan = Convert.ToInt32(ReadLine()); return quan; } private double CalculatePrice(int quantityOrdered) { double PRICE_PER_ITEM = 6.00; double price = 0; double discount = 0; int[] quanLimits = {0, 5, 10, 15}; double[] limits =…