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

Description Write a program that fulfills all the requirements below. The final

ID: 3700876 • Letter: D

Question

Description Write a program that fulfills all the requirements below. The final product shoulod include the pseudocode and flowchart for the entire program. Extra credit: Implement the program in a programming language of your choice. In order to receive the extra credit, the program must execute successfully and pass with test cases that you provide. Requirements . Variables of each data type o String, Integer, Real, Boolean . Must contain at least one type of calculation . Minimum of 3 non-main modules At least 2 decision structures IF, IF-ELSE, IF-ELSE IF or SELECT statement At least 1 type of loop WHILE, DO-WHILE, FOR/FOREACH At least 1 array

Explanation / Answer

//java code

Class A{

private int a;

private boolean b;

private String c;

public void increment (int a) {

System. out. println(" Please find the 10 increment values from "+a) ;

for(int i=0;i<=10;i++) {

a++;

int c[] =new int[10];

c[i] =a;

System.out.println(a);

}

}

public void uppercase(String c)

{

System. out. println ("upper case "+c. toUppercase) ;

}

public void addition(int a, int b) {

int c = a+b;

System.out.println("Sum =" +c) ;

}

}

Class B {

public void main (String args[] ) {

Scanner sc= new Scanner(system.in);

A a =new A() ;

System. out.println(" Please enter the number ") ;

int a =sc. nextInt() ;

a. increment(a) ;

System.out.println("Please enter String values to convert into uppercase" ) ;

String b =sc. next() ;

a.uppercase(b);

System.out.println("enter first number") ;

int c=sc.nextInt();

System.out.println("enter secound number");

int d=sc.nextInt();

a. addition(c, d) ;

}

}