Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java 2. Write a program that calculates 1 + 3 + 5 + 7 + + 99 (40 pts) (on slides page 56) a.

In java
2. Write a program that calculates 1 + 3 + 5 + 7 + + 99 (40 pts) (on slides page 56)
a. By using for loop
b. By using while loop
c. By using do-while loop
3. Ask the user to enter an integer n (n 1). Write a program that calculates 1! + 2! + 3! + 4! + + n! (40 pts) (on slides page 57)
a. By using for loop
b. By using while loop
c. By using do-while loop Extra credits:
4. Write a program that displays the multiplication table shown as follows: (20 pts) (on slides page 58)
a. By using for loop
b. By using while loop
c. By using do-while loop

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago