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.

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
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.
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