While loops help
spiritsarehere

Hi for my while loops homework I got a question which I don't really understand what to write, so I would be grateful if someone could explain it to me:
A parts supply company uses 4-digit part numbers. The last digit indicates the production run. If
the production run is 6,7 or 8 it is considered to be an old model.
Write a code that prompts the user to enter a part number.
The length of the part number should be equal to 4 digits, otherwise an error message will be
displayed and the user will be prompted to input the part number again.
The algorithm should count the total number of parts entered and the number of an old model
parts and output these totals.
Data input will terminate when the user inputs 9999.

You are viewing a single comment. View All
Answered by Bookie0 [earned 5 cycles]
View Answer
TamjidChoudhury

@Bookie0 Can i see this code please?