Docsity

CS1121 Assignment 5: Finding Odd Divisors and Handling User Input in C++, Exercises of Computer Engineering and Programming

Toggle sidebar
bg1
Muhammad Ali Jinnah University, Islamabad Campus
Computer Programming (CS1121)
Assignment 5
Instructor: Quratulain Siddiqui
Submission Date: 27thth March 2012
Note: Read and analyze the following problem statement(s), extract information for
designing the solution. Write appropriate C++ program & explain your proposed
solution step by step. Your submission files must be in a folder and named by your
Registration No. e.g. EE113123-student name
1. Divisor is a factor which divides an integer completely i.e. remainder is zero.
Write a program that prints only odd divisors in the range of 100 of any
Integral value.
2. Write a program to check if the user given value is greater than or equal to 10.
1. If the value is greater than 10 increment value by 4.
2. If value is equal to 10 decrement by 2.
3. If value is less than 10 take another value.
4. Repeat the process N no. of times. Where N is an integer value taken
from user.(Bonus)
docsity.com

Partial preview of the text

Download CS1121 Assignment 5: Finding Odd Divisors and Handling User Input in C++ and more Exercises Computer Engineering and Programming in PDF only on Docsity!

Muhammad Ali Jinnah University, Islamabad Campus

Computer Programming (CS1121)

Assignment 5

Instructor: Quratulain Siddiqui

Submission Date: 27thth^ March 2012

Note: Read and analyze the following problem statement(s), extract information for

designing the solution. Write appropriate C++ program & explain your proposed solution step by step. Your submission files must be in a folder and named by your Registration No. e.g. EE113123-student name

1. Divisor is a factor which divides an integer completely i.e. remainder is zero.

Write a program that prints only odd divisors in the range of 100 of any Integral value.

  1. Write a program to check if the user given value is greater than or equal to 10.
    1. If the value is greater than 10 increment value by 4.
    2. If value is equal to 10 decrement by 2.
    3. If value is less than 10 take another value.
    4. Repeat the process N no. of times. Where N is an integer value taken from user.(Bonus)

docsity.com