When I was a kid, I used to watch this TV game show, Deal or No Deal? in the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount. In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer. Instructions: 1. In the code editor, you are provided with an array with 100 elements. 2. Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Deal or No Deal?

Code in C language

Tests
Executions
main.c
< > + C
4. Deal or No Deal?
#include<stdio.h>
by CodeChum Admin
E Run Tests
When I was a kid, I used to watch this TV game show, Deal or No
Deal? In the game, there are different brief cases, each labeled
3 - int nain(void) {
int itens [100] = {
5
1,3,2,4,5,7,6,8,9,11,
100,13,0,14,16,17,3,18,20,10,
12,8,15,14,5,17,19,18,1,9,5,
10,13,11,14,16,22,0,18,20,3,
99,13,15,14,22,17,19,0,23,2,
12,13,15,22,16,17,56,18,44,99,
2,13,22,14,16,89,19,69,101,34,
12,22,15,14,78,17,69,18,2,33,
4,13,77,7,10,17,19,91,4,22,
12,98,15,14,15,17,19,18,7
Test Cases
with a number. Inside each brief case is an amount in Pesos and
6
the goal is to guess which briefcase contains the smallest amount.
7
O Test Case 1
In this program, instead of just finding the smallest amount, your
task is to ask the user for an integer input and print the values in
9.
10
Your Output
11
the array smaller than the inputted integer.
12
No Output
13
Instructions:
14
Expected Output
1. In the code editor, you are provided with an array with 100
15
};
16
elements.
17
// TODO: Write your code here
Enter value: 6
2. Your task is to ask the user for an integer input and then
18
print all the elements in the array whose value is lesser than
19
return 0;
the inputted integer.
20 }
Input
1. Inputted integer
Output
Enter value: 6
1
O Test Case 2
O Test Case 3 Hidden
Transcribed Image Text:Tests Executions main.c < > + C 4. Deal or No Deal? #include<stdio.h> by CodeChum Admin E Run Tests When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled 3 - int nain(void) { int itens [100] = { 5 1,3,2,4,5,7,6,8,9,11, 100,13,0,14,16,17,3,18,20,10, 12,8,15,14,5,17,19,18,1,9,5, 10,13,11,14,16,22,0,18,20,3, 99,13,15,14,22,17,19,0,23,2, 12,13,15,22,16,17,56,18,44,99, 2,13,22,14,16,89,19,69,101,34, 12,22,15,14,78,17,69,18,2,33, 4,13,77,7,10,17,19,91,4,22, 12,98,15,14,15,17,19,18,7 Test Cases with a number. Inside each brief case is an amount in Pesos and 6 the goal is to guess which briefcase contains the smallest amount. 7 O Test Case 1 In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in 9. 10 Your Output 11 the array smaller than the inputted integer. 12 No Output 13 Instructions: 14 Expected Output 1. In the code editor, you are provided with an array with 100 15 }; 16 elements. 17 // TODO: Write your code here Enter value: 6 2. Your task is to ask the user for an integer input and then 18 print all the elements in the array whose value is lesser than 19 return 0; the inputted integer. 20 } Input 1. Inputted integer Output Enter value: 6 1 O Test Case 2 O Test Case 3 Hidden
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education