Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are expected to write a statistical interpreter that perform some statistical function by issuing commands at the command prompt. When run, your interpreter


You are expected to write a statistical interpreter that perform some statistical function by issuing

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.

Step by Step Solution

3.27 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

Sure Here is a straightforward Python implementation of a statistical i... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Management Science A Modeling And Cases Studies Approach With Spreadsheets

Authors: Frederick S. Hillier, Mark S. Hillier

5th Edition

978-0077825560, 78024064, 9780077498948, 007782556X, 77498941, 978-0078024061

More Books

Students also viewed these Operating System questions