assignment1

advertisement
‫المملكة العربية السعودية‬
‫وزارة التعليم العالي‬
‫جامعة المجمعة‬
‫كلية علوم الحاسب وتقنية المعلومات‬
Kingdom of Saudi Arabia
Ministry of Higher Education
Majmaah University
Computer Science and Information Technology College
Assignment Due by Mon March 9
CS110 Lab
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. Late assignment won’t be accepted.
2. If there is any question, please ask me via s.alshuhail@mu.edu.sa
3. Submit your assignment as a hardcopy at my 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 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