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. Using Swift programming
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: 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: A certain store has the following scheme: Commodity Code: J- commodities are discounted by 8% K-…
A:
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: A certain store has the following scheme: Commodity Code: J- commodities are discounted by 8% K-…
A:
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: Problem 2 Create a Java which will require the user to do the following: 1. enter the name of the…
A: //Where the GUI is created: JMenuBar menuBar; JMenu menu, submenu; JMenuItem menuItem;…
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: 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: My Solutions > Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: We need to write a function using Matlab to compute income tax.
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: 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: 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: 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: 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: Bob a builder has come to you to build a program for his construction business. He needs to…
A: Note: Since the programming language is not mentioned in the question so the following program is…
Q: Problem 1. How Much Spaghetti Sauce? A spaghetti sauce recipe calls for the following ingredients: 2…
A:
Q: UO wants a program that displays the amount of money charged for a seminar. The fee per person is…
A: // Code in java import java.util.*; public class Main{ public static void main(String[] args) {…
Q: A certain store has the following scheme: Commodity Code: X - commodities are discounted by 8% Y -…
A:
Q: Bob a builder has come to you to build a program for his construction business. He needs to…
A: Given: Bob a builder has come to you to build a program for his construction business. Heneeds to…
Q: Question: Party budget planning Prompt the user to enter their current budget and the number of…
A: Answer:-
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: 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: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: #include <iostream> #include <string> using namespace std; struct fruitData {…
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: 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should…
A: Given :- 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User…
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: 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: To use the cin.getline function, the program must include the __________ library. Group of answer…
A: The question has been answered in step2
Q: Programming Problem: Grading system conversion from percentage to numerical. The program will ask…
A:
Q: A certain store has the following scheme: Commodity Code: X - commodities are discounted by 8% Y -…
A: Flowchart is a graphical representation of programs which helps in understanding the control flow of…
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: Problem specification Create a program that allows the user to enter a person's age (in years) and…
A: CODE: #include<bits/stdc++.h> using namespace std; int main() { int age; do {…
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: Write a simple console application to accept the item name and item price. The program should…
A: As no programming language is mentioned, it is solved using basic python
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: amount of money charged for a seminar. The fee per person is based on the number of people…
A: Since no programming language is mentioned I am using c++ Algorithm: 1. Start 2. Enter the number of…
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.
Step by step
Solved in 2 steps with 2 images
- PET ID PET NAME PET TYPE PET AGE OWNER VISIT DATE PROCEDURE 246 ROVER DOG 12 SAM COOK JAN 13/2002MAR 27/2002APR 02/2002 01 - RABIES VACCINATION10 - EXAMINE and TREAT WOUND05 - HEART WORM TEST 298 SPOT DOG 2 TERRY KIM JAN 21/2002MAR 10/2002 08 - TETANUS VACCINATION05 - HEART WORM TEST 341 MORRIS CAT 4 SAM COOK JAN 23/2001JAN 13/2002 01 - RABIES VACCINATION01 - RABIES VACCINATION 519 TWEEDY BIRD 2 TERRY KIM APR 30/2002APR 30/2002 20 - ANNUALCHECK UP12 - EYE WASH The functional dependencies that I note are as follows: Pet ID --> Pet Name, Pet Type, Pet Age, Owner Pet ID, Visit Date --> {Visit Procedure} (the set of visit procedures), note the use of procedure codes that repeat, but are listed in their own column So, Is there are other functional dependencies? If so, what are they? If not, why not? Do you believe it would help to create additional attributes during normalization? If so, what are they? If not, justify why it's not needed. Please help me understand this.Students: Johnson, Williams, Matt, Jones, Eric, Lili, John and Jason, whose grades are listed below. Each column is the grades each student received. There are 8 students with 10 grades each. Johnson: 79, 92, 85, 0, 100, 64, 72, 99, 90, 86 Williams: 80, 75 93, 94, 0, 90, 89, 88, 87, 86 Matt: 82, 67, 72, 74, 89, 0, 70, 89, 100, 76 Jones: 85, 84, 82.5, 82, 84, 80, 80.5, 90, 96, 85 Eric: 90, 91, 87, 85.5, 86.5, 0, 90, 90, 91, 92 Lili: 60, 75, 81, 70, 80, 81, 94, 67.5, 99, 98 John: 79,0, 74, 96, 88.5, 88, 0, 100, 86, 83 Jason: 89, 90, 90, 85, 85, 90, 91, 88, 100, 79 Write user-defined functions or build-in functions (e.g., sum, mean, max, min, etc.) to calculate: The Average Grade of each student; this average should be a vector. The average of the class; this average is a scalar vector. The highest grade among the Average Grade of Each Student The lowest grade among the Average Grade of Each Student Show a table with each student's name, average grade and letter score using A, B, C, D, F…Write a SQL Statement that give the output below. Profit The profit for Product ID 183 (Asus GTX780TI-3GD5) is $118.08 The profit for Product ID 185 (MSI GTX 1080 TI LIGHTNING Z) is $185.63 The profit for Product ID 281 (Asus ROG-POSEIDON-GTX1080TI-P11G-GAMING) is $168.84 The profit for Product ID 216 (MSI GTX 1080 TI LIGHTNING X) is $121.84 The profit for Product ID 6 (Zotac ZT-P10810A-10P) is $147.64 The profit for Product ID 108 (MSI GAMING) is $96.81 The profit for Product ID 83 (Asus STRIX-GTX1080TI-O11G-GAMING) is $138.86 The profit for Product ID 215 (PNY VCOP4000-PB) is $105.89
- Table name: ADVISORS ADVISORID ADVISORNAME A102 Sami A103 Alice A104 Suad A105 Tamil A101 Arun Table name: DEPARTMENTS DEPTID DEPTNAME D102 ELC D101 IT D103 BSD D104 ENG Table name: STUDENTS STUDENTID STUDENTNAME DOB GENDER ALLOWANCE DEPTID ADVISORID STUDENTLEVEL AGE Hisham 6/1/1999 Male 90 D102 S103 A102 Level 1 22 12/30/1994 Female 45 D103 S102 Sara A104 Diploma 27 S101 Salim 6/1/1999 Male 45 | D103 A104 Diploma 22 5107 Khalil 5/6/1995 Male 45 D101 A101 Blech 26 45 | D104 Advanced Diploma S109 Said 10/15/1992 Male A101 29 5/1/1995 Male 45 D101 90 D104 5100 Ahmad BTech Advanced Diploma A103 26 4/5/1998 Male 2/23/1992 Female 9/12/1999 Female S104 Faisal A101 23 0 D102 45 D102 S105 Fatima 90 A102 Level 2 29 S106 Arwa A102 Level 3 22 S108 Ibtisam 8/13/1991 Female 90 D103 A104 Diploma 30 Write the SQL statement for the following: 1. Using the ON clause, display the advisor name and student name for all students in the BTech level 2. Display the student name, gender and department name of…LUNCH SALES Days of Week Lunch Sold Qty Unit Price Total Sold Monday Chicken 25 15.00 $ 375.00 Monday Pork 15 20.00 $ 300.00 Monday Fish 20 25.00 $ 500.00 Tuesday Mutton 15 23.00 $ 345.00 Tuesday Fish 30 25.00 $ 750.00 Wednesday Chicken 55 15.00 $ 825.00 Thursday Turkey 45 18.00 $ 810.00 Friday Turkey 60 18.00 $ 1,080.00 Saturday Chicken 15 15.00 $ 225.00 Saturday Mutton 45 23.00 $ 1,035.00 Saturday Fish 55 25.00 $ 1,375.00 Saturday Turkey 50 18.00 $ 900.00 Saturday Pork 20 20.00 $ 400.00 Sunday Fish 55 25.00 $ 1,375.00 Sunday Mutton 35 23.00 $ 805.00 Sunday Chicken 30 15.00 $ 450.00 #NAME? Fruit # of Days Sold Total Sold Sum of Total Sold Chicken Mutton Fish Turkey Pork Instructions: (Fill in the columns of the "Calculations Table") 1.…Matalab else Dowvote.
- An agency called Resourcecover supplies part-time/temporary staff to hotels throughout Mauritius. The table shown in Figure 1 lists the time spent by agency staff working at two hotels. The National Insurance Number (NIN) is unique for each employee. NIN contractNo HrsPerWeek empName HotelNo HotelLocation 125WD C1024 16 Samuel Н25 Grandbay Fody 142XA C1024 24 Dev Samy Н25 Grandbay 169YD C1025 28 Sara Ally H4 Tamarin 125WD C1025 16 Samuel Н4 Tamarin Fody Figure 1: Resourcecover i. The table shown in Figure 1 is susceptible to update anomalies. Provide examples of insertion, deletion, and update anomalies. i. Describe and illustrate the process of normalising the table shown in Figure 1 to 3NF. State any assumptions you make about the data shown in this table.which expression best to describe 31% ? (a) Just under a half (b) A tiny fraction (c) Nearly a third (d) Roughly one quarter We can describe the following figure as: Peach 10% Grapes 27% (a) Line graph (b) Bar graph (c) Flow chart (d) Pie chart Orange 13% Banana 30% Pineapple 20%There have been several actors who have played the titular character in the British sci-fi series Doctor Who since the show began in the early 1960s. In 2005 the series was rebooted and Christopher Eccleston, David Tennant, Matt Smith, Peter Capaldi, and Jodie Whittaker have all played the Doctor since. Several Whovians (fans of the show) were asked to rank the actors of the Doctor from their favorite to their least favorite. The results are in the preference schedule below using the initials of each actor (so CE = Christopher Eccleston; DT = David Tennant; etc.). 6 8 12 16 17 18 23 20 1st Choice CE DT DT DT MS MS PC JW 2nd Choice MS CE PC PC JW CE JW CE 3rd Choice DT JW CE JW CE DT DT PC 4th Choice PC MS JW MS PC PC CE DT 5th Choice JW PC MS CE DT JW MS MS Is there a Condorcet winner?Answer: Explain: Do any of the voting methodsPlurality Method, Instant…
- There have been several actors who have played the titular character in the British sci-fi series Doctor Who since the show began in the early 1960s. In 2005 the series was rebooted and Christopher Eccleston, David Tennant, Matt Smith, Peter Capaldi, and Jodie Whittaker have all played the Doctor since. Several Whovians (fans of the show) were asked to rank the actors of the Doctor from their favorite to their least favorite. The results are in the preference schedule below using the initials of each actor (so CE = Christopher Eccleston; DT = David Tennant; etc.). 6. 8 12 16 17 18 23 20 1st Choice DT DT DT MS MS PC JW CE 2nd Choice CE PC PC JW CE JW CE MS 3rd Choice JW СЕ JW CE DT DT PC DT 4th Choice PC MS JW MS PC PC DT PC MS CE DT JW MS MS 5th Choice JW a. Is there a Condorcet winner? Answer: Explain: b. Do any of the voting methods Plurality Method, Instant Runoff Voting Method, Borda Count Method, Copeland's Method violate the Majority Criterion? Answer: Explain:Table name: ADVISORS ADVISORID ADVISORNAME A102 Sami A103 Alice A104 Suad A105 Tamil A101 Arun Table name: DEPARTMENTS DEPTID DEPTNAME ELC D102 D101 IT D103 BSD D104 ENG Table name: STUDENTS STUDENTID STUDENTNAME DOB GENDER ALLOWANCE DEPTID ADVISORID STUDENTLEVEL AGE 6/1/1999 Male 12/30/1994 Female 6/1/1999 Male 5/6/1995 Male 10/15/1992 Male S103 Hisham 90 D102 A102 Level 1 22 S102 Sara 45 D103 A104 Diploma 27 S101 Salim 45 D103 A104 Diploma 22 S107 Khalil 45 D101 A101 BTech 26 S109 Said 45 D104 A101 Advanced Diploma 29 s100 Ahmad 5/1/1995 Male 45 D101 A103 BTech 26 S104 Faisal 4/5/1998 Male 90 D104 A101 Advanced Diploma 23 S105 Fatima 2/23/1992 Female 90 D102 A102 Level 2 29 9/12/1999 Female 8/13/1991 Female S106 Arwa 45 D102 A102 Level 3 22 S108 Ibtisam 90 D103 A104 Diploma 30 Write the SQL statement for the following: 1. Using the ON clause, display the advisor name and student name for all students in the BTech levelMember ID 1582 2587 3549 9536 2567 2154 3265 8765 3259 6540 First Name Mara Philip Kathleen Sau Shanice Chase Tommie Dorcas Angel Weston BookingID 1 2 3 4 5 6 7 8 Table 1: Member Last Name Gender Age Female 25 Male 36 Female 25 United States Female 25 United States Hashimoto Gent Hanner Pfau Mccrystal Karner Jia Darity Sanor Martina Room Room 15 Room 25 Room 1 Room 15 Room 5 Room 21 Room 3 Room 8 Date 29-Dec-2020 9-Dec-2021 3-Mar-2019 4-Sep-2021 13-Feb-2021 6-May-2021 10-Nov-2020 4-Apr-2022 Table 2: Booking Days 2 4 6 5 10 6 5 Female 36 Male 37 Male 26 Female 37 Male 24 Male 23 4 Table 3: Make MemberID 3549 9536 6540 2154 2567 2154 3265 1582 $150.00 $80.00 $120.00 $300.00 Country Uganda France 3 4 China Australia United States United States Cost per day $200.00 $80.00 $80.00 $150.00 5 6 7 8 France China BookingID 1 2 Joined Date 16-Aug-2020 21-May-2015 12-Dec-2017 16-Aug-2019 16-Aug-2020 1-Jan-2021 29-Dec-2018 21-May-2019 4-Mar-2019 1-Feb-2022 Status Paid Paid Pending Paid Pending Paid…