Question: have to write a program based on this QUESTION 6 10 p Write a program that reads the name of fruits and the colors from

have to write a program based on this
QUESTION 6 10 p Write a program that reads the name of fruits and the colors from an input file with the name fruit tbt. Each fruit name and the color is given on a line as shown below separated by space Add checks for the file if required The program has to be general to read in from each line of the file, the name of the fruit and the color, from as many lines and print "Color of the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
