You are on page 1of 2

Assignment 0

Install and get familiar with Visual Studio or Dev C++.


1. Write a C++ program that reads three scores of a student in three tests.
Compute and display the largest score.

2. Write a C++ program that takes and validates positive integer number between 0 and
99999 (inclusive) to notify the user with the message “One Single Digit” if the number
has only one digit, “Two Big Digits” if the number has two digits, “Three Big Digits”, if
the number has three digits, or “More and more digits”, if the number has more than
three digits.

3. Write a C++ program (Use for loop statement) that produces a table
showing the temperature equivalents in degrees Fahrenheit and degrees in
Celsius. Let the user enter the starting, ending, and step values. Start value
not less than 50 and not more than 200. Use the formula:
celsTemp = 5.0/9.0 (fahrenTemp – 32.00)
For example: start value=50, end value=100, and step value=10, the
table should look like the following.
================================
Fahrenheit Celsius
50 10
60 16
….. …..
================================

Note: use for loop statement

Due Date: 16 February 2023


Book a zoom meeting with Dr.Amr Badreldin to present and demonstrate your
assignment.
Do not send your assignment by email or WhatsApp.

You might also like