8 HOURS DELIVERY: PLAGIARISM FREE AND QUALITY WORK GUARANTEED.

The goal of phase 1 is to write a type checker for MiniJava. Given a program, th

The goal of phase 1 is to write a type checker for MiniJava. Given a program, the type checker checks at compile time that type mismatch does not happen at run time. It either approves or rejects the program. The set of rules that the type checker checks are represented as a type system. You can consult the book chapter 5 on semantic analysis and the following MiniJava type system. DownloadPhase 1: Type-checkingIntroductionMiniJava is a subset of java that includes the bare minimum of Java: integers, integer arrays, classes, subclasses, and printing integers to standard out. It does not permit any float types, strings, overloading and overriding methods, or any interfaces. It has a few other restrictions, but those are minor. Thus, the MiniJava statement System.out.println(…); can only print integers. The MiniJava expression e.length only applies to expressions of type int[].A sample MiniJava program is Factorial.java. Downloadclass Factorial{
public static void main(String[] a){
System.out.println(new Fac().ComputeFac(10));
}
}
class Fac {
public int ComputeFac(int num){
int num_aux;
if (num < 1) num_aux = 1; else
num_aux = num * (this.ComputeFac(num-1));
return num_aux;
}
}DependenciesWe need to have the following:- JavaCC (Java Compiler Compiler) parser generator. Install javacc: $ sudo apt-get install javacc Given a context free grammer, JavaCC generates a parser.- JTB (Java Tree Builder) jar file jtb.jar: Download JTB is a syntax tree builder to be used with JavaCC. Given a JavaCC grammar file, it automatically generates syntax tree and visitor classes and an annotated JavaCC grammer to build syntax trees.- MiniJava Grammer for JavaCC minijava.jj: Download The context free grammer of MiniJava that is input to JTB and JavaCC. Here is a more readable representation of the MiniJava grammar.- Test cases Phase1Tests.tar.gz: Download The test cases that we test our type checker with.Generating ASTWe must first create a parser for the MiniJava language and generate a set of syntax tree classes and visitor classes. For an overview of JTB, JavaCC and the Visitor pattern, study the following slides. DownloadComplete the following steps. $ java -jar /path/to/jtb.jar /path/to/minijava.jj $ javacc jtb.out.jjOnce this is done, you will have a complete parser for MiniJava and a set of classes used for traversing the syntax tree. You will also have two different default visitors: DepthFirstVisitor and GJDepthFirst. You should extend these two visitors to type check a MiniJava program.Type-checkingThe goal of phase 1 is to write a type checker for MiniJava. Given a program, the type checker checks at compile time that type mismatch does not happen at run time. It either approves or rejects the program. The set of rules that the type checker checks are represented as a type system. You can consult the book chapter 5 on semantic analysis and the following MiniJava type system. DownloadSubmissionYour main file should be called Typecheck.java, and if P.java contains a program to be type checked, then:java Typecheck < P.javashould print either Program type checked successfully or Type error.Untar the following tarball and read the instructions in the ReadMe.txt file.Your submission must work with the testing script when run on the department servers. Make sure you test your final tarball before submitting.Phase1Tester.tar.gz Download Requirements: give me the screenshot of output to show you pass all the tests

The goal of phase 1 is to write a type checker for MiniJava. Given a program, th

