Question: Problem 1: (Multiples) Write a program that inputs two integers and determines and prints if the first is a multiple of the second. [Hint: Use

 Problem 1: (Multiples) Write a program that inputs two integers and

Problem 1: (Multiples) Write a program that inputs two integers and determines and prints if the first is a multiple of the second. [Hint: Use the modulus operator.] Problem 2: (Digits of an Integer) Write a program that inputs a five-digit integer separates the integer into its individual digits and prints the digits separated from one another by three spaces each in reverse order. kuldse the integer division and modulus operators.] For example, if the user types in 42339, the program should print 93 3 2 4 Problem3: Circle Formulas) Write a program that reads the radius of a circle as a positive integer, and computes and prints the diameter, the circumference and the area. Use the value 3.14159 for PI Problem4: (Sides ofa Right Triangle) Write a program that reads three nonzero integers and determines and prints whether they could be the sides of a right triangle. [ Hint: Use Pythagorean formula, a*a +b*b c where a and b are sidel and side2 respectively, and c is the hypotenuse. Provide four examples, two for yes case and two for no case. Problem 5: (Geometric Sequence and Series ) Write a program to generate a geometric sequence with first term a-1, and common ratio r 0.5. Use a while loop to generate 10 numbers in the sequence. Also, find the finite sum of the resulting geometric series. C++ program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!