Question 1 Write an algorithm that lets the user enter several items prices (number of items is unknown), (when the user finishes he must enter -1): then this algorithm computes and prints the following: -- Average price - Highest and lowest price How many prices are above 100$ How many prices are between 50 $ and 150 $ --
Q: /rite a program that will ask the user to continuously enter a number until such time that the…
A: In step 2 I have pasted the python code, please go through it.
Q: Although the following code segments are syntactically correct, each containsan error. Locate the…
A: Given: Although the following code segments are syntactically correct, each containsan error.…
Q: 1) The algorithm will check if the customer is partner or not. 2) If the customer is a partner then…
A: The complete code is given below .
Q: O Looking At College Apartments | It's Gett.. G Grok | Calculate rok Code Gym 1a academy Calculator…
A: I've used the input() function in this example. To collect data from the user. To subtract the…
Q: a) if ( age >= 65); puts( "Age is greater than or equal to 65"); else puts( "Age is less than 65" );…
A: Given: To find error in given C codes.
Q: Sales are paid based on an annual salary rather than an hourly wage. However, some employees are…
A: Here we take a simple ipo chart for this problem. ================================= Keep in mind…
Q: Create pseudocode and flowchart that will accept the evaluation score of a faculty and determine its…
A: // pesudocode for faculty remark void facultyRemark(){ // facultyName to store faculty name…
Q: Rent A Van wants a program that calculates the total cost of renting a van. Customers pay a base fee…
A: Answer is given below .
Q: Question 1[15 pts]: Write a java program to help an employee calculate the price of a product after…
A: this is a simple logical coding question in java the complete code and its output is attached in the…
Q: What does the following algorithm show Algorithm Begin [initialization]…
A: We have an Algorithm which shows the monthly salary of an employee who is working in a car showroom.…
Q: Create IPO chart for the below program, write the algorithm using pseudo code #include int main() {…
A:
Q: Comm Target Outcome: (CO2) Write algorithms to solve different programming problems using flowchart…
A: Here we make simple flow chart:===================================================================
Q: All coding is done in Java. I am using IntelliJ Idea if it helps. 12. Bar Chart Write a program…
A: the answer is given below:-
Q: A customer has 500 NIS cash money and wanted to buy some items from a market. Design an algorithm…
A: Answer in step2
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: What will each of the following program segments display? A) x = 2; y = x++;cout << x <<…
A: Answer: A) x = 2; y = x++;cout << x << " " << y; A). 32
Q: Tom and Jerry opened a new lawn service. They provide three types of services: moving, fertilizing,…
A: To find the billing amount, it is important to know the lawn area for moving, the number of…
Q: Write an algorithm that lets the user enter several items prices (number of items is unknown)(when…
A: 1)Start 2)initialize number_of_items=0;sum_of_all_prices=0;highest_price=0;lowest_price=100000…
Q: grade, based on the marks numbers entered by the user (Using the table below). From To Grade 90 100…
A: Please find the answer to the above question below:
Q: Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of…
A: Given : Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of…
Q: Question 1 Write an algorithm that lets the user enter several items prices (number of items is…
A: ALGORITHM - STEP 1 - Create while loop and keep taking input from user and store all item prices in…
Q: Write the algorithm and a program that prompts the user to input the masses of the bodies and the…
A: 1. Input the masses of the two bodies and the distance between them. 2. Calculate the force between…
Q: Following is a problem statement. Which of the below algorithms should be used to solve the problem…
A: Given base cost is 50 cents and additional cost per minute is 15 cents The VAT will be 14% of entire…
Q: QUADRATIC EQUATION This will solve a quadratic equation in the form: Ax^2 + Bx + c = 0 Enter A: 1…
A: C++ program to solve the given problem is below.
Q: Task 2: Multiply of two fractions The formula to find the Multiply of two fractions is: 6a 4a +20…
A: Below I have provided C++ Programming. Also, I have attached the screenshot of the code and output…
Q: The two roots of a quadratic equationax2 + bx + c = 0 can be obtained using the following formula:b2…
A: Program Planning: Step 1: Take entries of values for a, b, and c from the user first. Step 2:…
Q: The Game of Nim Problem Description: Two players alternately take marbles from a pile. In each move,…
A: Program Requirements as per question: The program must define and use the following methods, int…
Q: Q12.docx > Q/ The following table shows the order of five students degrees in mathmetics, physics…
A: The algorithm for the given input data. Algorithm: step 1 Start step 2 Input S // No of…
Q: QUESTION1. Write I program that asks the user to enter today's sales for five stores. The program…
A: import java.util.Scanner; public class Main { public static void main(String[] args) { double[]…
Q: Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing,…
A: #include <iostream>using namespace std; //main function int main () {//we are considering…
Q: Q1. Write an algorithm to check whether the blood donor is eligible or not for donating the blood.…
A: As per our guidelines we are supposed to answer only one question. Kindly repost other questions as…
Q: 12: guess.cpp) Irite a program that plays a guessing game with the user. The user should pick a…
A: The variables are declared to hold the starting letter, 'a', ending letter, 'z', and the guessed…
Q: Q6. Write prolog program that read student grades in AI course to find the number of student with…
A: Actually, program is a executable program that runs on a computer.
Q: An online sales company sells a ceratin item for $49.99. Quantity discounts are given according to…
A: As there is no programming language is mentioned in the question, So I will solve this question…
Q: Q/ The following table shows the order of five students degrees in mathmetics , physics and english…
A: While doing programming in any programming language, you need to use various variables to store…
Q: rite an algorithm that will calculate the salary of an employee for the month, and then display on…
A: The given details are related to calculating the salary of employees working for a Car company. The…
Q: Question 4: Write an algorithm that asks the user to enter an integer number then prints the sum of…
A: Simple Algorithm to find sum of all digits of a number: Step 1: Get number by user Step 2: Get the…
Q: The user must be able to enter the information for a number of bookings from the keyboard. Ask…
A: In the solution of given problem, we need to declare a structure with members: flight number, type…
Q: Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of…
A: Dear Student, The algorithm for above question is given below.
Q: o solve a problem is ca
A: It is a specific procedure for solving a well-defined computational problem. Requires an…
Q: Crispies Bagels and Bites wants a program that allows its salesclerks to enter the number of bagels,…
A: Input output flow
Q: ate a program Will display the student's infom tion. The progräm should perform the folowing: • Ask…
A: Implementation: import java.util.*;public class Main{ public static void main(String[] args) {…
Q: Desk check the algorithm given below.
A: Desk check the algorithm Desk checking is a manual process to check the logic of an algorithm. A…
Q: 19. The manager of a video rental store wants a program that calculates the amount a customer owes…
A: a) When the user enters 3 as the number of late days then the algorithm will compute the flowing: It…
Q: Enter the amount of dollars >> 236 236 dollars twenties: 11 tens: Press any key to continue.. 1…
A: Algorithm : Step 1 : declare variables. Step 2 : initialize variables to 0. Step 3 : ask for the…
Q: Suppose you shop for rice in two different packages. You would like to write a program to compare…
A: import java.util.Scanner; public class Exercise_1{ public static void main(String[] args)…
Q: A cloth showroom has announced the following seasonal discounts on purchase of items. Purchase…
A: We use if statement within the switch statement. Algorithm Start. Prompt menu to press 1. for Mill…
Q: Transcribed Image Text A student took four quizzes in a term and would like to compute their…
A: The problem is based on the basics of conditonal statements in programming languages. NOTE: The…
Q: Write a pricing algorithm for item A and the amount you bought. The algorithm shows the cost,…
A: 1) Read the item A price from the user 2)Read the amount brought from the user
Step by step
Solved in 2 steps with 1 images
- Party-On sells individual hot/cold cups and dessert plates for parties. SueChen wants a program that allows her to enter the price of a cup, the price of a plate, the number of cups purchased, and the number of plates purchased. The program should then calculate the total cost of the purchase, including the sales tax. Finally, the program should display the total cost on the screen. Desk-check your solution’s algorithm using $0.50 as the cup price, $1 as the plate price, 35 as the number of cups, 35 as the number of plates, and 2% as the tax rate. Then desk-check it using $0.25, $0.75, 20, 10, and 6%.Exercise II Write a program that finds the positive integer solutions of the following equation ax³ + bx² + cx' + d = 0. The user enters the values of coefficients a, b, c and d. The program should test each integer starting from -50 to 50, and each time the equation is equal to zero, it prints its value as well as "is a solution". At the end, it displays the total number of positive integers found. Note that if the equation has more than one solution, the plural word “solutions" is used in the output. Sample run 1: Enter the coefficient of a, b, c, d: 1 -8.5 21 -13.5 1 is a solution 3 is a solution The equation has 2 integers as solutions Sample run 2: Enter the coefficient of a, b, c, d: 6 48 103.5 67.5 The equation has no integer solutions Sample run 3: Enter the coefficient of a, b, c, d: 1 -1 -12 0 4 is a solution The equation has 1 integer solutionCrispies Bagels and Bites wants a program that allows its salesclerks to enter the number of bagels, donuts, and cups of coffee a customer orders. Bagels are 99 cents, donuts are 75 cents, and coffee is $1.20 per cup. The program should calculate and display the total price of the customer’s order. First, create an IPO chart for this problem, and then desk-check the algorithm twice. For the first desk-check, use 0, 12, and 2 as the number of bagels, donuts, and cups of coffee, respectively. For the second desk-check, use 2, 6, and 1.
- Note: Attempt all questions Q1/create a QBasic program that will determine the price of traveler ticket based on customers age. The program must able to input the customer s age then set the conditions so the price is determined as follows: age 0-4 (child) price 40$ age 5-18 (student) price=1008 age 19-64 (young) price-1508 age >65 (old) price-80s6- You have two numbers ABCD and WXYZ (ex: 2345 and 7965). Write an algorithm using Pseudocode that decides whether ABCD is the inverse of WXYZ. (For example, if ABCD is 2356 and WXYZ is 6532 then the algorithm prints "Inverse" otherwise it will print "Not Invers")Note: Attempt all questions Q1/create a QBasic program that will determine the price of traveler ticket based on customers age. The program must able to input the customer s age then set the conditions so the price is determined as follows: age 0-4 (child) price-40S age 5-18 (student) price-1008 age 19-64 (young) price-1508 age >65 (old) price-80s
- flowcharts Task 1: Find the even multiples of any number chosen by the user in a given range – the user should specify the multiples of which number they want to print and a minimum and maximum value. The multiples printed should be within the [minimum, maximum] range. For example, if the user chooses the number 7 and would like to print all even multiples in the [15, 60] range, the program should print all the even multiples that are bigger than or equal to 15 (minimum), but smaller than or equal to 60 (maximum). The program should keep a count of how many numbers were printed and should output that count, as well as the numbers. The output then, for the example given, should be 28, 42, 56, and the count should be 3.A cloth showroom has announced the following seasonal discounts on purchase of items. Purchase Amount Discount Mill Cloth Handloom Items 0 to 100 0 5% 101 - 200 5% 7.5% 201 - 300 7.5% 10% Above 300 10% 15% Write a algorithm to compute the net amount to be paid by a customerTask 1: Find the even multiples of any number chosen by the user in a given range - the user should specify the multiples of which number they want to print and a minimum and maximum value. The multiples printed should be within the [minimum, maximum] range. For example, if the user chooses the number 7 and would like to print all even multiples in the [15, 60] range, the program should print all the even multiples that are bigger than or equal to 15 (minimum), but smaller than or equal to 60 (maximum). The program should keep a count of how many numbers were printed and should output that count, as well as the numbers. The output then, for the example given, should be 28, 42, 56, and the count should be 3. Shell scripting
- Fibonacci sequence: The first two numbers of the fibonacci sequence are 1 and 1, and sequential numbers are the sum of the previous two. Write a program that prompts the user for an integer n and then prints the first n numbers of the Fibonacci sequence (Please type answer no write by hend)A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Qt: 10 -19 Discount: 10% Qt: 20 -49 Discount: 20% Qt: 50 -99 Discount: 30% Qt: 100 or More Discount: 40% Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Python programming questionQuestion 3: Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of students. The algorithm should first read the total number of students and then read the height and weight of each student to calculate and print the BMI category. A student is considered Underweight if the BMI is less than or equal to 18.5; Normal Weight if between 18.5 and 24.9; Overweight if between 25 and 29.9; and Obese if greater than or equal to 30.