Given the structures defined below:
struct dataType{
int integer;
float decimal;
char ch;
};
struct nodeType{
dataType e;
nodeType* next;
};
Assume the data structures shown above, write a driver function
called buildEvenSLL that takes
two nodeType pointer references, ori and evenSLL. The
driver function should build the evenSLL linked list with only
values from the linked list referenced by ori whose integer value
is even. (15pts)
/*PASTE CODE HERE*/
Define a class called FractionType to represent
numerator and denominator of a fraction. The class should have
mutator, accessor, and default constructor functions. Also, include
the member function definitions listed
below: (40pts)
A public member function called print that takes no
parameters. The member function must print data values in the form
of a fraction.
A public member function called validate with no
parameters. The member function check if the denominator is not a
zero. The member function should return true if the
denominator is a zero, otherwise, it should
return false.
/*PASTE CODE HERE -- The content of the implementation file
only*/
Given the structures defined below: struct dataType{ int integer; float decimal; char ch; }; struct nodeT
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am