Create a program that stores your plans for a week. Each plan needs a start- and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that stores your plans for a week. Each plan needs a start- and an end-time, given to the nearest whole minute. You should choose between loading a plan, adding information to a plan, showing the current plan, and saving the current plan. The plan should be saved in a file, so you can load it again later with the same program. When showing the plan, you should only print the non-empty time-slots. Example use: *Choose: load, add, show, save, exit Choose from the list: add Which day? Thursday Start-time? 10:30 End-time? 12:15 What is the plan? ACIT4428 Lecture *Choose: load, add, show, save, exit Choose from the list: add Which day? Thursday Start-time? 12:30 End-time? 16:15 What is the plan? ACIT4420 Lab *Choose: load, add, show, save, exit Choose from the list: show Which day? Wednesday You have no plans for Wednesday. Choose: load, add, show, save, exit Choose from the list: show Which day? Thursday Your plans for Thursday is: 10:30 12:15 ACIT4420 Lecture 12:30 16:15 ACIT4420 Lab *Choose: load, add, show, save, exit Choose from the list: save File-name? ACITplans.txt Your Calendar is saved. *Choose: load, add, show, save, exit Choose from the list: exit Thank you, have a nice day. Create a program that stores your plans for a week. Each plan needs a start- and an end-time, given to the nearest whole minute. You should choose between loading a plan, adding information to a plan, showing the current plan, and saving the current plan. The plan should be saved in a file, so you can load it again later with the same program. When showing the plan, you should only print the non-empty time-slots. Example use: *Choose: load, add, show, save, exit Choose from the list: add Which day? Thursday Start-time? 10:30 End-time? 12:15 What is the plan? ACIT4428 Lecture *Choose: load, add, show, save, exit Choose from the list: add Which day? Thursday Start-time? 12:30 End-time? 16:15 What is the plan? ACIT4420 Lab *Choose: load, add, show, save, exit Choose from the list: show Which day? Wednesday You have no plans for Wednesday. Choose: load, add, show, save, exit Choose from the list: show Which day? Thursday Your plans for Thursday is: 10:30 12:15 ACIT4420 Lecture 12:30 16:15 ACIT4420 Lab *Choose: load, add, show, save, exit Choose from the list: save File-name? ACITplans.txt Your Calendar is saved. *Choose: load, add, show, save, exit Choose from the list: exit Thank you, have a nice day.
Expert Answer:
Answer rating: 100% (QA)
Code import os def loadplansfilename plans if ospathexistsfilename with openfilename r as file lines ... View the full answer
Related Book For
Managerial Accounting An Integrative Approach
ISBN: 9780999500491
2nd Edition
Authors: C J Mcnair Connoly, Kenneth Merchant
Posted Date:
Students also viewed these programming questions
-
Due to demand, Smitty began selling small glass block windows for basements and porches in 2022 at an average price of $150. He sold 600 units in his first year. In his second year, he only sold 300...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Find each product. (8 m)( + m)
-
An order for a computer system can specify memory of 4, 8, or 12 gigabytes, and disk storage of 200, 300, or 400 gigabytes. Describe the set of possible orders.
-
An archer, about to shoot an arrow, is applying a force of +240 N to a drawn bowstring. The bow behaves like an ideal spring whose spring constant is 480 N/m. What is the displacement of the...
-
Normal octane at \(68{ }^{\circ} \mathrm{F}\left(u=8.31 \times 10^{-6} \mathrm{ft}^{2} / \mathrm{s} ight)\) is to be delivered at a flow rate of \(3.0 \mathrm{gal} / \mathrm{min}\) through a \(2.0-\)...
-
Use Worksheet 5.2. Aurelia Montenegro is currently renting an apartment for $725 per month and paying $275 annually for renters insurance. She just found a small town-house that she can buy for...
-
StorSmart Company makes plastic organizing bins. The company has the following inventory balances at the beginning and end of March: S Raw materials Work in process Finished goods Beginning Inventory...
-
The following diagram is the original plan for a project. In reference to the diagram below answer the questions below. All durations are in weeks. DESIGN STRUCTURAL 37CCL 8.1 8.2 8.3 8.4 8.5 2...
-
What kind and how much public speaking experience you currently have. What went well and what could have gone better? What are your strengths and areas to improve in public speaking. What are two...
-
A beam spanning 7 m face to face between simple supports has a cross-section as shown in Fig. Q-3.3. It is reinforced for flexure with six H32 bars in two layers that continue uninterrupted to the...
-
Kim took out a $15000 loan to start a new business. She can get the loan as an unsecured line of credit at an annual rate of 8.05% compounded daily. If she can afford to pay back $500 per month, how...
-
Problem 3 In the circuit given in the figure I = 2A a) Find the potential difference between the points b and c. b) Find the currents 12 and 13. (The results can be positive or negative) b a 4.0 10.0...
-
5. In a two-dimensional flow, a force of 150 lbf acts on a small square plate as shown. Determine the normal and shear stresses. 0.5 m 30 ,150 N
-
n Given the acceleration pattern shown in Figure 2.1 below, (a) derive and plot the relationship between speed and time and (b) calculate the total distance traveled during the 20 sec interval. Atr=0...
-
What is the organizational structure of the Philippine government?
-
As you rewrite these sentences, replace the cliches and buzzwords with plain language (if you don't recognize any of these terms, you can find definitions online): a. Being a jack-of-all-trades, Dave...
-
Ajax Manufacturing has two support centers, Engineering and Accounting, and two production centers, Cutting and Milling. The overhead costs for the coming year for the four departments, and their...
-
What are the major purposes served by planning and budgeting systems in organizations?
-
Taylors Rental rents a variety of products to customers for home use. The following is the flow associated with one of the products offered by Taylors. REQUIRED: a. Add up all the time these...
-
Show that having the exact value for the estimated sensor bandwidth is not required for the experimental process to find KEst discussed in Section 10. 4.3.4. In Experiment 10E, corrupt the value of...
-
Provide the modeling equations for the following figure. Assume an analog PI controller (GC(s)), a single-pole low-pass filter with a break frequency of 200 Hz for the feedback filter (H(s)), and a...
-
What is the gain and phase of a single-pole low-pass filter (a) at its bandwidth and (b) at 1/10 its bandwidth? (c) Repeat for a two-pole low-pass filter with = 0.7
Study smarter with the SolutionInn App