Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need this part done, it is part of a bigger project due at the end. It is open book, if someone could please complete as

Need this part done, it is part of a bigger project due at the end. It is open book, if someone could please complete as said, will give thumgs up! Thanks

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Lab 10 In lab 10, we are going to be combining structs and arrays. Remember, structs allow us to combine things that are related. An array, needs to know 3 (or 4) things and so they are related. It makes sense that we can use a struct to organize the information related to an array. Details For this lab, you'll be making a struct in your header file that will hold the parts of the array we need to remember. For example, the count of the number of elements in the array and the array itself. We can't put the size of the array in the struct because it is constant. So make that a constant and put it outside of your struct. We'll probably come back to this same idea later when we get to pointers and then we can move the size back in to the struct, but for now, it's good to put the constant outside of the struct. Then you will have two commands to deal with: . file - this will be followed by a filename. The contents of the file that is named is the data to store in the array. The data will be a series of words to be stored sequentially in the array that is in the struct. show - this will be followed by a number. The number represents which index from the array I want shown. Just like with all arrays, we have to make sure the index I'm asking for is valid. If the number is valid, then show the data, otherwise you'll say that it is a bad ocation

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Understand what is meant by Big Data, and it implications for HRM.

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago