Question: has to be written to the planet.txt c) Write a C program that creates a txt file called planets.txt and contains the listed planets and
c) Write a C program that creates a txt file called planets.txt and contains the listed planets and planet size (radius Km). The program should scan the data in the file and complete the following tasks: - Print all the data onto the screen. Find the largest planet and print onto the screen. Prompt the user for a letter and print all planet details that begin with that letter onto the screen. Please ensure your program includes the required structure template. struct planet solar_system [] {("Mercury", 2439.7), { "Venus", 6051.8), {"Earth", 6371.0), ("Mars", 3389.5), {"Jupiter", 69611.0), ("Saturn", 58232.0), ("Uranus", 25362.0), ("Neptune", 24622.0), {"Pluto",1188.3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
