What causes Ocean Pollution?
Discuss the causes of ocean pollution and how to mitigate as well as the new technologies in place.
Introduction to Security recent information security attacks. Research two recent information security attacks.
Research two of the types of attackers covered in this chapter.
For this task, search the supply or equipment closet in your school or workplace, and choose an obsolete technology that was emerging or emerged when your organization bought it (e.g., filmstrip projector, record player, etc.).
Then, write an essay that explains why the outgoing technology has become obsolete.
Create a class named Cell Phone which will represent the code to manage a cell phone’s operating system.
Split your declaration and definition into a header (.h) file and an implementation file (.cpp). (5)
The private member variables needed are:
• An array of structs of the type Contact (you must create this struct yourself) named contacts.
Each struct should be able to store a contact’s First Name, Last Name, home contact number and mobile contact number.
Your class should be able to store a maximum of 200 contacts. (14)
• A variable of type string named display that will contain the text that the cell phone’s display will show at any time. (3)
• A variable of type bool named on that indicates whether the cell phone is turned on or not.(3)
• A variable of type string named current-call that contains the contact number of a currently active call. (3)
• A variable of type bool named call-active that indicates whether a call is currently active or not. (3)
• A function named contact-count that returns the number of contacts currently stored in the contacts array. (7)
• A function named show-output that outputs the content of the display variable to the screen.(4)
• A constructor function that sets the class variable on to true, and sets display to the message“Welcome to the CIS3100 Operating System. Your virtual cell phone is now on.” (5)
• A function named new-contact that accepts a new contact’s First Name, Last Name, home contact number and mobile contact number as parameters and stores the new contact in the contacts array.
This function should first check to see if there is any room to store new contacts and return false if there is not. (10)
• A function named dial-contact that accepts an existing contact’s First Name & Last Name, searches the contacts array for this contact, asks the user whether they’d like to dial the home contact number or the mobile contact number, then stores the user choice in the current-call variable.
The contact number chosen should also be stored in the display variable. (14)
• A function named display-contact Number-information that accepts an existing contact’s home contact number or their mobile contact number as a parameter and retrieves the contact
from the contacts array.
First Name: Contact’s First Name
Last Name: Contact’s Last Name
*Replace the above content in bold with the respective text from the contact* (15)
• A function named power-down that sets the cell phone’s status to oﬀ and sets the display variable to “This device has been powered oﬀ” (5)
Please note that in the class above, anytime the display variable changes, the function show-output should be invoked/called in order to show the new content on the screen. (5)
30 Points (Allocation of points is shown in brackets below)
In a main.cpp file, make use of the class you create in Part 1 by including the class header file.
1. Display a welcome message to the user – “Hello User. Would you like to turn on this cell phone?”
If the user says yes, initiate your Cell Phone class, and proceed to step 2. If the user says no, end the program with “Thank you. Please restart the program when you wish to use the device”. (5)
2. Display a menu to the user with the following options: A. Turn oﬀ Cell Phone
B. Add A New Contact C. Display Contact Information
D. Dial Contact
A – Turn oﬀ the cell phone using the power-down function of the Cell Phone class B – Accept a new contact by requesting the proper information from the user and invoking the new-contact function
C – Display the information for an existing contact by requesting the number from the user and invoking the display-contact Number-information function.
D – Dial a contact by accepting the contact First Name and Last Name from the user and invoking the dial-contact function.
The menu should be recurring on screen until the user chooses to turn oﬀ the cell phone, in which case the program ends. (15)
CODE ORGANIZATION – 10
Consider carefully how you structure/organize this part of the program’s code.