PYTHON PROGRAMMING. The National Power and Light Company has a system of lampposts connected and automated in the Greate

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

PYTHON PROGRAMMING. The National Power and Light Company has a system of lampposts connected and automated in the Greate

Post by answerhappygod »

PYTHON PROGRAMMING.
The National Power and Light Company has a system of lamppostsconnected and automated in the Greater Metropolitan Area (GMA).This reporting system allows knowing the time switching on and offof the lighting on the lampposts, electrical consumption of thelampposts, detection of failures in the light bulbs and generationof alerts to schedule the technical visit that is in charge ofcarrying out the maintenance. Since your boss is aware that youpassed the Principles of Computer Science (You put it on yourresume to gain a competitive advantage), you were asked tocollaborate with the elaboration of a program capable of processingthe file generated by the monitoring system and obtain informationfrom it.
The information of the condition of the lampposts is generatedautomatically and provided as a comma separated file, better knownas a .csv file. That file is composed of a list of lampposts, whereeach line represents the information of a lamppost. The lamppostsare numbered, and this number is the first data provided in eachline, being a unique id. For each lamppost there can be severalhistorical entries in the file, which must be stored in the system.The following data represents the power on and power off time ofthe post in 24-hour format (hh:mm). The last data indicates thestatus of the lamppost, which will be 1 if it is in good condition.conditions or 0 if it is burned.
Python Programming The National Power And Light Company Has A System Of Lampposts Connected And Automated In The Greate 1
Python Programming The National Power And Light Company Has A System Of Lampposts Connected And Automated In The Greate 1 (22.48 KiB) Viewed 51 times
the image represents the lamppost number, the power on time, thepower off time and the current state of the lamppost (goodcondition (1) or burned (0)) respectively.
Your program, through an interactive menu, must show the userthe following functions:
• Create a new post record interactively
• Read all information from a .csv file
• Save all the information of the posts stored in memory in afile
• Average turn-on time and average turn-off time for a specificpole.
• Consult all available reports of a specific post
• Percentage of reports in which a specific post fails
• Generate a list of all posts that have at least one report inwhich they appear as burned.
Objects and classes must be used. Please do NOT uselibraries.
1, 10:10, 2, 07:00, 1, 05:00, 17:50, 1 18:00, 0 18:30, 1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply