Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Program Must be in C and the compiler being used is Visual Studio 2015 , if possible please comment on each important line of
The Program Must be in C and the compiler being used is Visual Studio 2015 , if possible please comment on each important line of code explaining what is happening.
Task 1: Write a C program that given (by keyboard) a radius and a height, calculates the volume of a cone and displays it on the screen. a) b) Once the program in part a) is done, modify the program by writing a function calculator- style called coneVol transform and use it within the program. Take the opportunity to watch the video about MVS debugger and learn how to use it! Task 2: a) Write a C program in a single function main that reads an integer number from keyboard and respond to the questions i. is the number a multiple of 2? ii. Is the number a multiple of 3? iii. Is the number a multiple of 5? iv. Is the number a multiple of 7? By displaying on the screen a zero when the answer to the question is false or any other number when true (Hint: you can use the operator module)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started