Question: Section 2 : Q1. Write a java program to perform following task. (7 marks) 1. Read a 6 digit number from user. 2. Generate a

 Section 2 : Q1. Write a java program to perform following

Section 2 : Q1. Write a java program to perform following task. (7 marks) 1. Read a 6 digit number from user. 2. Generate a new number by adding the first and last 3 digits of the number. 3. Display the new number. Example: if user enters 123456 Output should be generated as sum of first 3 digits =1+2+3=6 sum of last 3 digits =4+5+6=15 Output =615 Q2. A program is needed to calculate the volume andld area of a cube based on user inputs. Fill in the IPO chart for this program

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 Databases Questions!