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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!