2. Spell-it-out! by CodeChum Admin 1 Fincludecstdio. G Run Tests 3- int main){ Are you intimidated with complicated words? Don't bel The trick is to char array (100] -"supercalifragilisticexpialidocious"; break it down letter by lettert Test Cases return e; Let's create a program that prints out the character in the array index indicated by the input integer. For example, if the array has 3 character elements, 'j', 'r', and 'd', and the inputted integer value is 1, then we print "r' because r is found at index 1. O Test Case 1 Your Output Instructions: No Output 1. In the code editor, you are provided with an array of characters (or a string). 2. Your task is to ask the user for an integer input which represents the index and then print out the character of the string found at Expected Output Enter the index: 4 that index Input O Test Case 2 1. Index of the array

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Modularization Techniques
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

Spell-it-out!

Code in C language

Tests
Executions
main.c
2. Spell-it-out!
1 #include<stdio.h>
by CodeChum Admin
E Run Tests
3
int main() {
char array[100] ="supercalifragilisticexpialidocious";
Are you intimidated with complicated words? Don't be! The trick is to
break it down letter by letter!
6
Test Cases
7
return 0;
Let's create a program that prints out the character in the array index
indicated by the input integer. For example, if the array has 3
character elements, 'j', 'r', and 'd', and the inputted integer value
is 1, then we print 'r' because 'r' is found at index 1.
8 }
O Test Case 1
Your Output
No Output
Instructions:
1. In the code editor, you are provided with an array of characters
(or a string).
Expected Output
2. Your task is to ask the user for an integer input which represents
Enter the index: 4
the index and then print out the character of the string found at
r
that index.
Input
O Test Case 2
1. Index of the array
Output
O Test Case 3
Enter the index: 4
O Test Case 4 Hidden
r
O Test Case 5 Hidden
O Test Case 6 Hidden
Transcribed Image Text:Tests Executions main.c 2. Spell-it-out! 1 #include<stdio.h> by CodeChum Admin E Run Tests 3 int main() { char array[100] ="supercalifragilisticexpialidocious"; Are you intimidated with complicated words? Don't be! The trick is to break it down letter by letter! 6 Test Cases 7 return 0; Let's create a program that prints out the character in the array index indicated by the input integer. For example, if the array has 3 character elements, 'j', 'r', and 'd', and the inputted integer value is 1, then we print 'r' because 'r' is found at index 1. 8 } O Test Case 1 Your Output No Output Instructions: 1. In the code editor, you are provided with an array of characters (or a string). Expected Output 2. Your task is to ask the user for an integer input which represents Enter the index: 4 the index and then print out the character of the string found at r that index. Input O Test Case 2 1. Index of the array Output O Test Case 3 Enter the index: 4 O Test Case 4 Hidden r O Test Case 5 Hidden O Test Case 6 Hidden
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Passing Array as Argument
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage