Question: Create a Folder on your saving location called Unit8_YourLastName Background - Modify a structure variable inside a functionCreate a car structure to include the following

Create a Folder on your saving location called Unit8_YourLastName

Background - Modify a structure variable inside a functionCreate a car structure to include the following entities:

Make - String

Model - String

Year - int

Color String

Initialize a car structure but do not include the color.

Write a method that will update the color to GREEN if the year is after 2010 or RED if 2010 or earlier.

Task 1 - Write a pseudocode description and a flowchart for the task in line 2.

Task 1 Write Program 1 : Write a program that will do the task defined in your pseudocode. Code 3 different structure variables and pass then individually to your update method and display the contents after the update method is called. Pass the structure using a pointer. The function should return void.

Task 2 Write Program 2 : Review the syntax on using the "new" keyword for memory allocation as it realtes to struct. Using program1 as a guide, develop a 2nd method that does the same as the original method. This time, protect the original cars and return a new car structure. Call the new method and display both the original structure and the structure with the updates.

4. Using zip software, Zip the Entire Unit8_YourLastName folder naming the resulting file Unit8_YourLastName.zip

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!