Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

Have to Do: Support professional learning.

Answered: 1 week ago

Question

Have to Do: Stay the course while planning ahead.

Answered: 1 week ago