The goal of phase 1 is to write a type checker for MiniJava. Given a program, the type checker checks at compile time that type mismatch does not happen at run time. It either approves or rejects the program. The set of rules that the type checker checks are represented as a type system. You can consult the book chapter 5 on semantic analysis and the following MiniJava type system. DownloadPhase 1: Type-checkingIntroductionMiniJava is a subset of java that includes the bare minimum of Java: integers, integer arrays, classes, subclasses, and printing integers to standard out. It does not permit any float types, strings, overloading and overriding methods, or any interfaces. It has a few other restrictions, but those are minor. Thus, the MiniJava statement System.out.println(…); can only print integers. The MiniJava expression e.length only applies to expressions of type int[].A sample MiniJava program is Factorial.java. Downloadclass Factorial{ public static void main(String[] a){ System.out.println(new Fac().ComputeFac(10)); }}class Fac { public int ComputeFac(int num){ int num_aux; if (num < 1) num_aux = 1; else num_aux = num * (this.ComputeFac(num-1)); return num_aux; }}DependenciesWe need to have the following:- JavaCC (Java Compiler Compiler) parser generator. Install javacc: $ sudo apt-get install javacc Given a context free grammer, JavaCC generates a parser.- JTB (Java Tree Builder) jar file jtb.jar: Download JTB is a syntax tree builder to be used with JavaCC. Given a JavaCC grammar file, it automatically generates syntax tree and visitor classes and an annotated JavaCC grammer to build syntax trees.- MiniJava Grammer for JavaCC minijava.jj: Download The context free grammer of MiniJava that is input to JTB and JavaCC. Here is a more readable representation of the MiniJava grammar.- Test cases Phase1Tests.tar.gz: Download The test cases that we test our type checker with.Generating ASTWe must first create a parser for the MiniJava language and generate a set of syntax tree classes and visitor classes. For an overview of JTB, JavaCC and the Visitor pattern, study the following slides. DownloadComplete the following steps. $ java -jar /path/to/jtb.jar /path/to/minijava.jj $ javacc jtb.out.jjOnce this is done, you will have a complete parser for MiniJava and a set of classes used for traversing the syntax tree. You will also have two different default visitors: DepthFirstVisitor and GJDepthFirst. You should extend these two visitors to type check a MiniJava program.Type-checkingThe goal of phase 1 is to write a type checker for MiniJava. Given a program, the type checker checks at compile time that type mismatch does not happen at run time. It either approves or rejects the program. The set of rules that the type checker checks are represented as a type system. You can consult the book chapter 5 on semantic analysis and the following MiniJava type system. DownloadSubmissionYour main file should be called Typecheck.java, and if P.java contains a program to be type checked, then:java Typecheck < P.javashould print either Program type checked successfully or Type error.Untar the following tarball and read the instructions in the ReadMe.txt file.Your submission must work with the testing script when run on the department servers. Make sure you test your final tarball before submitting.Phase1Tester.tar.gz Download Requirements: give me the screenshot of output to show you pass all the tests

Project OverviewYou are working as a software developer for a large insurance co

Project OverviewYou are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual Basic to Java and this will require new calculations. You will be creating a program that calculates the insurance payment category based on the BMI score.Your Java program should perform the following things:Take the input from the user about the patient name, weight, birthdate, and height.
Calculate Body Mass Index.
Display person name and BMI Category.
If the BMI Score is less than 18.5, then underweight.
If the BMI Score is between 18.5-24.9, then Normal.
If the BMI score is between 25 to 29.9, then Overweight.
If the BMI score is greater than 29.9, then Obesity.
Calculate Insurance Payment Category based on BMI Category.
If underweight, then insurance payment category is low.
If Normal weight, then insurance payment category is low.
If Overweight, then insurance payment category is high.
If Obesity, then insurance payment category is highest.
Implement exception handling.
Store all the information in the file.
Use an interface.
Use the concept of a queue and insert the patient details.
Your project must include the following things:Java program that calculates the BMI category
A method that calculates the insurance payment category
All the information should be stored in the file
Exception handling
Interface
Data structure concept
In addition to the above requirements, you will be expected to submit a solution that:Runs and operates without error
Is written and readable with clear and sufficient comments
Requirements: 2 pages   |   .doc file

Assuming that the construction awarding criteria is following the below average

Assuming that the construction awarding criteria is following the below average method, and that the current mark up used in the market is between zero and 60% ( all equally likely ). Using the Particle Swarm Optimization model , find the optimal markup value, knowing the fitness of a solution is function of the markup value. Develop and submit a Java code for the problem, along with an excel file showing the progression of the markup value through time.
Requirements: as you like

Assuming that the construction awarding criteria is following the below average

Assuming that the construction awarding criteria is following the below average method, and that the current mark up used in the market is between zero and 60% ( all equally likely ). Using the Particle Swarm Optimization model , find the optimal markup value, knowing the fitness of a solution is function of the markup value. Develop and submit a Java code for the problem, along with an excel file showing the progression of the markup value through time.
Requirements: as you like