Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 1 Due Thursday, February 2 9 , 2 0 2 4 by 1 1 : 0 0 pm as Email ( 1 ) Write
Exercise Due Thursday, February by :pm as Email
Write a C program with call to functions to produce the output given below.
The program should first display the output to screen from function calls as
We write code to manipulate data which are
provided by the user to produce the required
outcome in the most efficient way!
CIS Data Structures and Algorithms
Laney College
Your Name
Information
Assignment: HW # Exercise #
Implemented by: Your Name
Required Submission Date:
Actual Submission Date:
Where Your Name means Firstname Lastname; no abbreviation!
For examples, if your name is First Last then Your Name should be First Last
throughout all of your workcode as mentioned.
The program will have the setup as follows,
A struct FractionYourName is defined as below.
Program Name: fractionYourName.h
Discussion: Specification File
struct Fraction & Relevance
Written By: Your Name
Date:
#define CRTSECURENOWARNINGS
#ifndef FRACTIONYOURNAMEH
#define FRACTIONYOURNAMEH
Headerinclude File
#include
#include
struct FractionFirstLast
int num;
int denom;
;
CIS Spring Homework # Page of
typedef
typedef struct FractionFirstLast TdFractionFL;
typedef TdFractionFL TdFractionPtrFL;
typedef TdFractionFL TdFractionAddrFL;
Function Prototypes
TdFractionAddr createFractionFLvoid;
int removeFractionFLTdFractionAddr;
void printFractionconst TdFractionAddrFL;
#endif
B The set of functions to support your struct FractionYOURNAME is given in the header
file below.
Program Name: fractionUtilityYourName.h
Discussion: Specification File
Support Functions for Fraction
Written By: Your Name
Date:
#ifndef FRACTIONUTILITYYOURNAMEH
#define FRACTIONUTILITYYOURNAMEH
Headerinclude File
#include
#include
#include fractionYourNameh
Function Prototypes
int gcdFLint int;
#endif
CThe set of functions to support HW # is given in the header file below.
Program Name: cisSpringYourNameHwUtility.h
Discussion: Specification File
Support Functions for HW #
Written By: Your Name
Date:
#ifndef CISSPRINGYOURNAMEHWUTILITYH
#define CISSPRINGYOURNAMEHWUTILITYH
Headerinclude File
#include
#include
#include "fractionYourName.h
#include "fractionUtilityYourName.h
CIS Spring Homework # Page of
Function Prototypes
void displayCodingStatementFLvoid;
void displayClassInfoFLvoid;
void runMenuHwFLvoid;
void displayFractionInfoFLTdFractionPtrFL;
void initFractionSubmenuTdFractionPtrFL;
#endif
DThe program will then continue to call other functions and display the results as follows,
OUTPUT Sample Run
We write code to manipulate data which are
provided by the user to produce the required
outcome in the most efficient way!
CIS Data Structures and Algorithms
Laney College
Your Name
Information
Assignment: HW # Exercise #
Implemented by: Your Name
Required Submission Date:
Actual Submission Date:
MENU HW #
Creating Fractions
Calling displayFractionInfoFL
Displaying Fractions
Quit
Enter an integer for option ENTER:
Wrong Option!
MENU HW #
Creating Fractions
Calling displayFractionInfoFL
Displaying Fractions
Quit
Enter an integer for option ENTER:
Calling displayFractionInfoFL
No Fractions
MENU HW #
Creating Fractions
Calling displayFractionInfoFL
Displaying Fractions CIS Spring Homework # Page of
Function Prototypes
void displayCodingStatementFLvoid;
void displayClassInfoFLvoid;
void runMenuHwFLvoid;
void displayFractionInfoFLTdFractionPtrFL;
void initFractionSubmenuTdFractionPtrFL;
#endif
DThe program will then continue to call other functions and display the results as follows,
OUTPUT Sample Run
We write code to manipulate data which are
provided by the user to produce the required
outcome in the most efficient way!
CIS Data Structures and Algorithms
Laney College
Your Name
Information
Assignment: HW # Exercise #
Implemented by: Your Name
Required Submission Date:
Actual Submission Date:
MENU HW #
Creating Fractions
Calling displayFractionInfoFL
Displaying Fractions
Quit
Enter an integer for option ENTER:
Wrong Option!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started