Directly copy the source code and paste into the Word file. Screenshot of running result must...

60.1K

Verified Solution

Question

Electrical Engineering

Directly copy the source code and paste into the Wordfile. Screenshot of running result must be presented.

1. (20 points) Write the “Hello,world!” program.

2. (30 points) Write a program to calculate the sum from -5to10. Use the for loop to do thecalculation.

3. (20 points) Write a complete C++ program that asks the userto enter the necessary information about the cylinder, calculatethe volume in a function (named ascalculate_vol, usingreference to pass the volume value out),then display the cylinder volume in mainfunction. The volume of cylinder is:

Vol_Cylinder = πr2h

Where π is 3.14159265, r is the radius, and h is the height.

4. (30 points) Declare a vectorcontainer. Using keyboard to input several integer numbers, say atleast six integer numbers; find thesmallest number and display theresult.

Answer & Explanation Solved by verified expert
4.1 Ratings (615 Votes)
Answer1 The    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students