Motto: Mini-Project Based Learning



Students co-operated well in:
Using Spoken Tutorials, Video lecture from IIT-B, Regular home-work as a supplementary learning tool.
Lab-ia-2 as project based learning activity.



Monday, December 24, 2012

C - Assignment 2 and 3 - reg


Dear All,


As a part of assignment 2 and 3, it is highly recommended that you solve the programs mentioned in CAT 2 and 3 QPs on the machine and then paste your answers here<https://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=d...>,
along with answers of other optional questions also.


Tomorrow being 25th Dec, a holiday, you can finish off this activity by evening. Please do not blindly copy from you class-mates. Discuss, understand and then copy.


Your final marks of C shall be made known to you latest by 28th Dec, 2012.


Regards,
Mayur Patil

Saturday, December 22, 2012

IMPORTANT Lab Exam - reg


Dear All,

This is the message from COE - Controller of Examinations:

As there is a slight change in exam date/time and batch - you are required to kindly check the time-table displayed in CCF notice board, by Monday morning, without fail.

Kindly convey to your mates of A,B,C and D divisions.

Regards,
Mayur Patil 

Friday, December 21, 2012

Interactive session on C with Alumni - reg


Dear All,


The Dept. of Computer Science and Engineering has scheduled an interactive session on C, tomorrow i.e. 22/12/2012 from 2:00PM to 5:00 PM. Our alumni working in various MNCs shall be sharing their experience and answering any of your questions on the importance of C in today's industry. Please find a
document pasted below in this regard sent by Mr. Ravi Nankani (2007-2011 Batch).

Kindly convey this to all your mates of A,B,C and D divisions.

Attendance shall be taken.


Document by Mr. Ravi Nankani follows:


Hi All,

    This is regarding the importance of C in today's world. Let me ask a question first: How many of you use one of these: Windows, Linux or iPhone, Android phone. It will surprize you that all of this internally uses C.
Even facebook uses a PHP to C++ conversion utility.

C finds a lot of use in Device Driver Development, Embedded programming, Operating Systems, Realtime Operating Systems etc.. The routers, switches etc deployed in a network setup have their entire firmware running in C.


Job Market:
Most of the companies test candidates on knowledge of C. C offers you the power of controlling own memory management, ( which can be abused too ). I have met people in the industry who have been working on C for the last 20 years, and still find C fascinating.


Speed Comparison :
A program written in Java for a problem executed in 2.709 seconds. The same program written in C executed in 0.07 seconds. I am not saying Java is bad , Java can do some things C cant and vice versa, think of them like separate tools like a saw and hammer for different purposes.


C as a first programming language:
   A language like python, java etc can be the first language too, however you will find a lot of inbuilt functions to do the tasks for you. Doing everything manually eg. binary to decimal conversion and vice versa can help build invaluable logic, which can help solve many similar problems.

C is an amazing language to work with, and a language which has been around for more than most of the languages in computer science. It definitely should be on the resume of every engineer looking to program.

Cheers

Ravi

Document Ends here

Event Details:
Venue: CSE Dept. Seminar Hall
Time: 2:00 PM onwards
Mode: Online through Skype

CR's of divisions need to be present at 1:45 PM


Regards,
Mayur Patil 

Thursday, December 20, 2012

C - syllabus - CAT - 3 - reg


Dear All,


Please note the C syllabus for CAT-3:

2-D Arrays,
Strings,
Functions


Please convey the same to all your class-mates of A,B,C,D divisions.

Give your best !


Regards,
Mayur Patil

Wednesday, December 19, 2012

C - Lab Exam - reg


Dear Student Friends,


With respect to the above subject, please find a word - document below:

Please convey/forward this to your class-mates of A.B,C and D divisions.

Give your best !


Department of Computer Science and Engineering

S. D. M College of Engineering and Technology, Dharwad
End Semester Lab Examinations
Evaluation Scheme
Problem Solving and Programming in C (CS103)
Date – 26-12-2012 to 02-01-2013

Total Marks = 50

There are two programs to be executed. One from PART A and one from PART B.

The split up of marks is as follows:

Write up  – 8 Marks
· Execution – 35 Marks
PART A – 15 Marks
PART B – 20 Marks
· Viva / voce - 7 Marks
· Only one change either from PART A or PART B is allowed.
· Change of question is allowed within half an hour of commencement of examination.
· 10 Marks will be deducted for change of question.

INSTRUCTIONS TO CANDIDATES

You shall be asked to pick 1 question from PART A and 1 from PART B.
You are supposed to fill all the required details on the face sheet of the answer sheet.
You are supposed to write flowchart/algorithm and program for the chosen questions.
The time given for the write-up is 45 minutes.
You are allowed to start typing the program on the machine only after your write-up is reviewed and signed by the examiner.
Cheating in any kind will be reported to higher authorities immediately.
Please bring your own pen, pencil, eraser, and sharpener.

   Course Instructors – Prof. G.A. Raddar (A Div)
       Prof. Mayur. B. Patil (B Div)
    Prof. R. N. Yadwad (C Div)
Prof. Anand S P (D Div)



Regards,
Mayur Patil

Friday, December 14, 2012

Entry Form


Dear All,


Please take time out of your schedule and fill the below form with an "Engineering Problem Scenario".


Ex: Develop a program which accepts Staff-ID, Name, Dept, Salary from the
user, saves in a file. The program should then read the same file and find
the name of the staff who draws highest salary or who belongs to CSE dept
etc using functions.


The proposed "problem statement" should cover the concepts of
1) Strings
2) Arrays
3) Structures
4) Functions
5) Loops
6) Decision Making constructs - if/else - switch etc


Every student has to make atleast one entry.

Please make your entries before - Friday, 14th Dec, 2012 (today)

02 CTA marks shall be allotted for this activity.

Click here to access the form (Google Spread
Sheet)<https://docs.google.com/spreadsheet/ccc?key=0AvPic5Th8MOmdFUwZDZSZXk3...>


Regards,
Mayur Patil 

Thursday, December 13, 2012

C : Lab IA - 2 - reg


Dear All,


As you are ware, Lab IA -2 is scheduled on 15th Dec, 2012 (Saturday) from 2:00 PM to 5:00 PM.

Topics: Till date (files)

Only one question per student, 3 Hrs duration.
Venue: DBMS lab (tentatively)

You can expect questions like this, to be solved in a group of 2.

Develop a program which accepts Staff-ID, Name, Dept, Salary from the user, saves in a file. The program should then read the file and find the name of the staff who draws highest salary or who belongs to CSE dept etc using functions.


The program checks the knowledge of
1) Strings
2) Arrays
3) Structures
4) Functions
5) Loops
6) Decision Making constructs etc

Execute more programs on functions, structures and files.


Regards,
Mayur Patil 

Tuesday, December 11, 2012

Special Lab On 'C' Functions


Dear Friends,


Please make yourself available tomorrow (12/12/12) at 8:00 AM in CAD lab
for a special lab on:

1) Functions
2) Structures (As discussed in today's class)
3) Any other pending programs

Attendance is compulsory.


Regards,
Mayur Patil 

Wednesday, December 5, 2012

C - Few Notifications


Dear Friends,


We are left with only 15 days for CAT - 3 (20, 21, 22nd Dec, 2012)

Tentative syllabus is as under:

   - Arrays - Complete
   - Strings and Character arrays
   - Functions
   - Structures and Unions
   - Files

Final lab exams shall commence from 26th Dec, 2012.

Towards our preparations in this regard,
(tentative)
Lab - IA - 2 is scheduled on 15th Dec, Saturday, 2012 (2:00PM - 6:00PM) - DBMS lab - Both Batches
You need to bring lab - observation book complete in all respects, up-to date for Lab IA - 2.

Special lab on 8th, Dec, 2012 (Saturday) 2:00 to 6:00. Topic - functions

You are required to finish-off all the pending programs in next 2 days only i.e (6th and 7th Dec, 2012).
Please take time out of your busy schedule for the extra labs and practice more programs from exercise of Prof. Balagurusamy.


Regards,
Mayur Patil 

Thursday, November 29, 2012

Video Sessions - reg


Dear All,

To facilitate 'C' learning students with better thinking and logic building, also to support slow-learners to grasp 'C' programming skills, under the directions of Head - CSE, the following video tutorial sessions
have been planned.


*Tentative Schedule:*

8th December, 2012 (Saturday) Morning, 8:00AM to 10:30AM - Two Videos on C by IIT Bombay 10th December, 2012 (Monday) Afternoon, 2:30PM to 5:30PM - Next two Videos on C by IIT Bombay
12th December, 2012 (Wednesday) Morning, 8:00AM to 10:00AM - Next two Videos on C by IIT Bombay
15th December, 2012 (Saturday) Morning, 8:00AM to 10:30AM - Next two Videos on C by IIT Bombay
17th December, 2012 (Monday) Afternoon, 2:30PM to 5:30PM - Next two Videos on C by IIT Bombay
19th December, 2012 (Wednesday) Morning, 8:00AM to 10:30AM - Next two Videos on C by IIT Bombay


Seating arrangements shall be made in CSE seminar hall (mostly, if it is available) or else in your class room.

Every video is approximately of 1 hour.


*You just need to sit and watch the Movie and attendance is compulsory*.

There are actually 32 videos; Current schedule is only for 12 videos. A feedback shall be taken after 12 videos and further plans shall be made under the guidance of Head - CSE.

CR's are requested to co-operate in making arrangements.


Regards,
Mayur Patil

Tuesday, November 27, 2012

Extra Lab Timings


Dear All,

Please Note: CCF "C" lab (where you do your regular C lab) is free tomorrow from 8:00AM to 10:00 AM.

Those who want that lab to be kept open from 5:00PM to 7:00PM also, may kindly give a request letter addressed to *CCF Incharge*, duly signed by your class-mates.

Practice more number of programs in these extra slots.

Regards,
Mayur Patil 

C - Lab IA - 1


Dear All,

Please prepare yourselves for the Lab IA - 1, scheduled as below:

28/Nov/12 - B2 - 2:00 - 5:00

30/Nov/12 - B1 - 2:00 - 5:00

Regards,
Mayur Patil

Thursday, November 22, 2012

Few Announcements


Dear All,


Please Note:


*Tomorrow's Class/Lab:*


Tomorrow's (22/Nov/12) 'C' class, from 12:30 to 1:30 is postponed !

Lab for B1 Batch: Please follow B2 batch programs.


*Syllabus for CAT-2:*
As already discussed the topics are: Switch, Conditional Operators, Loops, Arrays

To gain command over the above topics, please execute more number of programs from different sources - books, internet, friends of other div, seniors etc

**
*Spoken Tutorials - Update:
*Considering the request made by many of your class-mates*, *the last date for submission of assignment is postponed till 27th Nov, 2012. Kindly take time out of your busy schedule and fill* C - Spoken Tutorial - Assignment Form<https://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=d...>

Based on the inputs received from Head - CSE, extra practice labs are scheduled in next week. Other details shall be made known soon.


Tips:
*To reduce stress, tension during CAT-2 for all subjects, start your
preparations now itself. *


*Regards,
Mayur Patil*

Sunday, November 18, 2012

Assignment -1 : CAT -1 Solutions


Dear All,

Please mail (attach) your assignments (CAT -1 solutions) as a reply to this mail only.

Regards,
Mayur Patil

Thursday, November 15, 2012

Learn coding on your own


Dear All,

Please take time and explore this article, published in Deccan Herald on 15th Nov , 2012 -
http://www.deccanherald.com/content/291917/learn-coding-your-own.html

Regards,
Mayur Patil 

Wednesday, November 14, 2012

C - Spoken Tutorial - Assignment Form Options


Dear All,

Please find the link to C - Spoken Tutorial - Assignment
Form*<https://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=d...>
.

Forward the same to your class-mates who are yet to join this group.

Wish you a happy Diwali.

Saturday, October 20, 2012

LAB OBSERVATION Book


Hi All,

You are required to complete your LAB OBSERVATION book mentioning

            Date

            Problem Definition

            Flow-Chart

            Program

            Output

for all the programs done till date – 21/Nov/2012

Regards,

Mayur Patil 

C - Home Work


Please get the Spoken Tutorials videos from your friends who have copied from us and go through all videos in this order only, as below:


1) First C Program
2) First C Plus Plus Program
3) Tokens in C
4) Functions
5) Scope of variables
6) Check the conditions
7) Increment and Decrement Operators
8) Arithmetic Operators
9) Relational Operators
10) Logical Operators


The sequence mentioned is as recommended by IIT Bombay Spoken Tutorial team only.


If you want, you can download many such Free and Open Source Software videos from - http://spoken-tutorial.org/New


Please also go through and solve all the lab term works performed by your friends of A,C and D divisions. PFA a document on this regard.

Most of them are similar to what we have done in the lab.


Please share this mail with your class-mates.


Program list for the Labs
Div: D

Week 1st: Basic command execution
ΓΌ1 mkdir
cd
cd ..
vi
cat
tree
ls

Week 2nd: Simple C Programs:

C Program to print “Hello World” message.
C Program to find the addition of 2 numbers
C Program to find the subtraction of 2 numbers
C Program to find the multiplication of 2 numbers
C Program to find the division of 2 numbers
C Program to find the volume of a cylinder (vol=2*pi*r*r*h)
C Program to find the area and perimeter of the square (area=a*a perimeter=4*a)

Week 3rd: Programs on scanf statements:

C Program to read 2 values and do arithmetic operations.
C Program to read a side and find area, perimeter of a square.
C Program to read length and breadth and find area, perimeter of a rectangle.
C Program to read radius and find the area, perimeter of a circle.
C Program to read three sides and find the area of a triangle.
 area = sqrt(s*(s-a)*(s-b)*(s-c)) where s= (a+b+c)/2
C Program to convert Celsius into Fahrenheit and visa versa (c=5/9(f-32) )
C Program to read the values for a, b and c. evaluate & print the result for the expression:   c = a2+b2

Week 4th: Programs on evaluation of simple expressions:

Write a C program to evaluate the following expressions for the given a=3, b=4, c=1 and d=2.
a) ans = a2 + √ (b2 + c3)
b) ans1= √ (b2 – 4ac) / 2a
Write a C program to evaluate and print the values for a, b, c and d. (given a=2, b=1, c=3 and d=3)
c) c = a++ + ++b
d) b= ++a – b ++
e) a= d++ - b - -
f) d= --a + c - -
Write C program to convert a total number of days in months and days.


Write a C program to implement the following operators:
g) relational operator
h) conditional operator
i) logical operator

 Write a C program to implement the following operators:
j) Left shift
k) Right shift
l) Bitwise AND
m) Bitwise OR


Week 5th: Programs on Conditional statements

Write a C program to check whether a given number is even or odd using if else conditional statement.

Write a C program to find the biggest of 3 numbers using nested if else statement.

Write a C program to print the colors with respect to its color codes (given 1: RED, 2: GREEN, 3: WHITE and other: YELLOW) using nested if else statement.

Write a C program to find the roots of a quadratic equation ax2+bx+c=0 for all possible combinations of a, b and c. (using else if statement)
(Note: x= -b ±√ (b2-4ac) / 2a)
b2 - 4ac > 0      the roots are real and unequal
b2 - 4ac = 0      the roots are real and equal.  i.e   x=-b / 2a
b2 - 4ac < 0      the roots are imaginary.  i.e x=-b / 2a ± i √ (b2-4ac) / 2a)

Write a C program to print the grades of a student based on the marks obtained: (using switch statement)


Average marks Grade  
80 – 100 Honors  
60 – 79 First Class  
50 – 59 Second Class  
0 – 49 Fail

Write a C program for the following:
An electric distributor company charges its domestic consumers as follows:

Consumption in units Rate of Charge  
0 to 200 Rs. 0.50 per unit  
201 to 400 Rs 100 + Rs 0.65 per unit excess of 200  
401 to 600 Rs 230 + Rs 0.80 per unit excess of 400  
600 and above Rs 425 + Rs 1.25 per unit excess of 600

Print the amount to be paid by the customer. (Using else if ladder)


Week 6th: Programs on Decision making and looping

Write a C Program to find the sum of first n natural numbers using while loop.

Write a C Program print multiplication table starts with 1X1 and ends with 5X5 using do while loop.

Write a C Program to print multiplication table starts with 1X1 and ends with 10X10 using for loop.

Write a C Program to print GCD and LCM of 2 non negative integers.

Write a C Program to generate upto nth term in Fibonacci series.

Write a C Program to print all prime numbers upto 50.

Wednesday, October 17, 2012

No C Class On Thursday - 18.Oct.2012


Dear All,

There wont be *C* class on 18.Oct.2012 , Thursday, as I shall be out of Station on official work.

If you are interested, you can request through your CR, to any other faculty to engage that class from 11:30AM onwards.

(Please do not make noise on the corridor after finishing your class from 10:30 to 11:30AM.)

Please inform your class-mates.

Tuesday, October 16, 2012

Sample Programs on if-else forms


Dear All,


PF below 10 problem statements to check your understanding on if-else concept.
Please share with your class-mates.


“if – else” forms:

1) if (expression)
     statement;

OR

2) if (expression)
    {
     Block of statements;
   }

OR

3) if (expression)
    {
     Block of statements;
    }
else
  {
    Block of statements;
  }

OR

4) if (expression)
     {
      Block of statements;
     }
   else if(expression)
    {
     Block of statements;
    }
else
  {
    Block of statements;
  }













“if – else” problem definitions:

1) Write a C program to find the larger of two numbers.

2) Write a C program to find the largest of three numbers.

3) Write a C program to check whether a number is even or odd.

4) Write a C program to find the electricity bill given the units consumed under the following conditions:
   Units                            Charge
0 – 100  Rs. 0.85 per unit.
101 – 200  Rs. 0.95 per unit over and above 100 units
> 200  Rs. 1.05 per unit over and above 200 units.

                     In addition to the above charge, the minimum charge of Rs. 100/-
                     is incurred on every bill.

5) Write a C program to print the grade of the student given the marks in five subjects.
Percentage Grade
 < 35 F
36-50 E
51-59 D
60-69 C
70-79 B
80-89 A
>= 90 S
Note: The percentage is to be rounded off to the next nearest integer.

6) Write a C Program to simulate a simple calculator to perform
      basic arithmetic operations.

7) Write a C Program to check whether a 3-digit number is Armstrong Number or not. Note: An Armstrong Number is one where in cubes of individual digits is equal to the given number.

8) Write a C Program to check whether three numbers entered are Pythagorean Triplets or not.


9) Write a program to read two integer values m and n and to decide and print whether m is multiple of n.

10) Write a program to read three values using scanf statement and print the following results:
     (a)Sum of the values
     (b) Average of the three values
  (c) Largest of the three
(d) Smallest of the three.