ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 10 Weeks Ago, 5 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 27 Apr 2017 My Price 8.00

Write a Python program that reads and processes sets of data

Write a Python program that reads and processes sets of data until a sentinel value of a negative number. The first number in a set is a room number, the second is the room's capacity, and the third is the size of the class scheduled to meet in that room. For each triplet set, print an output line showing the classroom number, capacity, number of seats filled, number of seats available, and a message ("FULL" or "OPEN") indicating whether the classroom is filled or not. These must be printed in columns formatted as shown in the sample output below. (You must also print a heading over the columns; again, refer to the sample output for the format.) After all classrooms have been processed, a summary is to be printed. The form and content of the summary are explained in the sample output section.

 

 

SAMPLE OUTPUT: [fyour input file contained the following data [just the numbers]: “E
EEE your program must produce the following output (spaced, labeled, punctuated, and formatted exactly as shown]: Room Capacity Size Empty Seats Status 426 25 25 [I FULL 32? IS 14 4 OPEN 420 20 15 5 OPEN 31? IUD 9D If! OPEN
*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*
Rooms: 4 Overall Capacity: 1153 Total Enrollment: 144 Number opoeu Rooms Remaining: 3 *i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i*i¢

Attachments:

Answers

(11)
Status NEW Posted 27 Apr 2017 07:04 AM My Price 8.00

-----------

Not Rated(0)