One-tenth of the cars in a car park are yellow. Another car arrives and now one-ninth of the cars are yellow.

How many cars are now in the car park?

3 answers

If there are x cars and y yellow cars, clearly the new car is yellow, since 1/9 > 1/10

y = x/10
y+1 = (x+1)/9

There are now 81 cars, with 9 yellow.
For the code, something like

count=0
for i=1..2000
  with student[i] do {
    read   name,sex,score
    pct = score*5/2
    sub45 = false
    if pct < 45 then
      if sex = "F" then
      count++
      print name
    }
  }
}
print "There were ",count," females scoring below 45%"
81
Similar Questions
  1. William the Conqueror took control of England in the year 1066.This was in which century? Responses ninth ninth tenth tenth
    1. answers icon 1 answer
    1. answers icon 1 answer
  2. QuestionWhich amendment had the greatest impact on civil rights in the United States? (1 point) Responses the Third the Third
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions