Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Java Project Name: Math is Fun Purpose: The objective of this project is to c

ID: 3715792 • Letter: I

Question

In Java

Project Name: Math is Fun Purpose: The objective of this project is to create a program that help the elementary students to practice the mathematics. The project goal is to experience the team work and critical thinking, perform problem solving techniques, design, implement and test a computer program that solves a problem in high-level programming language (Java). Skills The purpose of this project is to help you practice the following skills that are essential to your success in this course and professional life beyond school: Break down problems by using Software Development processes. . Understanding of how to code robust programs and reusable code. . Apply advanced programming concepts. . Revise fundamental concepts of Object Oriented Programming and Design * Perform proficiency on Unified Modeling Language UML .Create a program illustrating the solution of a business problem. Knowledge This project will also help you to become familiar with the following important content knowledge in this discipline: Superclasses and Subclasses and Interfaces Overriding and Overloading Encapsulation and Abstraction Polymorphism and Inheritance Class Relationships. Sorting and Searching Techniques and Performance I0 and Handling Errors Recursions vs. Loops 1. 2. 3. 4. 6. 7. 8.

Explanation / Answer


/////// StudentInfo.java is main class
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
public class StudentInfo {
public static void main(String[] args) {
List<Student> completeStudentList= new ArrayList<Student>();
List studentList= new ArrayList();
List studentList1= new ArrayList();
Student student= new Student();
Student student1= new Student();
Student student2= new Student();
Student student3= new Student();
Teacher teacher= new Teacher();
Teacher teacher1= new Teacher();
Parent parent= new Parent();
Parent parent1= new Parent();
student.setStudentfirstName("chandraMouli");
student.setStudentLastName("Siripurapu");
student.setGradeLevel(0);
student1.setStudentfirstName("Kranthi");
student1.setStudentLastName("Kk");
student1.setGradeLevel(0);
student2.setStudentfirstName("Kiran");
student2.setStudentLastName("yavali");
student2.setGradeLevel(2);
student3.setStudentfirstName("Vaseem");
student3.setStudentLastName("shaik");
student3.setGradeLevel(3);
completeStudentList.add(student);
completeStudentList.add(student1);
completeStudentList.add(student2);
completeStudentList.add(student3);
studentList.add(student);
studentList.add(student1);
studentList1.add(student2);
studentList1.add(student3);
teacher.setTeacherFirstName("VKM");
teacher.setTeacherLastName("Mittal");
teacher.setStudents(studentList);
teacher1.setTeacherFirstName("Sridhar");
teacher1.setTeacherLastName("Maddi");
teacher1.setStudents(studentList1);
parent.setParentFirstName("ParenetName");
parent.setParentLastName("xxxxxxx");
parent.setStudents(studentList);
parent1.setParentFirstName("Jagan");
parent1.setParentLastName("Mohna");
parent1.setStudents(studentList1);
List<String> studentnames = new ArrayList<String>();
List<Integer> AnswerKey = new ArrayList<Integer>();
Scanner sc=new Scanner(System.in);
System.out.println("please enter the Grade Level of 0,1,2 for Begin Test");
   int gradeLevel=sc.nextInt();
Random random= new Random();   
if(gradeLevel==0){
   System.out.println("Please find Question Paper");
   int x=random.nextInt((10 - 0) + 1 + 0);
   int y=random.nextInt((10 - 0) + 1 + 0);
   System.out.println("Question 1 :"+add(x, y)+" = ----------------");
   int ans1=x+y;
   x=random.nextInt((10 - 0) + 1 + 0);
   y=random.nextInt((10 - 0) + 1 + 0);
   System.out.println("Question 2 :"+sub(x,y) +" = ----------------");
   int ans2=x-y;
   x=random.nextInt((10 - 0) + 1 + 0);
   y=random.nextInt((10 - 0) + 1 + 0);
   System.out.println("Question 3 :"+mul(x,y) +" = ----------------");
   int ans3 = x*y;
   x=random.nextInt((10 - 0) + 1 + 0);
   y=random.nextInt((10 - 0) + 1 + 0);
   System.out.println("Question 4 :"+div(random.nextInt((10 - 0) + 1 + 0), random.nextInt((10 - 0) + 1 + 0)) +" = ----------------");
   int ans4 = x/y;
   AnswerKey.add(ans1);
   AnswerKey.add(ans2);
   AnswerKey.add(ans3);
   AnswerKey.add(ans4);
  
   System.out.println("List of Students of Grade 0");
   for(Student std : completeStudentList){
   if(std.getGradeLevel()==0){
   System.out.println(std.getStudentfirstName());
   studentnames.add(std.getStudentfirstName());
   }
   }
   test(studentnames,AnswerKey,sc);
  
}
  
if(gradeLevel==1){
   System.out.println("Please find Question Paper");
   int x=random.nextInt((20 - 0) + 1 + 0);
   int y=random.nextInt((20 - 0) + 1 + 0);
   System.out.println("Question 1 :"+add(x, y)+" = ----------------");
   int ans1=x+y;
   x=random.nextInt((20 - 0) + 1 + 0);
   y=random.nextInt((20 - 0) + 1 + 0);
   System.out.println("Question 2 :"+sub(x,y) +" = ----------------");
   int ans2=x-y;
   x=random.nextInt((20 - 0) + 1 + 0);
   y=random.nextInt((20 - 0) + 1 + 0);
   System.out.println("Question 3 :"+mul(x,y) +" = ----------------");
   int ans3 = x*y;
   x=random.nextInt((20 - 0) + 1 + 0);
   y=random.nextInt((20 - 0) + 1 + 0);
   System.out.println("Question 4 :"+div(random.nextInt((10 - 0) + 1 + 0), random.nextInt((10 - 0) + 1 + 0)) +" = ----------------");
   int ans4 = x/y;
   AnswerKey.add(ans1);
   AnswerKey.add(ans2);
   AnswerKey.add(ans3);
   AnswerKey.add(ans4);
  
   System.out.println("List of Students of Grade 1");
   for(Student std : completeStudentList){
   if(std.getGradeLevel()==1){
   System.out.println(std.getStudentfirstName());
   studentnames.add(std.getStudentfirstName());
   }
   }
   test(studentnames,AnswerKey,sc);
  
}
if(gradeLevel==2){
   System.out.println("Please find Question Paper");
   int x=random.nextInt((30 - 0) + 1 + 0);
   int y=random.nextInt((30 - 0) + 1 + 0);
   System.out.println("Question 1 :"+add(x, y)+" = ----------------");
   int ans1=x+y;
   x=random.nextInt((30 - 0) + 1 + 0);
   y=random.nextInt((30 - 0) + 1 + 0);
   System.out.println("Question 2 :"+sub(x,y) +" = ----------------");
   int ans2=x-y;
   x=random.nextInt((30 - 0) + 1 + 0);
   y=random.nextInt((30 - 0) + 1 + 0);
   System.out.println("Question 3 :"+mul(x,y) +" = ----------------");
   int ans3 = x*y;
   x=random.nextInt((30 - 0) + 1 + 0);
   y=random.nextInt((30 - 0) + 1 + 0);
   System.out.println("Question 4 :"+div(random.nextInt((10 - 0) + 1 + 0), random.nextInt((10 - 0) + 1 + 0)) +" = ----------------");
   int ans4 = x/y;
   AnswerKey.add(ans1);
   AnswerKey.add(ans2);
   AnswerKey.add(ans3);
   AnswerKey.add(ans4);
  
   System.out.println("List of Students of Grade 2");
   for(Student std : completeStudentList){
   if(std.getGradeLevel()==2){
   System.out.println(std.getStudentfirstName());
   studentnames.add(std.getStudentfirstName());
   }
   }
   test(studentnames,AnswerKey,sc);
  
}
  
}
public static void test(List<String> studentnames, List<Integer> answerKey, Scanner sc) {
  
for(String str : studentnames){
int scorce = 0;
System.out.println("Test for "+str);
for(int i=0;i<4;i++){
int j=i+1;
System.out.println("Response for Ques :"+j);
int ans = sc.nextInt();
if(ans==answerKey.get(0)){
scorce++;
}
}
System.out.println("Your Scorce : "+scorce);
}
}
public static String add( int a, int b ){
return a+"+"+b;
}
public static String sub(int a, int b){
  
return a+"-"+b;
}
public static String mul(int a, int b){
  
return a+"*"+b;
}
public static String div(int a, int b){
  
return a+"/"+b;
}
}
///////////////  Student.java
public class Student {

String studentfirstName;
String studentLastName;
int gradeLevel;
public String getStudentfirstName() {
return studentfirstName;
}
public void setStudentfirstName(String studentfirstName) {
this.studentfirstName = studentfirstName;
}
public String getStudentLastName() {
return studentLastName;
}
public void setStudentLastName(String studentLastName) {
this.studentLastName = studentLastName;
}
public int getGradeLevel() {
return gradeLevel;
}
public void setGradeLevel(int gradeLevel) {
this.gradeLevel = gradeLevel;
}
@Override
public String toString() {
return " Student [studentfirstName= " + studentfirstName + ", studentLastName=" + studentLastName + ", gradeLevel="
+ gradeLevel + "]";
}

}

///////// Teacher.java
import java.util.List;
public class Teacher {
String TeacherFirstName;
@Override
public String toString() {
return "Teacher [TeacherFirstName=" + TeacherFirstName + ", TeacherLastName=" + TeacherLastName + ", students="
+ students + "]";
}
public String getTeacherFirstName() {
return TeacherFirstName;
}
public void setTeacherFirstName(String teacherFirstName) {
TeacherFirstName = teacherFirstName;
}
public String getTeacherLastName() {
return TeacherLastName;
}
public void setTeacherLastName(String teacherLastName) {
TeacherLastName = teacherLastName;
}
public List<Student> getStudents() {
return students;
}
public void setStudents(List<Student> students) {
this.students = students;
}
String TeacherLastName;
List<Student> students;
}

////////////// Parent.java
import java.util.List;
public class Parent {
String ParentFirstName;
String ParentLastName;
List<Student> students;
public String getParentFirstName() {
return ParentFirstName;
}
public void setParentFirstName(String parentFirstName) {
ParentFirstName = parentFirstName;
}
public String getParentLastName() {
return ParentLastName;
}
public void setParentLastName(String parentLastName) {
ParentLastName = parentLastName;
}
public List<Student> getStudents() {
return students;
}
public void setStudents(List<Student> students) {
this.students = students;
}
@Override
public String toString() {
return "Parent [ParentFirstName=" + ParentFirstName + ", ParentLastName=" + ParentLastName + ", students="
+ students + "]";
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote