Related questions
Python
You will need to create a menu that can be ran more than once. Below is an example of a menu you can use:
File Assignments Menu
- Schedule File
- Create Report File
- Exit
Please Enter your choice:
Here is the schedule.txt file:
DBA
125
mw
12-2
DBA
261
tth
8-10
DBA
120
tth
11-1
CTS
289
f
10-12
DBA
210
TBD
Online
If the user chooses option 2 (Create Report File), program is to read the schedule.txt file and create a report.txt file similar to the example shown below:
Example of a report.txt file:
Schedule
Class Name Meting Days Meeting Times
DBA125 MW 12-2
DBA261 TTh 8-10
DBA120 TTh 11-1
CTS289 F 10-12
DBA210 TBD Online
Design the program to notify the user if no schedule.txt file exists (hint: exception handling)
Trending nowThis is a popular solution!
Step by stepSolved in 5 steps with 9 images
- When a file’s header is not located and the extension is not know the file is reported as a(n) ____. alias unknown Bad Signature non-conventionalarrow_forwardnstructions Timed Test This test has a time limit of 30 minutes.This test will save ar Warnings appear when half the time, 5 minutes, 1 minute Multiple Attempts Not allowed. This test can only be taken once. Force Completion This test can be saved and resumed at any point until time Remaining Time: 08 minutes, 16 seconds. * Question Completion Status: A Moving to another question will save this response. Quèstion 6 What type of value is the outcome of the condition in a do while statement? O a. Boolean O b. true O c. character O d. false L A Moving to another question will save this response. Fs 10arrow_forwardA custom tailor offers a variety of custom suit options to customers. The company has tasked you with creating a program that will allow tailors to enter information about the kind of material used to make the customer's custom suit and the number of square yards used to make the suit and will determine the total cost to charge the customer. Use the following steps to create the program: The program should display a menu that asks the technician to select the type of material that was used. Make sure the menu is formatted exactly as in the Sample Input and Output of the instructions (including indentation). The program should determine the cost per square yard of the material. The cost per square yard is determined based on the type of material that is used. Table 1: Type of Material and Cost per Square Yard The program should then ask the tailor to enter the number of square yards of material that they used to make the custom suit. Calculate the material cost, which...arrow_forward
- It is recommended to use a ‘with’ statement when opening files so that ____.arrow_forwardThe DateTime.TryParse method will successfully convert the string "8/22/1990" to a DateTime object. Question 45 options: True Falsearrow_forwardlinux makefile topic Running "make" command without the arguments starts the target ____ in the makefile.arrow_forward
- Program Description A custom tailor offers a variety of custom suit options to customers. The company has tasked you with creating a program that will allow tailors to enter information about the kind of material used to make the customer's custom suit and the number of square yards used to make the suit and will determine the total cost to charge the customer. Use the following steps to create the program: 1. The program should display a menu that asks the technician to select the type of material that was used. Make sure the menu is formatted exactly as in the Sample Input and Output of the instructions (including indentation). I 2. The program should determine the cost per square yard of the material. The cost per square yard is determined based on the type of material that is used. Table 1: Type of Material and Cost per Square Yard Type of Material Cost per Square Yard Satin 8ドル.95 Linen 9ドル.65 Leather Silk 18ドル.45 28ドル.99 3. The program should then ask the tailor to enter the number...arrow_forwardHow would you write the code in Visual Basic to create a list box and a button for Add, user can add items to the listarrow_forwardThe command Drop Cap is available in A. File menu B. Format menu C. Insert menu D. View menuarrow_forward
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education