You are on page 1of 2

Faculty of Engineering

Course: Introduction to Computer Programming


Course Code: CSE021
Credit Hours: 3 CR.
Lecturer: Dr. Basma Hassan
Teacher Assistant: - Karim Sewilam
-Aya Abdelnaby
`
Sheet 02
Structure of C Program

Important Notes:
- Use Visual Studio 2019 to run your code and then write down the answer
in the sheet.
- All the programs should be written as full programs.
- Upload the Cpp file with your Pdf file.
- Write your Full Name and ID on both Cpp file and Pdf.
- You must submit the assignment as handwritten solution, if not, consider
this assignment not accepted.

Question 01:

Write a C Program to calculate the area of a circle, then print the


value of area.
(Note: This is a practice for understanding the input and output
operations)

Question 02:

Write a C Program to tell a farmer the possible number of


orange trees that he can grow on a certain area of land.
Given that each orange tree requires an area of 4m2.
(Note: This is a practice for the scan and print functions)

1
Question 03:

A student studied how to do very simple mathematical


operations at school was asked to make use of his programming
skills to write a C Program that multiply 1035 and 97412 then
add the first value to the output.
(Note: This is a practice for the arithmetic operations)

Question 04:

A user wants to make use of Amazon Black Friday Sales and


need to purchase an item. Write a C Program to help the user
select a sale item and then ask for a (valid) credit card data to
complete the purchase. If the user succeeded in purchase, please
send him a message for his successful transaction.
(Note: This is a practice for the if conditions)

You might also like