Once you have Step 1 working properly, extend your program's capability by adding several lines that prompt the user for a second number and then prints the sum and product of the two numbers that were entered as shown in the sample below. Sample run Input: 4 Run: Enter an integer: 4 The triple of 4 is 12 The square of 4 is 16 Voila! Enter another integer: 6 (4 + 6) is 10 (4 * 6) is 24 That is all! When you work in Develop mode, remember to place 4 and 6 in separate lines under Enter program input (optional).
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Java
Your job is to write a program called BasicIO that will perform simple input/output and math operations. Complete your program by following the steps below.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images