Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions