Introduction to Programming 40-153 
  CE Department- Sharif University of Technology 2 - Group 4 

  Main Menu
   Home
   Syllabus
   Assignments
   Grades
   Calendar
   Discussion Area
   Links
   Resources

Assignments

  exercise 10 Deadline: 1386/3/7  

1.Implement selection sort by means of pointers and then compare it to common selection sort.

2. define necessary records in order to implement an educational system. use union if it is required.

send them to sharifian@ce.sharif.edu


   Deadline: 1386/2/29  

Implement Hungman game. We talked about it in class.

Sajedi


  exercise 9 Deadline: 1386/2/24  

1.write a function that has the following output:

0 2 4 6  8  10
2 4 6 8 10 12  14
4 6 8 10 12 14 16 18
.
.
.
for 13 lines.

-------------------------
2. write a functions that finds an item from a sorted array( that has 10000 item) with minimum number of Comparison. if it was not in the array return ERROR
-------------------------

3.by means of arrays convert a number from decimal to binary.
-------------------------

send them by the deadline to sharifian@ce.sharif.edu


  exercise 8 Deadline: 1386/2/3  

دو عدد تصادفی صحیح بین 1 تا
n
تولید کنید و سپس با پیاده سازی تابع تقسیم مقدار خارج قسمت و باقیمانده حاصل از تقسیم عدد اول به دوم را بدست آورید.
متغییری که در آن مقدار عدد اول و دوم را قرار میگیرد  به صورت متغییر عمومی  تعریف شود و در بقیه ی توابع به صورت
extern
مورد استفاده قرار گیرد.


  exercise 7 Deadline: 1386/2/1  

‎1. Write a modular program that finds twin numbers (two prim numbers are twins if their ‎difference is 2).‎

‎2. Write a modular program that reads a text with following format from input.txt file ‎

Dear consul,‎

This letter is issued to support the request for a one Year Multiple Entry Non Immigrant ‎Visa Category “B” (Business), for Mr. [name].‎

We are planning to employ Mr. [name] as our [job description] from [date] subject to ‎approval of this visa and subsequent application for work permit.‎

Mr. [name] will be traveling frequently in and out of Thailand, so for this purpose he ‎needs a Multiple Entry Visa.‎

During his stay in Thailand our company agrees to pay all expenses related to our ‎business.‎

Yours sincerely,‎
EXAMPLE CO., LTD.‎

‎[Authorized signature]‎

Somchai Vittayu

Managing Director                 [Company seal stamps]‎



And then with a good user interface (you should yourself study about how to use ‎Graphical user interfaces in C++. Your user interface is very important for the grade you ‎receive) to receive the information in the brackets from the user and replace them with the ‎related brackets and edit the format of the text in order to don’t let any word to break ‎between two lines. You can have at most 41 characters in each line too.‎



Pay attention that you must give a complete document for each exercise(it  has 40% of your grade)


please send them according to the previouse formats to sharifian@ce.sharif.edu


  exercise 6:Prim Numbers Deadline: 1385/12/21  

Write a program that recives two numbers and returns all prim numbers between them.

please send them to "sharifian@ce.sharif.edu"


  exercise5: Deadline: 1385/12/19  

write a program that computes the value of exp(x) by using the formula:

                           exp(x) = 1 + (x/1!) + (x^2/2!) + (x^3/3!) + ... + (x^n/n!)


  exercise4: Deadline: 1385/12/7  

فلوچارتی بنویسید که تعداد ارقام یک عدد طبیعی را مشخص نماید


  exercise3: Deadline: 1385/12/7  

فلوچارت منطق برنامه ای را بنویسید که کوچکترین مضرب مشترک دو عدد را تعیین نماید


  exercise2: Deadline: 1385/12/5  

الگوریتم و فلوچارت تغییر مکان ارقام یک عدد از چپ به راست را بنویسید
برای مثال:
43795->59734


  exercise1: Deadline: 1385/12/5  

فلوچارتی بنویسید که یک عدد را از ورودی دریافت کرده و فاکتوریل آن را محاسبه نماید. سپس تعداد صفرهای سمت راست عدد حاصل را محاسبه نمایید


 This website is visited 7631 times since February 2007. Updated Tuesday 2007-05-22 11:31