Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java project 11,12,14,15 11._Write Java programs for the following: a. To take the input of a number and then find and display the following: i.

image text in transcribedjava project 11,12,14,15

11._Write Java programs for the following: a. To take the input of a number and then find and display the following: i. sum of even digits ii. sum of odd digits 7x3 ii. total number of even digits iv. total number of odd digits b. To take the input of a number and then check whether it is an Armstrong number or not, ie. the sum of the cubes of it's digits is equal to the number itself. For example 13 + 33 + 53 = 153 c. To take the input of a number and then find and display the reverse of a number d. To take the input of two numbers and then find and display their HCF (highest common factor) e. To take the input of two numbers and then find and display their LCM (Lowest common multiple) f. To take the input of a number n and then find the sum of all even numbers between 1 and n g. To take the input of a number n and then find the sum of all odd numbers between1 and n 12. Write Java program to find the sum of the Fibonacci series for n terms, where n is a number entered by the user 3 0 + 1 + 1 + 2 + 3 + 5 + ,.. /Fibonacci Series 13. Write Java programs to find the sum of the following series for n terms, where n is a number entered by the user. The program should also take the input of a numberx. 3 14. Write Java programs for displaying the following patterns for n rows on the screen, where n is a number entered by the user: 2x3 12 123 1234 4321 321 32

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 3 Lnai 8726

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448440, 978-3662448441

More Books

Students also viewed these Databases questions