Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 valueStep 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