Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Old MathJax webview write it in java using netbeans please. a Write a program that reads from the user an inteper of any length. The

Old MathJax webview

image text in transcribed

write it in java using netbeans please.

image text in transcribed

a Write a program that reads from the user an inteper of any length. The program counts the number of digits in this integer and displays it. The program will create two integers out of this integer such that each integer is made of half of the original one. For example, if the user enters 65473, the resulting two integers are 65 and 73 and the digit 4 is dropped. If the user enters 3921, the resulting two integers are 39 and 21. Sample Run 1: Enter an integer: 63528 63528 is formed of 5 digits The two integers are 63 and 28 > Sample Run 2: Enter an integer: 776444 776444 is formed of 6 digits The two integers are 776 and 444 Sample Run 3: Enter an integer: 655006 655006 is formed of 6 digits The two integers are 655 and 6 Exercise Write a program that prompts the user to enter a set of integers, and then prints the count and the average of the even ind odd values have been read. The program ends when the user enters number 0 Sample run Enter a set of integers that enda by a: 2 3 4 6 g The count of even numbers is 3 The count ot odd numbers la 1 The average of even numbers is 4 The average of odd numbers in 3 Exercise Write program that prompts the user to input a positive integer . It should then display the multiplication table of the number (a) by the even numbers Sample run: Enter a positive integer: 4 The maltiplication table of 51 0.50 25-10 4.5=20 6.5-30

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago