Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 : Brief of the project 2 : 2 functionalities along with screenshorts ( function code + output ) 3 : input daini hay (

1: Brief of the project
2: 2 functionalities along with screenshorts ( function code +output)
3: input daini hay(any language on which your program work ) and pher aus ki output
4: how functions works. Step by step
5: what challenges your faces during the project using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ProjectCompiler
{
public partial class Form1 : Form
{
class Symbols
{
public String symbol;
public String name;
}
class MemorySaver
{
public String name;
public String value;
}
class MemoryCalculating
{
public String name;
public List statement = new List();
}
public Form1()
{
InitializeComponent();
}
List iList = new List(); // identifies
List sList = new List(); // sympols
List rList = new List(); // reverese words
List oList = new List(); //==> was (s)tring // operators
List labelsList = new List();
List memoryLabels = new List();
Label errLabel = new Label();
List memoryList = new List();
List finalMemoryList = new List();
List calcList = new List();
List tempCalcList = new List();
int f =1;
String error ="";
private void Form1_Load(object sender, EventArgs e)
{
this.Size = new Size(1304,559);
createIdentifiers();
createSymbols();
createReversedWords();
}
public void createIdentifiers()
{
for (int i =0; i <6; i++)
{
String pnn="";
switch (i)
{
case 0:
pnn = "int";
break;
case 1:
pnn = "float";
break;
case 2:
pnn = "string";
break;
case 3:
pnn = "double";
break;
case 4:
pnn = "bool";
break;
case 5:
pnn = "char";
break;
}
iList.Add(pnn);
}
}
public void createSymbols()
{
for(int i =0; i <17; i++)
{
Symbols pnn = new Symbols();
String op ="";
switch(i)
{
case 0:
pnn.symbol ="+";
pnn.name = "operator";
op ="+";
break;
case 1:
pnn.symbol ="-";
pnn.name = "operator";
op ="-";
break;
case 2:
pnn.symbol ="/";
pnn.name = "operator";
op ="/";
break;
case 3:
pnn.symbol ="%";
pnn.name = "operator";
op ="%";
break;
case 4:
pnn.symbol ="*";
pnn.name = "operator";
op ="*";
break;
case 5:
pnn.symbol ="(";
pnn.name = "open bracket";
break;
case 6:
pnn.symbol =")";
pnn.name = "close bracket";
break;
case 7:
pnn.symbol ="{";
pnn.name = "open curly bracket";
break;
case 8:
pnn.symbol ="}";
pnn.name = "close curly bracket";
break;
case 9:
pnn.symbol =",";
pnn.name = "comma";
break;
case 10:
pnn.symbol =";";
pnn.name = "semicolon";
break;
case 11:
pnn.symbol ="&&";
pnn.name = "and";
b

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

Question

Where do I give in to my bad habit?

Answered: 1 week ago