Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN java 2. Convert the algorithm into a java program. Your program should: a. Take two numbers (choose suitable variable types and meaningful variable names).

IN javaimage text in transcribed

2. Convert the algorithm into a java program. Your program should: a. Take two numbers (choose suitable variable types and meaningful variable names). b. Display a countdown of numbers, starting from the smaller of the two number, going up to the larger number. c. Display the sum of all these numbers. d. Using loops show a star chart of the sum in rows of 10 stars. For example, if the sum (step 2c) is 24, the star chart will have three lines: first two lines with 10 stars and the third line with 4 stars. ********** 3. Submit the .txt and .java files in BlackBoard (DO NOT submit the .class file). ample output: 1 5 Countdown: 1 2 3 4 5 The sum from 1 to 5 is: 15 10 3 Countdown: 3 4 5 6 7 8 9 10 The sum from 3 to 10 is: 52 59 Countdown: 5 6 7 8 9 The sum from 5 to 9 is: 35 The star chart: The star chart: The star chart: * * * * * * * * * *

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

=+3. Why do I devote my creative energies to this organization?

Answered: 1 week ago