the dealer's coast of a car is 85% of the listed price. The dealer would accept any offer that is at least 500 dollar over the dealer's cost. design an algorithm that prmpts the user to input the list price of the car and print the least amount that the dealerr would accept for the car

Respuesta :

The dealer would accept any offer that is at least 500 dollars over the dealer's cost The algorithms for your query are 1) Declare list Price as a double READ list Price• Declare and initialize most-0.85*list Price+500.0.

What is an easy definition of a set of rules?

A set of rules is a method used for fixing a hassle or acting a computation. Algorithms act as a specific listing of commands that behavior certain moves grade by grade in both hardware- or software-primarily based totally routines. Algorithms are broadly used during all regions of IT.

  1. Function calculateAvg(Scores) Declare and initialize SUM as double identical to 0 • For i=1 to length(Scores) SUM=SUM+Scores.get(i).
  2. EndLoop- Return SUM/length(Scores)
  3. EndFunction- Function printBelowAvg(Names, Scores)
  4. Define and claim AVG=calculateAvg(Scores), For i=1 to length(Scores)
  5. If Scores.get(i)MAX then MAX=Scores.get(i)
  6. Endif,  EndLoop.
  7. RETURN MAX-EndFunction- Function blended Perform(Names, Scores).
  8. PRINT calculateAvg(Scores), print BelowAvg(Names, Scores)
  9. PRINT highestScore(Scores), EndFunction
  10. Call the characteristics as combinedPerform(Names, Scores)
  11. Kindly revert for any queries.

Read more about the algorithm :

https://brainly.com/question/24953880

#SPJ1