Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Weekly Task 1 CSC 102(8009) due by midnight of 4th February 2021 At Submit Assignment Due Thursday by 11:59pm Points 0 Submitting a file upload
Weekly Task 1 CSC 102(8009) due by midnight of 4th February 2021 At Submit Assignment Due Thursday by 11:59pm Points 0 Submitting a file upload Weekly task 1 CSC 102(8009) due by midnight of 4th February 2021 Write C++ code and .doc file for explanation as required and submit both .cpp and .doc files. 1. Create a datatype of 3 students using struct, having student name as char name[20], id as char id[10] , three integer test scores and double average test score. Find the total bytes of data allocation in the memory. Show by code each of the memory allocation is contiguous. 2. Create a point struct datatype of x and y coordinates and print the assigned point. Use functions of both value and reference struct object formal parameter. Discuss the efficiency of using value and reference type of a struct object. 3. You are asked to design and implement one or more structs to represent a college that has several students where each student can take several courses. You need to access and process information about each student and each course a particular student has taken. Describe the structs you would use and what type of data members you would choose for each struct. Type here to search o 1 . 10:16 PM 2/2/2021 Weekly Task 1 CSC 102(8009) due by midnight of 4th February 2021 At Submit Assignment Due Thursday by 11:59pm Points 0 Submitting a file upload Weekly task 1 CSC 102(8009) due by midnight of 4th February 2021 Write C++ code and .doc file for explanation as required and submit both .cpp and .doc files. 1. Create a datatype of 3 students using struct, having student name as char name[20], id as char id[10] , three integer test scores and double average test score. Find the total bytes of data allocation in the memory. Show by code each of the memory allocation is contiguous. 2. Create a point struct datatype of x and y coordinates and print the assigned point. Use functions of both value and reference struct object formal parameter. Discuss the efficiency of using value and reference type of a struct object. 3. You are asked to design and implement one or more structs to represent a college that has several students where each student can take several courses. You need to access and process information about each student and each course a particular student has taken. Describe the structs you would use and what type of data members you would choose for each struct. Type here to search o 1 . 10:16 PM 2/2/2021
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