#I know its a C++ server but I have a Culminating assingment in C that I need help for.
51 messages ยท Page 1 of 1 (latest)
In a bit I will upload the instructions of the C programming Culiminating Assignment.
Here's the PDF file for it. This assignment is broken into 3 milestones. This is the 1st milestone that the professor has released. (milestones means parts its divided into).
Here's the pictures of the PDF instructions. ^^^^In case the pictures are not readable that you can access the pdf too.
behind the slash here's the course notes link: https://intro2c.sdds.ca/D-Modularity/input-functions#clearing-the-buffer
Now that's all for the instructions.
This is the expected output I will upload here that I need to produce by coding in C. I have to submit my code through the matrix submitter software which is gonna be a headache later lol.
i'm having difficulties creating a core.h and core.c file since these two files aren't provided with starter code by professor.
However professor has given us starter code for a1ms1.c file
What exactly is your question regarding to the core.h and core.c file? Where exactly do you need help with?
core.h and core.c file instructions I'm entirely clueless on.
I don't want to use ChatGPT for this cuz I can't afford to get in trouble by the professor and fail the course.
@supple plover Try it yourself and then send the core.c and core.h and let us know where we can exactly help
Also, im not sure if we should help you with a assignment thats worth 20% of your final grade
Please try it youself and if you face problems then we can help ๐
It seems that your professor is just asking you to write function prototypes based on the instructions in the core.h file and then to define each of those function based on the instructions in the core.c file which will all be used in a1ms1.c
which should give that sample output
if im reading it correctly
I don't know what to write for core.c and core.h
I need help every step of the way ๐ฆ
Why not?
he gave you a sample prototype and definition clearInputBuffer and suspend. You just do that based on the instructions for the other functions he wants you to add as a prototype and define for core.c and core.h
Because you haven't tried to do the assignment yet.
so for core.h
like this
#define CORE_H
// Function prototypes
void clearInputBuffer(void);
void suspend(void);
int inputInt(void);
int inputIntPositive(void);
int inputIntRange(int lowerBound, int upperBound);
char inputCharOption(const char* validChars);
void inputCString(char* str, int minLength, int maxLength);
void displayFormattedPhone(const char* phoneNumber);
#endif // CORE_H
is this right or no?
something like that
ok so what do need to exactly do?
just make sure all the function prototypes follow the instructions then write the function definitions
then run a1ms1
Yeah I understand that basic part. Is there anything specific that I should add or change in core.h (header file).
dont think so
Oh ok. Now what do I do for core.c file. I'm really lost
#include the core.h and write the function definitions in the core.c
its completely fine and ethical to ask chatgpt for advice and use it as inspiration
Also do I need to add lines of code in a1ms1.c file or just leave it as it is?
no dont change the file
your professor wrote this
// +---------------------------------------------------------+
// | *** The contents of this file is NOT to be modified *** |
// +---------------------------------------------------------+
//
// HOWEVER....
//
// In the development of your solution, you can...
// -----------------------------------------------
// - Comment the lines of code which call a function you have not yet developed
// (See each tester function definition to see where you can do this)
// - Uncomment the lines of code previously commented to return the file to its
// original state so you may fully test your solution.
//
// ############################################################################
Oh ok.