Let’s make a program that calculates the age of your car!
We should ask the user to input the Make, Model, and the Year their car was made.
Our program should create a Car object and then calculate how old that car is by subtracting the year the car was made from the current year. (Example: 2021 - 2001 = 20 years old)
Coding Instructions:
Create a class called Car.
This class should have 3 member variables:
The class should have a function that returns the age of the car by subtracting the member variable "year" from the current year (2021).
The class should have a constructor that takes 3 parameters: make, model, year.
Example Output:
“Welcome to Historic Car Calculator”
“Please enter the make of your car.”
>>Honda
“Please enter the model of your car.”
>>Civic
“Please enter the year your car was made.”
>>1995
“Your Honda Civic is 26 years old”
Create a linked list, size of linked list will be dependent on the user. Insert the numbers in the linked list till the linked list reaches the size. Create a menu and perform the following function on that linked list.
• Traversal: To traverse all the nodes one after another.
• Insertion: To add a node at the given position.
• Deletion: To delete a node.
• Searching: To search an element(s) by value.
• Updating: To update a node
Write a program Given three arrays A[n], B[n] & C[n] containing bit strings representing sets A, B & C respectively, write a code fragment to determine whether (𝐴 ∩ 𝐵) ⊂ 𝐶.
Write a program Given two arrays A[n] & B[n] containing bit strings representing sets A & B respectively, write a code fragment to construct bit string representing the set 𝐴 − 𝐵.
Write a program Given two arrays A[n] & B[n] containing bit strings representing sets A & B respectively, write a code fragment to construct bit string representing the set
𝐴 − 𝐵̅.
Write a program that takes four assignment scores, name of the student, and course from the keyboard; store them, and print.
Show the most recent five orders that were purchased from account numbers that have spent more than $70,000 with AdventureWorks.
Write a program to display the result of
game competition based on the following
information:
Master Novice
Score >= 90 Gold -
Score >= 80 Silver -
Score >= 70 Silver Pass
Score < 70 No Medal Fail
Elaborate at least five (5) real life applications with examples for each in form of source codes, the importance and usage of data structures