Menu

(Solved) : 141 Prog 1 Input Output Java Programming Code Please 1 Input One Integer Output Input Squa Q43963403 . . .

14.1 Prog 1: Input & Output

java programming code please

(1) Input one integer and output the input, the squared, andcubed. (2 pts)

Enter integer:4You entered: 44 squared is 164 cubed is 64

(2) Input a real number and converter the real number to integer,the output boht numbers (2 pts)

Enter real number:5.89You entered: 5.89whole number of 5.89 is 5

(3) Input and output String using next() method(2 pts)

Enter statementGreat Semester!You entered: Great Semester!

(3) Input and output String using nextLine() method(2 pts)

Enter statementI love programming!You entered: I love programming!

(4) Prompt the user to input a character and output the characterand ASCII of the character (2 pts)

Enter characteraYou entered: aASCII number of a is 97

Expert Answer


Answer to 14.1 Prog 1: Input & Output java programming code please (1) Input one integer and output the input, the squared, and cu…

OR