Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java 14.1 Prog 1: Input & Output (1) Input one integer and output the input, the squared, and cubed. (2 pts) Enter integer: 4 You

Java

image text in transcribedimage text in transcribed

14.1 Prog 1: Input & Output (1) Input one integer and output the input, the squared, and cubed. (2 pts) Enter integer: 4 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: 5.89 You entered: 5.89 whole number of 5.89 is 5 (3) Input and output String using next() method(2 pts) Enter statement Great Semester! You entered: Great Semester! (3) Input and output String using nextLine() method(2 pts) Enter statement I love programming! You entered: I love programming! (4) Prompt the user to input a character and output the character and ASCII of the character Enter character You entered: a ASCII number of a is 97 LAB 14.1.1: Prog 1: Input & Output ACTIVITY Prog1_InputOutput.java 3 input and output different data types 4 */ 7 import java.util.*; 10 public class Prog1_InputOutput{ 11 public static void main (String[] arg){ //declare variables //input output integer //input output real number //input output String use next() //input output String use nextLine()| //input output character 12 13 14 15 16 17 18

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems X Special Issue On Database And Expert Systems Applications Lncs 8220

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2013th Edition

3642412203, 978-3642412202

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago