Question: I need to modify this program per these instructions (the instructions are at the bottom of the code). I need it to work in Microsoft

I need to modify this program per these instructions (the instructions are at the bottom of the code). I need it to work in Microsoft Visual Studio 2017 (not another year) under Project-->Visual C++--> "Windows Console Application" if possible.

Here is my original program:

/*This program teaches the user about traffic lights and what they mean. This program makes the user register an account and login before viewing the selections. Once the user has registered and logged in, the user may learn about green lights, yellow lights, or redlights, or the user may logout. */ #include #include #include #include #include using namespace std; //global variables string FIRST_NAME; string LAST_NAME; string USER_NAME = "17357394739399"; string PASSWORD = "17495739374928"; //function prototypes void greenLight(); void loginUser(); void logoutUser(); void menuSelection(); void registerUser(); void redLight(); void welcomeScreen(); void yellowLight(); int main() { const int ONE = 1, TWO = 2; int selection; welcomeScreen(); cout > selection; cin.ignore(); switch (selection) { case ONE: registerUser(); case TWO: loginUser(); } return 0; } void greenLight() { cout > selectionMenu; switch (selectionMenu) { case ONE: greenLight(); case TWO: yellowLight(); case THREE: redLight(); case FOUR: logoutUser(); } } void registerUser() { cout = 6) { cout

Instructions:

I need to modify this program per these instructions (the instructions are

Overall: You may include any of the subject matter learned from Chapters 1-8, 10 and 12 which OMITS Chapter 9 Pointers and Chapter 11. Also Structures should not be used with Files. You are not to use pointers in your MPA. ANYTHING OUT OF SCOPE and will count off your grade 1/2 (.5) point each occurrence 1. Password functionality update Ask the user if they are a new user and if so create a new password which is written to a password file defined as input/output via a separate function. (page 697 ios: :in I ios::out) The password fle should compare what the user has entered against what is recorded in the password file. default in the code) (There should not be a hardcoded If the user has exceeded 3 attempts, ask the user if they would like to reset their password by calling a function to reset. If the user would like to change their password, ask the user for their present password then read the password file to compare what the user has entered with the password stored in the file. If the passwords match, allow the user to change their password then update the new password in the password file. Write a function that returns a boolean as to whether the password created or reset meets the below criteria and accepts the password as arn argument. one UpperCase letter o one lowerCase letter o one digit from 0 to 9 o one special character or punctuation character password must be at least 10 characters long Count the number of characters in the string for password and return that number. 2. Use Advanced File operations except for Structures o password file for input and output. (See Number 1) Use member functions for reading and writing to the password file plus include error handling messages. (Number 1) Declare data types of variables (DO NOT USE AUTO)

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!