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 S 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: A company pays a 3% annual bonus to employees who have been with the company more than 5 years;…
A:
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: Ahmed wants to Furnishes his office. He has 160.55 OMR. He wants the following products Desk with…
A: Algorithm:- Step 1 Start Step 2 initial_amount = 160.55 Step 3 desk_price = 52.30 Step 4…
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: 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: Cupboard 32.50 Computer 25.25 Table Shoe Rack 15.00 Write an algorithm and draw a flowchart to check…
A: algorithm declare bag =5.50,table=25.00,chair=15.25,cupboard=32.50,computer table=25.25,shoe…
Q: Comm Target Outcome: (CO2) Write algorithms to solve different programming problems using flowchart…
A: Here we make simple flow chart:===================================================================
Q: "### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of…
A: Algorithm: Algorithm for given problem is: Start print("Enter total points at end of the course:")…
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: eclare variables ame = "" ilyCookies = 0 eklyCookies = 0 ays = 0 al = 0 alDifference = 0 Fice = sk…
A: Required: I need 2 bugs in this
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: A customer has 500 NIS cash money and wanted to buy some items from a market. Design an algorithm…
A: Answer in step2
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: Find the total cost by multiplying quantity and price Check the quantity and based on condition…
Q: Note: Attempt all questions Q1/ create a QBasic program that will determine the price of traveler…
A: INPUT "Enter your age", ageIF age >= 0 AND age <= 4 THEN t = 40IF age >=5 AND age <= 18…
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: 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: Question #1. Product in the Range [N...M] Write a Program that reads a starting number (N) and…
A: // C# program to print the product // of all numbers in range N and M using System; class GFG{…
Q: Exercise 4 Write a program that allows a user to play HiLo game. User wins if he/she can guess the…
A:
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: Q1 // Follow the following program, explaining the results: (If you know that L is your grade in the…
A: - We have to track the values of L and K from the program given.
Q: Question 1 Write an algorithm that lets the user enter several items prices (number of items is…
A: a loop can be infinite when the condition is true and to exit from the loop immediately break…
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: Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing,…
A: Objective: To design an algorithm that prompts the user to input the lawn area, the number of…
Q: Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing,…
A: Below is the algorithm for the given question: -
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: 1. A 10% discount is applied to purchases over $10.00. Write a program that asks for amount…
A: The program is created as follows: Declare variables for purchase amount, discount and discounted…
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: Algorithm: 1. Prompt the user for number of hours. 2. Read the value for hours. 3.…
A: 1. Prompt the user for number of hours.2. Read the value for hours.3. Prompt the user for…
Q: UTAS College teacher need to enter 75 marks of students and find out the following • Find out the…
A: program: //importing essential java package import java.util.Arrays; //import Scanner class…
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: 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…
Step by step
Solved in 2 steps
- 18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.) (9)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 solution
- 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-80sNote: 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-80sCrispies 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.
- Question 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.6- 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")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 customer
- 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 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 questionTask 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