Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please, dont forget the flowchart with a jpeg, jpg or any image format. thank you For loops (30 pts): A) (10 pts) Write a

C++ please, dont forget the flowchart with a jpeg, jpg or any image format. thank you image text in transcribed
image text in transcribed
image text in transcribed
For loops (30 pts): A) (10 pts) Write a C++ program to display a table of values for side B, side H, angle (in degrees) and (in degrees) for the right triangle shown. Use a for loop to calculate H, and as side B from 2m to 20m in 2m increments. The output should be a table of values for B,H, and similar to the one shown below (no lines are required). Use 0 digits after the decimal point for B,3 digits after the decimal point for H, and 2 digits after the decimal point for , and . Turn in a printout of the program and a nrintout of the results. The table should be nicely aligned. B) (10 pts) Create a flowchart and write a C++ program that uses a for loop for Programming Exercise 5.53 on p. 203 (count the number of vowels and consonants in a string). - Tum in a printout of the program and a printout of the results. - Run the program for the example string in the text and for your full name. C) (10 pts) Create a flowchart and write a C ++ program that uses a for loop for Programming Exercise 5.5 on p. 194 (table of conversions from kilograms to pounds and pounds to kilograms): - Tum in a copy of the program and the results. (continued) 5.5 (Conversion from kilograms to pounds and pounds to kilograms) Write a program that displays the following tables side by side (note that 1 kilogram is 2.2 pounds): *5.53 (Count vowels and consonants) Assume letters A, E, I, 0, and U as the vowels. Write a program that prompts the user to enter a string and displays the number of vowels and consonants in the string. Enter a string: Programming is fun The number of vowels is 5 The number of consonants is 11

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

Students also viewed these Databases questions

Question

2. What should an employer do when facing an OSHA inspection?

Answered: 1 week ago