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
- The company « Super discounted used cars inc.» 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. Write an 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 salary.Crispies 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.All of the employees at Merks Sales are paid based on an annual salary rather than an hourly wage. However, some employees are paid weekly while others are paid every other week (biweekly). Weekly employees receive 52 paychecks; biweekly employees receive 26 paychecks. The payroll manager wants a program that displays two amounts: an employee’s weekly gross pay and his or her biweekly gross pay. Complete an IPO chart for this problem. Desk-check the algorithm using $56,700 as the salary. Then desk-check it using $32,660.
- Write algorithms to solve the problems given in each exercise. Note that you are NOT writing C++ code for this assignment. Please do not submit any code. 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.)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 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
- Congrats! You work for Zillow now. Your first task is to write an algorithm that recommends apartments based on a user’s preferences. Zillow offers the following three properties for rent: Apartment A – 600 square feet, pets allowed, $1400/month Apartment B – 800 square feet, no pets, $1600/month Apartment C – 1000 square feet, pets allowed, $1800/month Write an algorithm for a program that does the following: Prompt the user for the minimum square footage they will accept, how many pets they have, and the maximum price they’d pay per month, and then calculate and output the apartments that match their preferences. If there is no apartment that matches their preferences, print out "No matches, sorry!". Make sure the inputs are valid--negative square footages, prices, and pet numbers don’t make sense!Q6. Write prolog program that read student grades in AI course to find the number of student with grades between 90..100, number of grades between 70..79, and number of grades between 50..59, stop reading when you read finish. Your program should display: Number of grades between 90..100 = ## Number of grades between 70..79 = ## Number of grades between 50..59 = ##Programming Exercise 10 in Chapter 6 asks you find the mean and standard deviation of five numbers. Extend this programming exercise to find the mean and standard deviation of up to 100 numbers. Suppose that the mean (average) of n numbers x1, x2, . . ., xn is x. Then the standard deviation of these numbers is:S=sqrt(((x1-x)^2+(x2-x)^2+...+(xi-x)^2+...+(xn-x)^2)/n)
- Sports exercise advisor algorithm. In this algorithm you will start out with a temperature value in Celsius, so you do not need to ask the user for it. First, convert the temperature to Fahrenheit. Then display a recommended sports exercise based on the Fahrenheit temperature as follows: for temperatures between 65 and 80° display tennis, for colder temperatures display ping pong, and for warmer temperatures display canoeing. thanks in advanceQ2: (Financial: Compare cost) Suppose you shop for rice in two different packages. You would like to write a program to compare the cost. The program prompts the user to enter the weight and price of each package and displays the one with the better price. Here is a sample run: Enter weight and price for package 1: 50 24.59 Enter weight and price for package 2: 25 11.99 Package 2 has a better price.Question Sum implify the following expression by using the prope (x^(3))^(6)(x^(6))^(3) Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line.