Question: Write two Algorithms Assignment: 1. The dealers cost of a car is 85% of the listed price. The dealer would accept any offer that is

Write two Algorithms

Assignment:

1. The dealers cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealers cost. Design an algorithm that prompts the user to input the list price of the car and print the least amount that the dealer would accept for the car.

2. You are given a list of students names and their test scores. Design an algorithm that does the following:

a. Calculates the average test scores.

b. Determines and prints the names of all the students whose test scores are below the average test score.

c. Determines the highest test score.

d. Prints the names of all the students whose test scores are the same as the highest test score.

(Each of the parts a, b, c, and d must be solved as a subproblem. The main algorithm combines the solutions of the subproblems.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!