1. Write a program that takes a two digit number and prints the number backwards.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

Java...run with eclipse

1. Write a program that takes a two digit number and prints the number backwards.
Write a program that inputs the radius of a circle as integer, the pi as a constant of type float
and prints the diameter, area and circumference of the circle. Use the following formulas:
diameter = 2 * radius
circumference = 2 * pi * radius
area = pi * radius?
Write a program that takes a five digit number and prints the number with space between. For
example: if the number is 23467,
the program prints 2 3 4 6 7.
Write a program that reads a String of 6 characters, use the length() to determine the length of
the string and charAt() to print each character separately.
Transcribed Image Text:1. Write a program that takes a two digit number and prints the number backwards. Write a program that inputs the radius of a circle as integer, the pi as a constant of type float and prints the diameter, area and circumference of the circle. Use the following formulas: diameter = 2 * radius circumference = 2 * pi * radius area = pi * radius? Write a program that takes a five digit number and prints the number with space between. For example: if the number is 23467, the program prints 2 3 4 6 7. Write a program that reads a String of 6 characters, use the length() to determine the length of the string and charAt() to print each character separately.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning