Question: help me to write a code! thank you:) CIS 25 Spring 2021 - Homework #2 - Page 1 of 5 Turn In: 1. Exercise #1

help me to write a code! thank you:)  help me to write a code! thank you:) CIS 25 Spring
2021 - Homework #2 - Page 1 of 5 Turn In: 1.
Exercise #1 - Due on Thursday, February 25, 2021 by 11:00pm Email
Submission a) For each exercise, a package must be generated to include
the following items: - Copy of your source file (C++ program)-your source

CIS 25 Spring 2021 - Homework #2 - Page 1 of 5 Turn In: 1. Exercise #1 - Due on Thursday, February 25, 2021 by 11:00pm Email Submission a) For each exercise, a package must be generated to include the following items: - Copy of your source file (C++ program)-your source file MUST BE NAMED as cis25Spring2021 Your NameHw2.cpp - Copy of output (copy and paste to the end of your program as PROGRAM_OUTPUT comment block) Copy of Logic_code_Output_Issues (as a separate comment block) after the "PROGRAM_OUTPUT" block. b) Emailing each package as follows, One email message for each exercise. The SUBJECT line of the message should have the following line: cis25 Spring2021 YourNameHw2.cpp Attaching the source file that was created in part a). 2. Q.E.D. *** CIS 25 Spring 2021 - Homework 12 - Page 2 of 5 1. Code Assignment/Exercise EXERCISE #1 Consider a function named as getSmallest IntegerWithSmallest TUDCYour Name(), (to be abbreviated as getSIWSmallestTDCYourName()),which will Receive an array of integers and its size as arguments, and Return the smallest integer that has the smallest total unique digit count (smallest TUDC) int ary1[3) - (1084, -2103451, 88645); int sizei - 3; // Explanatory Hint 1004 has 3 unique digits. -2103451 has 6 unique digits. 88645 has 5 unique digit. 1 So, the return value is 1984 int ary2[4] - -1, -22, 88, 66); int size2 = 4; // Explanatory Hint - // -1 has 1 unique digit. 1/ -22 has unique digits. 1 38 has 1 unique digits. 1 56 has 1 unique digits. 17 50, the return value is 22 Int aryats) (1, 3, 9, -7, 5); int size3 - 5; // Explanatory Hint - 1/ All values of 1, 3, 9, -3, and have a unique digit. 11 // So, the return value is -7. You are asked to (1) Write a menu program that will produce the required output shown below (2) Run a menu program named as cis25Spring2021 Your Namely2.cpp (and save the output at the end of this driver based on the explanation and instructions given in class discussions), A sample program output will have the following items and details: (1) The output screen should have the following lines displayed before any other display or input can be seen, CIS 25 - C++ Programming Laney College Your Name Information - Assignment: HW 12 Exercise 1 Implemented by: Your Name Submitted Date: 2021/02/25 Current Number of LEB available: ? Allowed Number of LEB Used: ? Remaining Number of LEB: ? CIS 25 Spring 2021 - Homework #2 - Page 3 of 5 (b) Then, the output screen should also be followed by more details will be filled in as discussed in class). MENU - Hw #2 1. Calling getsIwSmallestTUDCYour Name() 2. Quit Select an option (use integer value only): You are very funny here! MENU - HW #2 1. Calling getsInSmallestTUDCYour Name() 2. Quit Select an option (use integer value only): 1 What is the size of the array? 3 Value #1: 1004 Value #2: -2103451 Value #3: 88645 The working array has 3 values of 1884 -2103451 80645 Calling getSmallestIntegerwith smallestTuDcYour Name() with arguments of 1. The array of (1894, -2183451, 58645); and 2. The array size of 3 For individual values - 1004 has 3 unique digit(s). -2103451 has 6 unique digit(s). 88645 has 5 unique digit(s). After the function call was completed and a value was returned. (1) The smallest TUD is 3; and (2) 1894 is the smallest integer with smallest Tub of 1. MENU - Hw 32 1. Calling getsIwSmallestTUDCYour Name() 2. Quit Select an option (use integer value only): 1 What is the size of the array? 4 Value #1: - Value #2: -22 Value #3: 88 Value #4: 66 CIS 25 Spring 2021 - Homework #2 - Page 4 of 5 The working array has 4 values of -22 88 66 Calling getSmallestIntegerwithsmallestTUDCYour Name() with arguments of 1. The array of (-1, -22, 88, 66); and 2. The array size of 4 For individual values - -1 has 1 unique digit(s). -22 has 1 unique digit(s). 88 has 1 unique digit(s). 66 has 1 unique digit(s). After the function call was completed and a value was returned. (1) The smallest TUD is 1; and (2) -22 is the smallest integer with smallest TUD of 1. MENU - HW W2 1. Calling getSIWSmallestTUDCYour Name() 2. Quit Select an option (use integer value only): 1 What is the size of the array? 5 Value #1: 1 Value #2: -3 Value #3: 9 Value #4: -7 Value #5: 5 The working array has 5 values of 1 9 -7 Calling getSmallestIntegerWithSmallestTUDCYour Name() with arguments of 1. The array of {1, -3, 9, -7, 5); and 2. The array size of 5 For individual values - 1 has 1 unique digit(s). -3 has 1 unique digit(s). 9 has 1 unique digit(s). -7 has 1 unique digit(s). 5 has 1 unique digit(s). After the function call was completed and a value was returned. CIS 25 Spring 2021 - Homework #2 - Page 5 of 5 (1) The smallest TUD is 1; and (2) -7 is the smallest integer with smallest TUD of 1. MENU - Hw #2 1. Calling getSIWSmallestTODcYour Name() 2. Quit Select an option (use integer value only): 2 Having Fun!... Note! You are only allowed to use cout and cin from the iostream include header. You are not allowed to use any other classes or syntax structures that are not introduced in class and class meetings please confirm with the instructor if you have any doubt! . You must create all classes, struct's, and functions on your own for usage in all of required class works. The values of the elements from the created array MUST NOT be changed/modified at all during the analysis steps and process unless they are required to be updated or changed based on the specified tasks. . All struct, class, and type names must have the initials of your first and last names at the end. All variable names must have the initials of your first and last names at the end. All function names must have your complete firstname and initial of your lastname at the end. All filenames must have your complete firstname and initial of your lastname as required. At least, your program MUST have and use the following functions, displayclass InfoYour Name() getSIWSmallestTODCYour Name() where Your Name must be replaced by your first name and your last name as mentioned. The sample run will have the options selected and values entered by the user. And, at least, you must run your program to produce the output as shown above. (4) Save the program as cis25Spring2021 Your NameHw2.cpp; and (5) The above output should be copied and added to the end of the code in the "PROGRAM OUTPUT"comment block. (6) Remember to provide the Logic_code_Output_Issues (as a separate comment block) after the PROGRAM OUTPUT comment block

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!