Question: in C please 2. Warm-Up Activity = Group Code Writing: work in a group for this code-writing exercise to develop code for interacting with arrays

 in C please 2. Warm-Up Activity = Group Code Writing: work

in C please

2. Warm-Up Activity = Group Code Writing: work in a group for this code-writing exercise to develop code for interacting with arrays of two different data types, specifically characters and integers. As you work together in a group, notice the similarities between the arrays of different types. Focus on how you can reuse code segments even though the data type is different. a. Break-out into small groups of 3-4. b. Work on a Google Doc OR some other shared document. The shared document is essential so that you can collaborate and build off your groupmates' work. i. STAGE 1 - Initial Program (10 minutes): As a group, write a code that reads in a string (i.e. a char array) using scanf("%s", strName), loops through each of the characters in the string to find the maximum integer value (from the ASCII table) for all the chars, and prints out both the character and the integer of only the maximum-valued char. ii. STAGE 2 - Program Extension (10 minutes): make a copy of your code from STAGE 1 and, as a group, modify the code to now read in an arbitrary number of integers from the user, storing them in an array, terminating input when the user enters a zero (i.e. O). Then, loop through the array of ints and print out the maximum value

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!