A 1.docx - CS 161 Assignment 01 An Overview of Computers...

This preview shows page 1 out of 1 page.

CS 161 - Assignment 01 An Overview of Computers and Programming Languages Assignment : 1. The dealer’s cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer’s 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. First, we get the price of the car and multiply by 0.85 to get the cost of the car. Then we add $500 to the total to get the least amount that the dealer would accept. If the user entered price lower than the least amount print the least price. 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.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture