Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a C++ program. PART KEY COMBINATION You often have to enter a secret code or password to gain entrance to a restricted area
This is a C++ program.
PART KEY COMBINATION You often have to enter a secret code or password to gain entrance to a restricted area or to gain access to a computer network. In many cases the password consists of a sequence of alphanumeric characters that must be entered in a specified order. In this exercise you create a program that "opens the door" to a restricted area when the user enters the correct two-character sequence. Step 1: Create a program that reads in characters until the user enters the correct two-character sequence (cs) to open the door Step 2: Step 3: Save your program as open aoor.cpp Test your program using the following test plan. If you discover mistakes in your program, correct them, and execute the test plan again Test Plan for opendoor Expected result Door opens Door opens Door opens Door closes Checked Test Case Legal entrance Hacker Sample data CS imacsmajor Two c's followed by ccs an S Not a valid sequence ab PART B HOT ENOUGH FOR YA? People who are originally from cities such as New York and St. Louis and who have moved to states such as Arizona and New Mexico often say that despite higher temperatures in these southwestern states, they experience less discomfort than they did in their place of origin. This discomfort is due in large part to the high rate of relative humidity in such cities as New York and St. Louis during the summer. A method for measuring the discomfort caused by humidity is the temperature-humidity index (THI) The formula for computing the THI isStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started