Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

by java please Data Structure Assignment 1) Your assignment is to write a calculator application as follows: a. The program read the expression from the

image text in transcribed

by java please

Data Structure Assignment 1) Your assignment is to write a "calculator" application as follows: a. The program read the expression from the console, and the answer should be printed on the console. b. Example of the user input: ((43*(30-12)+(80/5)*2) c. First of all, the program has to check if the brackets are a match or not? d. If yes, the program has to evaluate the values using the arithmetic expression algorithms given in the class. e. Assume that all numbers are one or two digits integers. 2) Your second part of the assignment is to write a program that reads a file called "balance". This file has three different brackets {.(.)). You need to check if the brackets are balanced or not? For example, if the file contains the following string A data (structure is a specialized (format for organizing and storing data. General data structure types include the array, the file, the record, the table, the tree, and so on. Any data structure is designed) to organize data to suit a specific purpose so that it can be accessed and worked ] with in appropriate ways. In computer programming, a data structure may be) selected or designed to store data for the purpose of working on it with various) algorithms. The set of brackets are {{[001]}} balanced

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions