Assignment_1

advertisement
Kingdom of Saudi Arabia
Ministry of Higher Education
Majmaah University
Computer Science and Information Technology College
‫المملكة العربية السعودية‬
‫وزارة التعليم العالي‬
‫جامعة المجمعة‬
‫كلية علوم الحاسب وتقنية المعلومات‬
Assignment Due by Thu Oct 23
Assignment 1

Write a complete C++ program to print your name and ID number.
Example of the output
Sara Ali , 434555555

Write a complete C++ program that asks the user to enter two numbers and prints the sum,
difference, product, quotient and remainder of the two numbers.
Example of the output
Enter two numbers: 20 5
The sum is 25
The difference is 15
The product is 100
The quotient is 4
The modulus is 0
Guidelines:
1. No Late assignment will be accepted be advised to submitted early.
2. If there is any question, please ask me via s.alshuhail@mu.edu.sa or
m.alshaya@mu.edu.sa.
3. Submit your assignment as a hardcopy at TA.Menan or TA.Shamma office.
4. After you make sure from your code copy it in a word document and make a
screen shot from your run screen.
1. Windows: press Fn + PrntScr then paste it in Painting apps and save it as
jpg.
2. Mac: press cmd+shift+4 then take a shot from the screen
5. Assignment score is 10.
1
Download