Python Programming: An Introduction to Computer Science, 3rd Ed.
3rd Edition
ISBN: 9781590282755
Author: John Zelle
Publisher: Franklin, Beedle & Associates
expand_more
expand_more
format_list_bulleted
Question
Chapter 12, Problem 3PE
Program Plan Intro
Tracking conference attendees
Program plan:
- Import the package.
- Create a class “Conference_Manager”,
- Define the “_init_()” function,
- Create empty list.
- Open the input file in read mode.
- Read all the characters from the file using “read()”.
- Parse the json string using “json_loads()”.
- Create a “for” loop to iterate all the keys which are obtained from “json_object”.
- Assign initial values by invoking “_init_()”.
- Append the value at the end of the list.
- Close the input file.
- Define the getter method “get_JSON()”,
- Return the key, value pairs get from “json_object”.
- Define the getter method “get_Attendee()”,
- Create “for” loop to iterate over elements of list.
- Check whether the value return from “get_Name()” is equal to the value stored in “name,
- Return the list.
- Check whether the value return from “get_Name()” is equal to the value stored in “name,
- Create “for” loop to iterate over elements of list.
- Define the getter method “find_ByState()”,
- Create a list.
- Create “for” loop to iterate over elements of list.
- Check whether the value return from “get_State()” is equal to the value stored in “state”,
- If it is true, append the value to the end of the list.
- Check whether the value return from “get_State()” is equal to the value stored in “state”,
- Return the list.
- Define the getter method “make_Attendee()”,
- Assign the value to the list return from “_init_ ()” method from Attendee class.
- Append the value to the end of the list.
- Define the method “del_Attendee()”,
- Create for loop,
- Check whether the name is return from “get_name()”,
- If it is true, remove the element using “pop()”.
- Check whether the name is return from “get_name()”,
- Create for loop,
- Define the method “update_Conference()”,
- Create a list.
- Create for loop,
- Check whether the name is return from “get_name()”,
- Append the value to the end of the list.
-
- Open the output file in write mode,
- Serialize the object as a JSON formatted stream using “json_dump()”.
- Open the output file in write mode,
- Check whether the name is return from “get_name()”,
- Define the “_init_()” function,
- Create a class “Attendee”,
- Define the function “_init_()”,
- Assign the initial values for the variables.
- Define the getter method “get_Name()” to return the value stored in “name”.
- Define the getter method “get_Company()” to return the value stored in “company”.
- Define the getter method “get_State()” to return the value stored in “state”.
- Define the getter method “get_Email()” to return the value stored in “email”.
- Define the method “display_Info()” to print the formatted output.
- Define the function “_init_()”,
- Define the “main()” function,
- Call the constructor to initialize the values.
- Call “make_Attendee()” function.
- Assign the value return from “get_Attendee()”.
- Assign the value return from “find_ByState()”.
- Print the value return from “get_Company()”.
- Print the value return from “get_Name()”.
- Print the value return from “get_Sate()”.
- Print the value return from “get_Email()”.
- Call the function “display_Info()”.
- Create for loop,
- Print the value return from “get_Name()”.
- Call the “main()” function.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Of the five primary components of an information system (hardware, software, data, people, process), which do you think is the most important to the success of a business organization?
Part A - Define each primary component of the information system.
Part B - Include your perspective on why your selection is most important.
Part C - Provide an example from your personal experience to support your answer.
Management Information Systems
Q2/find the transfer function C/R for the system shown in the figure
Re
ད
Chapter 12 Solutions
Python Programming: An Introduction to Computer Science, 3rd Ed.
Knowledge Booster
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.Similar questions
- Please original work select a topic related to architectures or infrastructures (Data Lakehouse Architecture). Discussing how you would implement your chosen topic in a data warehouse project Please cite in text references and add weblinksarrow_forwardPlease original work What topic would be related to architectures or infrastructures. How you would implement your chosen topic in a data warehouse project. Please cite in text references and add weblinksarrow_forwardWhat is cloud computing and why do we use it? Give one of your friends with your answer.arrow_forward
- What are triggers and how do you invoke them on demand? Give one reference with your answer.arrow_forwardDiscuss with appropriate examples the types of relationships in a database. Give one reference with your answer.arrow_forwardDetermine the velocity error constant (k,) for the system shown. + R(s)- K G(s) where: K=1.6 A(s+B) G(s) = as²+bs C(s) where: A 14, B =3, a =6. and b =10arrow_forward
- • Solve the problem (pls refer to the inserted image)arrow_forwardWrite .php file that saves car booking and displays feedback. There are 2 buttons, which are <Book it> <Select a date>. <Select a date> button gets an input from the user, start date and an end date. Book it button can be pressed only if the start date and ending date are chosen by the user. If successful, it books cars for specific dates, with bookings saved. Booking should be in the .json file which contains all the bookings, and have the following information: Start Date. End Date. User Email. Car ID. If the car is already booked for the selected period, a failure message should be displayed, along with a button to return to the homepage. In the booking.json file, if the Car ID and start date and end date matches, it fails Use AJAX: Save bookings and display feedback without page refresh, using a custom modal (not alert).arrow_forwardWrite .php file with the html that saves car booking and displays feedback. Booking should be in the .json file which contains all the bookings, and have the following information: Start Date. End Date. User Email. Car ID. There are 2 buttons, which are <Book it> <Select a date> Book it button can be pressed only if the start date and ending date are chosen by the user. If successful, book cars for specific dates, with bookings saved. If the car is already booked for the selected period, a failure message should be displayed, along with a button to return to the homepage. Use AJAX: Save bookings and display feedback without page refresh, using a custom modal (not alert). And then add an additional feature that only free dates are selectable (e.g., calendar view).arrow_forward
- • Solve the problem (pls refer to the inserted image) and create line graph.arrow_forwardwho started the world wide webarrow_forwardQuestion No 1: (Topic: Systems for collaboration and social business The information systems function in business) How does Porter's competitive forces model help companies develop competitive strategies using information systems? • List and describe four competitive strategies enabled by information systems that firms can pursue. • Describe how information systems can support each of these competitive strategies and give examples.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Files & File Systems: Crash Course Computer Science #20; Author: CrashCourse;https://www.youtube.com/watch?v=KN8YgJnShPM;License: Standard YouTube License, CC-BY
UNIX Programming (Part - 10) The File System (Directories and Files Names); Author: ITUTEES;https://www.youtube.com/watch?v=K35faWBhzrw;License: Standard Youtube License