In many user interfaces a user is presented with a set of options, one of which...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In many user interfaces a user is presented with a set of options, one of which is selected to perform a particular task. Text-based programs often print out these options linearly and allow users to select options continuously until a specific task has been chosen. In the precursor to the Internet, public Bulletin Board Systems (BBS) were used to exchange information (messages/files) in a community of users. Write a program called 'bulletin.py' to simulate a simple BBS with one stored message and 2 fixed files, as indicated in the output. Study the output carefully before you start programming! Use a default message of "no message yet"; and if a file cannot be located, output "File not found". Sample 10 (The input from the user is shown in bold font- do not program this): Welcome to UCT BBS MENU (E)nter a message (V)iew message (L) ist files (D) isplay file e (X) it Enter your selection: E Enter the message: test message Welcome to UCT BBS MENU (E)nter a message (V)iew message (L)ist files (D)isplay file. e (X) it Enter your selection: V The message is: test message Welcome to UCT BBS MENU (E)nter a message (V)iew message (L)ist files (D) isplay file e (X) it Enter your selection: Goodbye! Sample 10 (The input from the user is shown in bold font-do not program this): Welcome to UCT BBS MENU (E)nter a message (V) Lew message (List files (D) isplay file c (X) it Enter your selection: L List of files: 42.txt, 1015.txt Welcome to UCT BES MENU (E)nter a message (V)iew message (L) ist files (D)isplay file e (X) it Enter your selection: D Enter the filename: 42.txt The meaning of life is blah blah blah... Welcome to UCT BBS MENU (Einter a message (V)iew message (L) ist files (Display file e (X) it Enter your selection: D Enter the filename: 1015.txt Computer Science class notes simplified Do all work Pass course Be happy Welcome to UCT BBS MENU (Einter a message (V)iew message (L)ist files (D)isplay file e (X) it Enter your selection: D Enter the filename: 1016.txt File not found Welcome to UCT BBS MENU (Einter a message (Vliew message (L)ist files (Display file *(X) it Enter your selection: X Goodbye! In many user interfaces a user is presented with a set of options, one of which is selected to perform a particular task. Text-based programs often print out these options linearly and allow users to select options continuously until a specific task has been chosen. In the precursor to the Internet, public Bulletin Board Systems (BBS) were used to exchange information (messages/files) in a community of users. Write a program called 'bulletin.py' to simulate a simple BBS with one stored message and 2 fixed files, as indicated in the output. Study the output carefully before you start programming! Use a default message of "no message yet"; and if a file cannot be located, output "File not found". Sample 10 (The input from the user is shown in bold font- do not program this): Welcome to UCT BBS MENU (E)nter a message (V)iew message (L) ist files (D) isplay file e (X) it Enter your selection: E Enter the message: test message Welcome to UCT BBS MENU (E)nter a message (V)iew message (L)ist files (D)isplay file. e (X) it Enter your selection: V The message is: test message Welcome to UCT BBS MENU (E)nter a message (V)iew message (L)ist files (D) isplay file e (X) it Enter your selection: Goodbye! Sample 10 (The input from the user is shown in bold font-do not program this): Welcome to UCT BBS MENU (E)nter a message (V) Lew message (List files (D) isplay file c (X) it Enter your selection: L List of files: 42.txt, 1015.txt Welcome to UCT BES MENU (E)nter a message (V)iew message (L) ist files (D)isplay file e (X) it Enter your selection: D Enter the filename: 42.txt The meaning of life is blah blah blah... Welcome to UCT BBS MENU (Einter a message (V)iew message (L) ist files (Display file e (X) it Enter your selection: D Enter the filename: 1015.txt Computer Science class notes simplified Do all work Pass course Be happy Welcome to UCT BBS MENU (Einter a message (V)iew message (L)ist files (D)isplay file e (X) it Enter your selection: D Enter the filename: 1016.txt File not found Welcome to UCT BBS MENU (Einter a message (Vliew message (L)ist files (Display file *(X) it Enter your selection: X Goodbye!
Expert Answer:
Answer rating: 100% (QA)
message variable that stores the message variable that contains the two files file1data1txt ... View the full answer
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these programming questions
-
Provide the following answer using the following compound below. a. Assign the hybridization for each atom, except hydrogen. b. Determine the number of atomic orbitals and Molecular orbitals (AO,...
-
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...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
3. Given the recurrence relation: Calculate T(n) for n= 1.2.3.4.5. 12 T(n) T(n)= 3T ([n/2])+ 2m +1 T(0) 0 1 2 3 4 5 [10 pts
-
It is proposed to build a 1000-MW electric power plant with steam as the working fluid. The condensers are to be cooled with river water (see Fig. P7.65). The maximum steam temperature is 550C, and...
-
Jizan Industries is developing the relevant cash flows associated with the proposed replacement of an existing machine tool with a new, technologically advanced one. Given the following costs related...
-
Use Exercise 10.13 or other software to obtain the interval requested in Exercise 10.3. Data From Exercise 10.13 10.13 MINITAB determination of confidence interval for p When the sample size is not...
-
A New Hampshire resort offers year-round activities: in winter, skiing and other cold-weather activities and, in summer, golf, tennis, and hiking. The resorts operating costs are essentially the same...
-
Discuss why the learning websites baby cant wait and naeyc are helpful and developmentally appropriate for the children with which you work?
-
The proposed rates were not in the range the CEO expected given the pricing analysis. The CEO has asked the pricing actuary to verify the total projected loss cost excluding potential large storm...
-
In 2022, the ABC Food company has total assets of $46,690,000, cash balance of $3,875,000, sales growth of -3% (-0.03), loss indicator of 1, CFO change indicator of 0. If the manager decides to...
-
looking over various business plans, select two or three plans to discuss and analyze. How a business plan can contribute to the overall success of a business. Why the overall presentation of a...
-
The ledger account balances for Greely Corporation at December 31, 2022 are as follows: Cash $ 300 Accounts Receivable 522 Prepaid Insurance 82 Supplies 180 Equipment 4,000 Accumulated Depreciation,...
-
A recipe for baba ghannuj (pured roasted eggplant) requires 1 ounces of pured eggplant for each serving. If you make enough baba ghannuj to serve 300 people, how many eggplants should you purchase?...
-
Completely expand the following logarithmic expressions. Wherever possible, evaluate logarithmic expressions. A) In(yet) B) x6 log5 125 C) 32ab2 log2 de
-
1. (12 points) Consider the following context-free grammar G and answer the following questions. S A1B A 0A | B B1 | (a) What are the variables, terminals, and the start variable of G? (b) For each...
-
(1 point) Use the LaPlace transform to solve the following initial value problem: b. Now solve for Y(s) = y" + 6y' = 0. a. Using Y for the Laplace transform of y(t), i.e., Y = L{y(t)}, find the...
-
Read the following description and Write a response of it. The discretion of public administrators can be decreased, but not altogether eliminated. Officials will use their discretion in any given...
-
I. Identify the purpose of a vulnerability scanner and its purpose to determine security holes in a system. II. Introduce students to a class of vulnerability scanners called black-box scanners or...
-
Analyze the following with respect to NISTs approach to managing risk in the organization. Building information security capabilities into federal information systems through the application of...
-
I. Detail that friendly departures include resignation, retirement, promotion, or relocation. In this case, the employee may have tendered notice well in advance of the actual departure date. II....
-
Compare and contrast licensure and credentialing.
-
Compare and contrast the different inventory management techniques and discuss how each technique might play a role within different health care organizations.
-
Distinguish between core privileges and specific privileges in physician credentialing.
Study smarter with the SolutionInn App