Create a program which does the following: 1. Asks the user for 5 numbers and stores them in an array. 2. Prints out the numbers entered. 3. Stores the index numbers where the user input values are greater than than 100.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 16PE
icon
Related questions
Question
Please help
Assignment:
Create a program which does the following:
1. Asks the user for 5 numbers and stores them in an array.
2. Prints out the numbers entered.
3. Stores the index numbers where the user input values
are greater than than 100.
Cree un programa que haga lo siguiente:
1. Imprime los números ingresados.
2. Imprime los números ingresados.
3. Almacena los números de índice donde los valores de entrada
del usuario son mayores que 100.
An example of possible output is shown below:
Output
[201, 100, 155, 90, 65]
The index numbers having values >100 are:
0. 2
Transcribed Image Text:Assignment: Create a program which does the following: 1. Asks the user for 5 numbers and stores them in an array. 2. Prints out the numbers entered. 3. Stores the index numbers where the user input values are greater than than 100. Cree un programa que haga lo siguiente: 1. Imprime los números ingresados. 2. Imprime los números ingresados. 3. Almacena los números de índice donde los valores de entrada del usuario son mayores que 100. An example of possible output is shown below: Output [201, 100, 155, 90, 65] The index numbers having values >100 are: 0. 2
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
LAB ASSIGNMENTS
IMPORTANT: you should complete the PDP thinking process for each program. Turn in items:
1) fullname_regex.py - Ask the user to enter the source text to search, such as the name_source variable here:
name_source = input('Enter full name in this format - first middle last').
Then, you can adapt the first two code lines from lesson slide 13, to search this new source. Edit the code to match
the new situation and change the regex pattern to identify text that could be a full name.
Hints: Initially write your regex pattern to check if the user enters three words separated by a space. Then, strive to
make the regex adaptable if the person's full name has more than or less than 3 words. Then, think about allowing
(not requiring) common characters like a period, hyphen or '. Slides 11-13 should be helpful.
08
For printing, end with a conditional block that provides an appropriate message if there is a match or not.
Match
Enter your full name: first middle last Betty Lou Who
Here is the name:
Betty Lou Who
No Match
Enter your full name: first middle last 867-5309
This doesn't look like a name.
Challenge 1
Enter your full name - first middle last d'Angelo Smith-Brown
Here is the name: d'Angelo Smith-Brown
Transcribed Image Text:LAB ASSIGNMENTS IMPORTANT: you should complete the PDP thinking process for each program. Turn in items: 1) fullname_regex.py - Ask the user to enter the source text to search, such as the name_source variable here: name_source = input('Enter full name in this format - first middle last'). Then, you can adapt the first two code lines from lesson slide 13, to search this new source. Edit the code to match the new situation and change the regex pattern to identify text that could be a full name. Hints: Initially write your regex pattern to check if the user enters three words separated by a space. Then, strive to make the regex adaptable if the person's full name has more than or less than 3 words. Then, think about allowing (not requiring) common characters like a period, hyphen or '. Slides 11-13 should be helpful. 08 For printing, end with a conditional block that provides an appropriate message if there is a match or not. Match Enter your full name: first middle last Betty Lou Who Here is the name: Betty Lou Who No Match Enter your full name: first middle last 867-5309 This doesn't look like a name. Challenge 1 Enter your full name - first middle last d'Angelo Smith-Brown Here is the name: d'Angelo Smith-Brown
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Hyperlinks
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning