In Bearbeitung

Project for raheelwaqar3 -- 4

Step #1

-------

Write a main() function that asks the user to enter five integers less than or equal to 20.

Store the numbers in a list.

Write code that error checks the numbers entered by the user, such that if a number entered is greater than 20,

print("Error: You must enter a number less than or equal to 20").

You will need a while loop for this.

Step #2

-------

Write a function called histogram() that takes a list of integers and prints

a histogram to the screen. For example:

histogram([4, 6, 3, 10, 12]) should print the following:

****

******

***

**********

************

Step #3

-------

Pass the list you created in step #1 to histogram() and print the five numbers in the histogram format.

Fähigkeiten: Datenbankentwicklung, J2EE, Projektmanagement, Software-Entwicklung, UML-Design

Mehr sehen: project java screen sharing, project iphone screen training, project iphone screen app, asp project touch screen, project iphone screen, iphone project everything screen, project sms screen, design project touch screen, project picture screen

Über den Arbeitgeber:
( 27 Bewertungen ) Austin, United States

Projekt-ID: #11815802

Vergeben an:

raheelwaqar3

Hired by the Employer

$15 USD in 1 Tag
(10 Bewertungen)
2.9