Question: 1 2 . 1 Prog 1 : Input & Output due 8 / 3 1 / 2 4 ( 1 ) Input one integer and

12.1 Prog 1: Input & Output due 8/31/24
(1) Input one integer and output the input, the squared, and cubed. (2 pts)
Enter integer:
You entered: 4
4 squared is 16
4 cubed is 64
(2) Input a real number and converter the real number to integer, the output boht numbers (2 pts)
Enter real number:
You entered: 5.89
whole number of 5.89 is 5
(3) Input and output String using next() method(2 pts)
Enter statement
You entered:
Great
Semester!
(4) Input and output String using nextLine() method(2 pts)
Enter statement
You entered: I love programming!
(5) Prompt the user to input a character and output the character and ASCII of the character (2 pts)
Enter character
You entered: a
ASCII number of a is 97
591350.4054574.qx3zqy7
lab activity
12.1.1: Prog 1: Input & Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!