Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART II: Lab Excercises On the desktop, create a folder named Lab 1 . Exercise 1 - Printing a Statement as a Pattern Exercise Objectives

PART II: Lab Excercises
On the desktop, create a folder named Lab1.
Exercise 1- Printing a Statement as a Pattern
Exercise Objectives
Using simple output statements
Problem Description
Inside "Lab1" folder, create a project named "Lab1Ex1". Use this project to write and run a C program that produces the output shown in the sample below (using only the techniques you learnt so far).
Sample Output
Exercise 2- Volume of Cylinder
Exercise Objectives
Using simple input and output statements
Using arithmetic operators
Using comments
Problem Description
Inside "Lab1" folder, create a project named "Lab1Ex2".
Add your name and your University ID as a comment in the top of your source program file.
B Use this project to develop a C program that asks a user to input a circle's Radius (r), and use these numbers to compute and print the circumference of the circle, which is computed using the following equation, where )=(3.14 :
C=2r
r
Radius
Enter value
Sample Output
Enter the radius of circumference:
3.5
C=21.98
Exercise 3-Division by 5 and Remainder
Exercise Objectives
Using simple input and output statements
Using arithmetic operators
Problem Description
Inside "Lab1" folder, create a project named "Lab1Ex3". Use this project to develop a C program that performs the following:
Reads in a 2-digit integer.
Prints the result of dividing the number by 3 and the remainder of division by 3 as shown in the sample output.
Sample Output
Enter an integer consists of 2-digits: 17
173=5
reminder is 2
image text in transcribed

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

Compare different frameworks for HRD evaluation

Answered: 1 week ago