Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is in zybooks so can you put the code as is in zybooks thank you. Write a program that will output how many numbers

It is in zybooks so can you put the code as is in zybooks thank you.image text in transcribed

Write a program that will output how many numbers are below a certain threshold (a number that acts as a 'cutoff" or a filter). Such functionality is common on sites like Amazon, where a user can filter results. It first prompts for an integer representing the threshold. Thereafter, it prompts for a number indicating the total number of integers that follow. Lastly, it reads that many integers from input. The program outputs total number of integers less than or equal to the threshold. Ex: If the input is: 100 5 50 60 140 200 75 the output is: 3 The 100 (first line) indicates that the program should find all integers less than or equal to 100. The 5 (second line) indicates the total number of integers that follow. The remaining lines contains the 5 integers. The output of 3 indicates that there are three integers, namely 50, 60, and 75 that are less than or equal to the threshold 100. 299578.1827332 LAB ACTIVITY 5.23.1: LAB: Output number of integers below a user defined amount 0/10 main.py Load default template... 1 2 "' Type your code here

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions