Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this project, you will be writing your own SIMPLE computer programming language. The coder will be writing . txt files as their code. Your

For this project, you will be writing your own SIMPLE computer programming language. The coder will be writing .txt files as their code. Your program must parse the code and execute whatever the user writes in the .txt file.
In short, the .txt file is the code, your program that you are writing will compile/run the program.
Your computer language MUST:
-Accept integers and strings
-Have user input(keyboard) and output
-Perform math computations(+/-/*///%)
-Perform conditions(just ifs are fine, int and String compare will be just fine)
-Loops(can be any type of loop and as simple as you want it to be)
-Display SIMPLE errors if the code doesnt compile
-have Line comments
Coding:
Your code can be as simple and as complicated as you want it to be, but you MUST utilize objects. The objects that you use must also make sense(no creating objects for the sake of creating objects). All code also must be commented well so anyone can easily read the code without confusion.
Readme:
After you finish, please create an instruction manual with your code. There is no length requirement to your readme, but your readme MUST explain to a brand new coder exactly how your code works.
Sample program:
Please include a sample program as a .txt file.
How to read a file using a Buffered Reader:
File file = new File(
"C:\\Users\\reva\\IdeaProjects\\compiler\\src\\sample.txt"); //your file path here
BufferedReader br = new BufferedReader(new FileReader(file));
String st = br.readLine(); //this is a line in your file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

What is working capital? LO1

Answered: 1 week ago

Question

Do you prefer to schedule your classes in the morning? Yes No

Answered: 1 week ago

Question

What resources will these tactics require?

Answered: 1 week ago

Question

What level of impact will this tactic make on the key public?

Answered: 1 week ago

Question

Have you used powerful language in your message?

Answered: 1 week ago