Question: Read string integer value pairs from input until Completed is read. For each string read, if the followi or equal to 30, output the string

Read string integer value pairs from input until "Completed" is read. For each string read, if the followi or equal to 30, output the string followed by ": reorder soon". End each output with a newline. Ex: If the input is Dill 35 Garlic 1 Pomegranate 4 Completed, then the output is: Garlic: reorder soon Pomegranate: reorder soon
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
