Write a C program that runs on ocelot for a tuition calculator using only the command line options. You must use getopt

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C program that runs on ocelot for a tuition calculator using only the command line options. You must use getopt

Post by answerhappygod »

Write a C program that runs on ocelot for a tuition calculator
using only the command line options. You must use getopt to parse
the command line.
The calculator will do a base tuition for enrollment and then
will add on fees for the number of courses, for the book pack if
purchased for parking fees, and for out of state tuition.
Usage: tuition [-bs] [-c cnum] [-p pnum] base
Create a simple Makefile to compile your program into an
executable called tuition.
Test your program with the following command lines and take a
screenshot after running the lines. The command prompt should be
viewable.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply