Quiz #1

Hello,

I want to share with you my first quiz in this course.

Instructions:

1. Create a file called prog1.cpp Write a program that asks the user for two values (radius, height) of type float and prints the volume (V = ¶ r2 * h) of a cylinder with that radius/height as a float.

2. Create a file called prog2.cpp Ask the user for two integer numbers, then use those two numbers to calculate and print the following: * the product (multiplication) of the two numbers * the INTEGER division of the two numbers * the remainder from division of the two numbers

3. The same as #2 but use float numbers instead and name it pro3.cpp. There will be no remainder, so show the result of addition, subtraction, multiplication and division.

IMG_8471
IMG_8472

I made the quiz with a little pressure but I felt fine because I knew how to do the code without problems.

I want to share with you the codes:

Code 1: Here

Code 2: Here

Code 3: Here

See you in my next post!

Top image by: https://www.flickr.com/photos/26847486@N05/5287178509/in/photolist-94daYa-qNTXMy-9UdKTi-srqxkk-7wnNp9-naipaE-GMXQi-8b8Ffs-njMZEQ-8hi2ar-6ssJgm-9bbVwt-7x4SkM-bCtPgw-9PmhGm-aXofxr-r1ngAT-892qm7-5VXBdg-9tYLcc-7Fs98z-9PUpqg-b7Re2D-dHBNGf-98kAyM-n1jeYS-nqLu7B-ndCG2b-bBUBX9-9FH18Y-aETdgM-4Qfhjs-5w6qPe-aSM4iv-6msWVv-2tsye-rZDYH1-sqwUMd-qc9vKZ-7yhueE-9QhtDc-7EX8yX-tggqhn-888bbH-88JqUR-7YHaXB-9bMXSZ-84Vpn5-4TGBcn-bREk4K

CC BY-SA 4.0 Quiz #1 by sercho93 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.