Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

kindly answer in C programming language. Using the same team you had for program 1, create a program that reads in a list of CSCI

kindly answer in C programming language.

Using the same team you had for program 1, create a program that reads in a list of CSCI classes from a file (must use file pointers). Store the list in a data structure. Allow the user (a student) to have the following options: 1) Print all classes by CSCI number (include all information) in order of CSCI number. 2) Print all classes available on MWF or available on TR in order of times. 3) Print the class available at a specific time (test this with MWF 0900 and TR 1100) 4) Print classes available to freshman, sophomore, junior or senior (corresponds to last number on each line in the input file) in order of CSCI number. This means you have to convert back and forth between the strings (freshman, ...) and the numbers (1,2, ...). 5) Quit All output will be written to a file (must use file pointers). Requirements: You must use the input file in /home/csci112 called classes.txt to input the data. You must provide the options to the user on the screen as shown above in description. You must write all information asked for by the user to an output file. This means that you will need to interact with the user (asking for options) by printing to STDOUT but print all the responses to the queries to a file. To print class information, print in the following order: Title, Class number (ex: CSCI112), available for (freshman, soph...), day, time. You must loop on user queries until the user selects the quit option. You must exit with a failure if any error is found in user input. Place each function or group of functions in a separate file (.c) and have a Makefile that compiles all your code together to make the executable. A group of functions means that you might have all your print functions in one file, but you would not have the query function in the same file as the print functions.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago