Comments in the code tell you where to write your statements. Weekly rates can be found in the provided table: info> Note: Click and drag the right side of the instructions pane to view the entire table. Age: 1 2 4 30.00 60.00 88.00 115.00 140.00 1 26.00 52.00 70.00 96.00 120.00 2 24.00 46.00 67.00 89.00 110.00 3 22.00 40.00 60.00 75.00 88.00 4+ 20.00 35.00 50.00 66.00 84.00 Instructions 1. Declare and initialize the two-dimensional list. 2. Write the Python statements that retrieve the age of the child and the number of days the child will be at the day care center. 3. Determine and print the weekly rate. 4. Execute the program and verify that the output is correct.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Comments in the code tell you where to write your statements. Weekly rates can be found in the
provided table: info> Note: Click and drag the right side of the instructions pane to view the entire
table.
Age: 1
2
3
4
30.00 60.00 88.00 115.00 140.00
1
26.00 52.00 70.00 96.00 120.00
2
24.00 46.00 67.00 89.00 110.00
3
22.00 40.00 60.00 75.00 88.00
4+
20.00 35.00 50.00 66.00 84.00
Instructions
1. Declare and initialize the two-dimensional list.
2. Write the Python statements that retrieve the age of the child and the number of days the
child will be at the day care center.
3. Determine and print the weekly rate.
4. Execute the program and verify that the output is correct.
Transcribed Image Text:Comments in the code tell you where to write your statements. Weekly rates can be found in the provided table: info> Note: Click and drag the right side of the instructions pane to view the entire table. Age: 1 2 3 4 30.00 60.00 88.00 115.00 140.00 1 26.00 52.00 70.00 96.00 120.00 2 24.00 46.00 67.00 89.00 110.00 3 22.00 40.00 60.00 75.00 88.00 4+ 20.00 35.00 50.00 66.00 84.00 Instructions 1. Declare and initialize the two-dimensional list. 2. Write the Python statements that retrieve the age of the child and the number of days the child will be at the day care center. 3. Determine and print the weekly rate. 4. Execute the program and verify that the output is correct.
1 # Declare two dimensional list here
2
Summary
3 # Declare other variables
4 QUIT = 99
In this lab, you will complete a Python program that uses a two-dimensional list to store data for
the Building Block Day Care Center.
6 age = int(input("Enter the age of the child or 99 to quit: "))
7
The day care center charges varying weekly rates depending on the age of the child and the
8 # Perform a priming read to get the age of the child
9 while age != QUIT:
number of days per week the child attends. The program should allow the user to enter the age of
10
the child and the number of days per week the child will be at the day care center. The program
11
# Ask the user to enter the number of days
should output the appropriate weekly rate.
12
13
# Print the weekly rate
14
The file provided for this lab contains all of the necessary variable declarations, except the two-
15
# Ask the user to enter the next child's age
dimensional list. You need to write the input statements and the code that initializes the two-
16
dimensional list, determines the weekly rate, and prints the weekly rate.
|17 print("End of program")
18
Comments in the code tell you where to write your statements. Weekly rates can be found in the
provided table: info> Note: Click and drag the right side of the instructions pane to view the entire
table.
Age: 1
2
3
4
30.00 60.00 88.00 115.00 140.00
1
26.00 52.00
70.00 96.00
120.00
2
24.00 46.00 67.00 89.00 110.00
3
22.00 40.00 60.00 75.00
88.00
4 +
20.00 35.00 50.00 66.00
84.00
Transcribed Image Text:1 # Declare two dimensional list here 2 Summary 3 # Declare other variables 4 QUIT = 99 In this lab, you will complete a Python program that uses a two-dimensional list to store data for the Building Block Day Care Center. 6 age = int(input("Enter the age of the child or 99 to quit: ")) 7 The day care center charges varying weekly rates depending on the age of the child and the 8 # Perform a priming read to get the age of the child 9 while age != QUIT: number of days per week the child attends. The program should allow the user to enter the age of 10 the child and the number of days per week the child will be at the day care center. The program 11 # Ask the user to enter the number of days should output the appropriate weekly rate. 12 13 # Print the weekly rate 14 The file provided for this lab contains all of the necessary variable declarations, except the two- 15 # Ask the user to enter the next child's age dimensional list. You need to write the input statements and the code that initializes the two- 16 dimensional list, determines the weekly rate, and prints the weekly rate. |17 print("End of program") 18 Comments in the code tell you where to write your statements. Weekly rates can be found in the provided table: info> Note: Click and drag the right side of the instructions pane to view the entire table. Age: 1 2 3 4 30.00 60.00 88.00 115.00 140.00 1 26.00 52.00 70.00 96.00 120.00 2 24.00 46.00 67.00 89.00 110.00 3 22.00 40.00 60.00 75.00 88.00 4 + 20.00 35.00 50.00 66.00 84.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY