Question: CSC455: Software Quality Assurance Fall 2022, Assignment #2 Date Assigned: Thursday, September 15, 2022 Due Date: Monday, September 26, 2022 at 11:59 pm on blackboard

 CSC455: Software Quality Assurance Fall 2022, Assignment #2 Date Assigned: Thursday,September 15, 2022 Due Date: Monday, September 26, 2022 at 11:59 pmon blackboard (total: 120 points) Learning objectives: . Perform input validation, boundary

CSC455: Software Quality Assurance Fall 2022, Assignment #2 Date Assigned: Thursday, September 15, 2022 Due Date: Monday, September 26, 2022 at 11:59 pm on blackboard (total: 120 points) Learning objectives: . Perform input validation, boundary checking. . Create and use log files. . Identify input domain. . Review code, check for problems. Problem 1 (100 points) . Write a C+ + program to perform input validation on following user specifications: 1. The code should ask the user to enter the student's M-number. This number must satisfy the following constraints: (a) Must start with M followed by 10 digits. (b) Should contain at least 5 different digits. (c) Should not contain sequences of length 3 of the same digit (such as 000, 333, 777, ...) 2. After the user enters the M-number, the code should ask the user to enter the following student information: (a) First name. Must satisfy: i. Must be a string no longer than 15 characters. ii. Does not contain any numbers (0,1, ...) or other special characters (?, , #, ..). (b) Last name. Must satisfy i. Must be a string no longer than 15 characters. ii. Does not contain any numbers (0,1, ...) or other special characters (?, 2, #, ...).(D) Last i. Must be a string no longer than 15 characters. ii. Does not contain any numbers (0,1, ...) or other special characters (?, , #, ...). (c) Age. Must satisfy: i. A positive number ii. Must be in the range [15 - 130] 1 (d) GPA. Must satisfy: i. A float number ii. Must be in the range [0 - 4] 3. The program should output the information entered by the user. . All the user inputs (valid or invalid) should be logged in a file named "input log.txt" with the following format M-number inputs: M1455? m : 1457624wrc First name inputs : John 123 Bill$ Last name inputs : Hello124 Bye78? Age inputs : 2 1247 qwe GPA inputs : -2.3 qw 124 4.5. What is the input domain for each user input? (answer this question as a comment next the input validation code segment) Problem 2 (20 points) Consider the following programs: 2 #include using namespace std; #include using namespace std; int main () int main () short testv = 32767; float testv; cout

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 Programming Questions!