Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Task 1: Struct Make a gradeData struct with the following information stored inside it: 1

Task 1: Struct Make a gradeData struct with the following information stored inside it: 1

Computer Science

Task 1: Struct

Make a gradeData struct with the following information stored inside it: 1. a static array of 20 integers in it (for example: int a_nums[20]), 2. the number of values stored (since we won't have 20+ numbers on a line) 3. The grade type. This can be a constant c-string (const char*) like "Assignments or you can try to make an enumerated data type if you are feeling brave. Type can also be another static char array if you want. Make sure you test your code. For example, you could make several gradeData structs, use stropy to set the topic and write all some random grades to the array. When you implement task 2 later, you can use that code to test your work further. Never code everything and then test. Personally, I would write a function that prints the contents of a gradeData struct to the screen. That way I can keep using that to debug my code. That wouldn't be graded but it would save you time later.

 

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE