Highlights
Instructions:
• Assignment must be completed and turned in by the due date given in canvas.
• Upload your DOCUMENTED C program with a .c extension to Canvas. You do not need to provide the compiled binary.
• You CANNOT use the built-in C library functions to complete the assignment (atoi or itoa), or any of the math.h functions. This program can be completed without them.
Problem:
1) Write a function in C that converts an integer (type int) to its string equivalent (type char[ ]).
char * my_itoa(int x, char[] out){
... } Input: 1567 Output “1567” (i.e. {‘1’, ‘5’, ‘6’, ‘7’, ‘\0’})
2) Write a function in C that converts a string representation of an integer to a true integer.
Int my_atoi(char * str){
...
} Input: “1567” (i.e. {‘1’, ‘5’, ‘6’, ‘7’, ‘\0’}) Output: 1567
Note: ‘\0 is the null terminator special character, a character with the value 0 in the ASCII character set, and is necessary to be placed at the end of a character array in order for printf to read it correctly.
Other requirements: Independent Completion Form must be turned in alongside all other assignment components.
RUBRIC:
• 20% for a working itoa function
• 20% for a working atoi function
• 10% for printing the results for the user to see
• 50% for documentation in comments
o 25% for amount of code commented (needs to be most)
o 15% for comment quality (don’t be redundant or overly wordy)
o 10% for comment correctness (tell the truth about your code!)
• Up to a 10% bonus is available for correctly converting negative numbers in both functions; 5% each.
• Note that you can also lose points (10% each) for hard coding the behavior of your functions with respect to your input, as well as any other notable faults not listed here. Make sure to test your code!
• Finally, your code must compile in order to receive credit. Any compilation errors result in an automatic zero, including submitting your program without a .c extension.
This IT/Computer Science Assignment has been solved by our IT/Computer Science Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.