This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1. Design a classes Tender, PWD and contractor. Use an inheritance and association | |
relationship appropriately. Write a java program to store the tender details by the | |
contractor. */ | |
import java.util.Scanner; | |
abstract class Tender { | |
String construct_type; | |
Long Budget; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4. | |
\\ | |
\begin{center} Chomsky Hierarchy \\~\\ | |
\resizebox{\textwidth}{!}{% | |
\begin{tabular}{|l|l|l|l|} | |
\hline | |
Grammar & Lanugage & Automaton & Production Rules \\ \hline | |
Type-3 & Regular & Finite State Automaton & $A \rightarrow a$ $\&$ $A$ $\rightarrow aB$\\ \hline | |
Type-2 & Context-Free & Push Down Automaton & $A \rightarrow \gamma$ \\ \hline | |
Type-1 & Context-Sensitive & Linear Bounded Automaton & $\alpha A \beta \rightarrow \alpha \gamma \beta$ \\ \hline |