You are expected to write a statistical interpreter that perform some statistical function by issuing commands...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are expected to write a statistical interpreter that perform some statistical function by issuing commands at the command prompt. When run, your interpreter should show a prompt $ and should allow users to key in a command and its parameters. The interpreter must verify whether the command is syntactically correct or not and must display an error message when a wrong command. Each command is executed immediately after pressing the enter key. The interpreter should allow users to handle four types of commands: file operations, statistical operations, display operations, and add/delete operations. 1. File Operations Your interpreter should allow users to issue commands to load, store, and clone files. The interpreter can read and write files of the format shown below: 5 100 Id, Age, Math, Science, Malay String, number, number, number, number 11920100, 19, 93, 92, 87 11920111, 20, 76, 87, 75 : : 1221302345, 19, 20, 02, 20 Command Load Store Clone html html example $ load salary.csv $ store salary.csv $ clone salary.csv s2.csv $ html salary.html Shtml a.csv a.html data.csv 5 → the number of columns in the file. 100 ➜ the number of data rows in the file. Column names separated by comma. The type of each column (only string and float) data row 1 separated by comma. data row 2 separated by comma. data row 100 separated by comma. Function Reads the file named filename and parses its contents and stores it into arrays or vectors. The interpreter handles one file only. Save the active array or vectors into a csv formatted file with the name filename Create a copy of file1 and name it file2. You are not expected to handle multiple folders and switch folders. Generates an HTML document for the loaded data and store it in a file "salary.html". You must decide on the format. The file to be viewed by a web browser. The program should read the a.csv file and convert it to an html table with proper column titles and format. You are expected to write a statistical interpreter that perform some statistical function by issuing commands at the command prompt. When run, your interpreter should show a prompt $ and should allow users to key in a command and its parameters. The interpreter must verify whether the command is syntactically correct or not and must display an error message when a wrong command. Each command is executed immediately after pressing the enter key. The interpreter should allow users to handle four types of commands: file operations, statistical operations, display operations, and add/delete operations. 1. File Operations Your interpreter should allow users to issue commands to load, store, and clone files. The interpreter can read and write files of the format shown below: 5 100 Id, Age, Math, Science, Malay String, number, number, number, number 11920100, 19, 93, 92, 87 11920111, 20, 76, 87, 75 : : 1221302345, 19, 20, 02, 20 Command Load Store Clone html html example $ load salary.csv $ store salary.csv $ clone salary.csv s2.csv $ html salary.html Shtml a.csv a.html data.csv 5 → the number of columns in the file. 100 ➜ the number of data rows in the file. Column names separated by comma. The type of each column (only string and float) data row 1 separated by comma. data row 2 separated by comma. data row 100 separated by comma. Function Reads the file named filename and parses its contents and stores it into arrays or vectors. The interpreter handles one file only. Save the active array or vectors into a csv formatted file with the name filename Create a copy of file1 and name it file2. You are not expected to handle multiple folders and switch folders. Generates an HTML document for the loaded data and store it in a file "salary.html". You must decide on the format. The file to be viewed by a web browser. The program should read the a.csv file and convert it to an html table with proper column titles and format.
Expert Answer:
Answer rating: 100% (QA)
Sure Here is a straightforward Python implementation of a statistical i... View the full answer
Related Book For
Introduction to Management Science A Modeling and Cases Studies Approach with Spreadsheets
ISBN: 978-0078024061
5th edition
Authors: Frederick S. Hillier, Mark S. Hillier
Posted Date:
Students also viewed these operating system questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Goods 1 and 2 are available at dollar prices of p1 per unit of Good 1 and p2 per unit of Good 2. A utility function U(x 1 , x 2 ) is a function representing the utility or benefit of consuming xj...
-
Jennings plc reported the following pretax income (loss) and related tax rates during the years 2014-2020. Pretax financial income (loss) and taxable income (loss) were the same for all years since...
-
What is ergonomics? How can it be applied to office workers?
-
Suppose that a forward contract on an asset is written at time zero and there are \(M\) periods until delivery. Suppose that the proportional carrying charge in period \(k\) is \(q S(k)\), where...
-
The Management Discussion and Analysis section of an annual report addresses corporate performance for the year, and sometimes uses financial ratios to support its claims. Steps 1. From IBMs Investor...
-
On January 1 , 2 0 2 1 , Frontier World issues $ 3 9 . 1 million of 9 % bonds, due in 2 0 years, with interest payable semiannually on June 3 0 and December 3 1 each year. The proceeds will be used...
-
You are the Chief Human Resources Officer (CHRO) of a large tech company in Silicon Valley and your company has just acquired a small start-up company that has recently developed an apparatus that...
-
Revise the following to avoid redundancies. a. Because the proposals are exactly identical, we need not check each and every item. b. Some of the funniest animated gifs on Twitter, Tumblr, and Reddit...
-
How can you take unprocessed data and create meaningful information?
-
Describe how you can develop a logical persuasive argument in a claim message.
-
Discuss five ways to avoid stage fright.
-
Interview someone working in a field youre interested in. Use the following questions to get started: How did you get started in this field? What do you like about your job? What do you dislike...
-
2. The following is a conclusions drawn from Experiments. Based on your knowledge of experiments, identify how this experiment was likely carried out including: the Experimental Group, the Control...
-
At 31 December 20X9, the end of the annual reporting period, the accounts of Huron Company showed the following: a. Sales revenue for 20X9, $ 2,950,000, of which one- quarter was on credit. b....
-
The Athletic Department of Leland University is considering whether to hold an extensive campaign next year to raise funds for a new athletic field. The response to the campaign depends heavily on...
-
Read the referenced article that fully describes the management science study summarized in the application vignette presented in Section 7.5. Briefly describe how mixed BIP was applied in this...
-
Marsha operates an espresso stand. Customers arrive randomly at a mean rate of 30 per hour. The time needed by Marsha to serve a customer has an exponential distribution with a mean of 75 seconds. a....
-
A food processor claims that at most \(10 \%\) of her jars of instant coffee contain less coffee than claimed on the label. To test this claim, 16 jars of her instant coffee are randomly selected and...
-
Refer to Exercise 4.2. (a) Determine the cumulative probability distribution \(F(x)\). (b) Graph the probability distribution of \(f(x)\) as a bar chart and below it graph \(F(x)\). Data From...
-
Four emergency radios are available for rescue workers but one does not work properly. Two randomly selected radios are taken on a rescue mission. Let \(X\) be the number that work properly between...
Study smarter with the SolutionInn App