Question: Urgent need help please ( coding java) Rewrite the following without any type error(s): [6 pts] Output the 10% of the integer entered by the

Urgent need help please ( coding java)

Urgent need help please ( coding java) Rewrite the following without any

Rewrite the following without any type error(s): [6 pts] Output the 10% of the integer entered by the user. Example if c=14, the percentage is 1.4, Scanner in = new Scanner(System.in); int c = in.nextint(); System.out.print("The 10% of "+c+" is: "+(c*10/100)) Answer: [7 pts] Output the sum of the cubic value of each digit of a 2 digits integer entered by the user. Example if x=23, then the sum is 35. Scanner in = new Scanner(System.in); int x = in.nextInteger(); int y = x/10; int z=y/10; sum = Math.pow(y,3)+Math.power(2,3); System.out.print("Sum is: "+sum) Answer: [7 pts] Output the integer part of the double value entered by the user. Example if x=4.5, then the integer part is 4, Scanner in = new Scanner(System.in); Double x = in.nextdouble(); int r= int(x); System.out.print("The integer part of "+x+" is: "+r)

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!