Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

needs to be in c++ for all 3 please and thank you A. Write a complete C++ program that generates 3 random numbers in the

needs to be in c++ for all 3 please and thank you

image text in transcribedimage text in transcribed

A. Write a complete C++ program that generates 3 random numbers in the range [0; 100) and prints them to the console. If the sum of generated numbers is greater than 100, program should print the largest even number among the three numbers. If the sum is less or equal 100 or there are no even numbers between the generated numbers, program should print an appropriate message. Here are some sample runs: 11 2 78 The sum is not greater than 100 43 67 7 There are no even numbers 34 67 6 The largest even number is 34 B. Write a complete C++ program that prompts the user to enter a string with five lowercase letters and determines whether it is a palindrome or not. You can assume that the length of the entered string is always 5. Here is a sample run: Enter a string with five lowercase letters: kayak It is a palindrome!!! Or Enter a string with five lowercase letters: table It is not a palindrome!!! C. Write a program that displays the following table (note that 1 meter is 3.280 feet). You must also use setw(10) to specify the number of columns for each column. Use the left manipulator to left-justify your output and setprecision() manipulator to specify number of digits. Meters 1 2 Feet 3.280 6.560 14 15 45.920 49.200

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_2

Step: 3

blur-text-image_3

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

Students also viewed these Databases questions