UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

Similar documents
Subject: Computer Science

PROGRAMMING IN C AND C++:

Lab Manual. Program Design and File Structures (P): IT-219

Downloaded from

3 The L oop Control Structure

I Year MCA I Semester L T P To C FOUNDATIONS OF INFORMATION TECHNOLOGY

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Week 0. Net Salary =Earnings- deductions; Read the employee number, Basic Print employee Number, Earnings,Deductions and Net salary.

Suggestive List of C++ Programs

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

(i) Describe in detail about the classification of computers with their features and limitations(10)

Chapter 1. Computer Overview

Algorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm

KLiC C Programming. (KLiC Certificate in C Programming)

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

Questions Bank. 14) State any four advantages of using flow-chart

Question Bank (SPA SEM II)

PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm)

PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

Loops / Repetition Statements

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

Tribhuvan University Institute of Science and Technology 2065

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University

6-1 (Function). (Function) !*+!"#!, Function Description Example. natural logarithm of x (base e) rounds x to smallest integer not less than x

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session:

Write a java program to prints the count of odd and even no s entered.

x= suppose we want to calculate these large values 1) x= ) x= ) x=3 100 * ) x= ) 7) x=100!

GARDEN CITY UNIVERSITY. Bachelor of Computer Applications SEMESTER- I. Course: CONCEPTS OF PROGRAMMING USING C LANGUAGE CODE: 05ABCAR17111 CREDITS: 04

Practice problems Set 2

Manipulate expressions containing surds and rationalise denominators (A*) Able to simplify surds (A)

Exercises C-Programming

Examples for Algorithm,Pseduocode,Flowchart

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI

Confidence Level Red Amber Green

Add Subtract Multiply Divide

Class Book. Anita Straker, Tony Fisher, Rosalyn Hyde, Sue Jennings and Jonathan Longstaffe

(Following Paper ID and Roll No. to be filled by the student in the Answer Book)

Simplifying Square Root Expressions[In Class Version][Algebra 1 Honors].notebook August 26, Homework Assignment. Example 5 Example 6.

11.3 Function Prototypes

BCA-105 C Language What is C? History of C

BINARY SYSTEM. Binary system is used in digital systems because it is:

ANNA UNIVERSITY: CHENNAI B.E./B.Tech. DEGREE EXAMINATIONS, JAN Regulations First Semester (Common to All Branches )

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

Syllabus Aryabhatta National Maths Competition Group 1 & Group 2

Dr M Kasim A Jalil. Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson)

Expressions. Eric McCreath

Object Oriented Programming Using C++ Mathematics & Computing IET, Katunayake

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Section A Arithmetic ( 5) Exercise A

COMPUTER PROGRAMMING LAB

Lab ACN : C++ Programming Exercises

Mathematics Year 9-11 Skills and Knowledge Checklist. Name: Class: Set : Premier Date Year 9 MEG :

VALLIAMMAI ENGINEERING COLLEGE

MODULE 2: Branching and Looping

CORE JAVA TRAINING COURSE CONTENT

Multiple Choice Questions ( 1 mark)

CS321 Introduction To Numerical Methods

EASY

Hegarty Maths Clip Numbers List

DS: CS Computer Sc & Engg: IIT Kharagpur 1. roblem Set III. Goutam Biswas

Mathematics Curriculum

Angles and Polygons. Angles around a point, on a straight line and opposite angles. Angles in parallel lines (alt, corr and co-int angles)

CP I LAB MANUAL. Expt No 2 To Check Whether A Year Is A Leap Year Using if-else-if.

The Hyderabad Public School Begumpet, Hyderabad, A.P.

AQA GCSE Maths - Higher Self-Assessment Checklist

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

CSE123. Program Design and Modular Programming Functions 1-1

Integers are whole numbers; they include negative whole numbers and zero. For example -7, 0, 18 are integers, 1.5 is not.

C PROGRAMMING LAB MANUAL

Number Theory Open, Round 1 Test #101

Carnegie Learning Math Series Course 1, A Florida Standards Program. Chapter 1: Factors, Multiples, Primes, and Composites

Click on the topic to go to the page

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

Python lab session 1

Final Exam Review (Revised 3/16) Math MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

A Freshman C++ Programming Course

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

CSI31 Lecture 5. Topics: 3.1 Numeric Data Types 3.2 Using the Math Library 3.3 Accumulating Results: Factorial

Outline. 1 If Statement. 2 While Statement. 3 For Statement. 4 Nesting. 5 Applications. 6 Other Conditional and Loop Constructs 2 / 19

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition

Chapter 3 - Functions

ST MARY S COLLEGE FORM ONE COURSE OUTLINE MATHEMATICS. Term 1. Addition and subtraction. Multiplication and division facts

Mathematics Year 9-11 Skills and Knowledge Checklist. Name: Class: Set : 4 Date Year 9 MEG :

There are three questions on this exam. You have 2 hours to complete it. Please indent your program so that it is easy for the grader to read.

Mathematics Year 9-11 Skills and Knowledge Checklist. Name: Class: Set : 1 Date Year 9 MEG :

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104

Savio Salesian College. Mathematics Department

The transition: Each student passes half his store of candies to the right. students with an odd number of candies eat one.

Florida Math 0018 Correlation of the ALEKS course Florida Math 0018 to the Florida Mathematics Competencies - Lower

Mathematics GCSE 9 1 Higher Syllabus. Yes. Does the subject set according to ability? Skills Covered. Unit

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

Math 10- Chapter 2 Review

C- PROGRAMMING (3:0:0) Sub code : CS1C01/CS2C01 CIE : 50%Marks Hrs/week : 03 SEE : 50%Marks SEE Hrs : 03 Hours Max. Marks: 100 Course Outcomes:

Scope and Sequence: National Curriculum Mathematics from Haese Mathematics (4 7)

Transcription:

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS All programs need to be submitted on 7th Oct 206 by writing in hand written format in A4 sheet. Flowcharts, algorithms, source codes and outputs are required. All the programs need to be implemented using function. C Program to Print a Sentence 2. C Program to Print a Integer Entered by a User 3. C Program to Add Two Integers different function call. 4. C Program to Multiply two Floating Point Numbers 5. C Program to Find ASCII Value of a Character 6. C Program to Find Quotient and Remainder of Two Integers Entered by User 7. C Program to Find Size of int, float, double and char of Your System 8. C Program to Demonstrate the Working of Keyword long 9. C Program to Swap two Numbers without third variable 0. C Program to Swap two Numbers without third variable and arithmetic operator.. C Program to Check Whether a Number is Even or Odd 2. C Program to Check Vowel or Consonant using if else. 3. C Program to Check Vowel or Consonant using switch case. 4. C Program to Find the Largest Number Among Three Numbers using if else. 5. C Program to Find the Largest Number Among Three Numbers using ternary operator. 6. C Program to Find the Largest Number Among Five Numbers using ternary operator. 7. C program to Find all Roots of a Quadratic equation 8. C Program to Check Leap Year 9. C Program to Check Whether a Number is Positive or Negative or Zero. 20. C Program to Check Whether a Character is an Alphabet or not 2. C Program to Calculate Sum of Natural Numbers 22. C Program to Find Factorial of a Number using iterative function. 23. C program to Generate Multiplication Table 24. C Program to Display Fibonacci Series using iterative function. 25. C Program to Find HCF of two Numbers iterative function. 26. C Program to Find LCM of two Numbers iterative function. 27. C Program to Count Number of Digits of an Integer 28. C Program to Reverse a Number 29. C program to Calculate the Power of a Number 30. C Program to Check Whether a Number is Palindrome or Not 3. C Program to Check Whether a Number is Prime or Not 32. C Program to Display Prime Numbers Between Two Intervals 33. C program to Check Armstrong Number

34. C program to Check Perfect Number 35. C program to check Strong Number. 36. C program to find super digit of a given number. 37. C Program to Display Armstrong Number Between Two Intervals 38. C program to Display Factors of a Number 39. C program to Print Pyramids and Triangles in C programming using Loops 40. C program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch...case 4. C Program to Display Prime Numbers Between Intervals by Making Function 42. C Program to Check Prime and Armstrong Number by Making Function 43. C program to Check Whether a Number can be Express as Sum of Two Prime Numbers 44. C program to Find Sum of Natural Numbers using Recursion. 45. C program to Calculate Factorial of a Number Using Recursion 46. C Program to Find H.C.F Using Recursion 47. C program to Reverse a Sentence Using Recursion 48. C program to Calculate the Power of a Number Using Recursion 49. C Program to Convert Binary Number to Decimal and Decimal to Binary 50. C Program to Convert Octal Number to Decimal and Decimal to Octal 5. C Program to Convert Binary Number to Octal and Octal to Binary 52. C Program to Calculate Standard Deviation 53. C program to count the number of digits of a number. 54. Write a program that reads a floating-point number and then displays right-most digit of the integral part of the number. 55. Modify the above program to display to right-most digits of the integral part of the number. 56. Given an integer number, write a program that displays the number as follows: First line: all digits Second line: all except first digit Third line: all except first two digits 57. Write the program that will read a real number from the keyboard and print the following output in one line: Smallest integer notless than the number The given number Largest integer not greater than the number 58. The total distance travelled by a vehicle in t seconds is given by Distance= ut+(at2)/2 Where u is the initial velocity( meter per second),a is the acceleration (meter per second2). Write a program to evaluate the distance travelled at intrevales of time, give the value of u and a. the program should provide the flexibility to the user to select his own time intervals and repeat the calculation for different value of u and a. 59. For a certain electrical circuit with an inductance L and resistance R, the damped natural frequency is given by Frequency =sqrt { (/L*C ) ( R*R/4*C*C ) }

It is desired to study the variation of this frequency with C(capacitance).Write a program to calculate the frequency for different values of C starting from 0.0 to 0. in steps of 0.0. 60. Write a program to read two integer values m and n and to decide and print whether m is multiple of n. 6. The cost of one type of mobile service is Rs.250 plus Rs..25 for each call made over and above 00 calls. Write a program to read customer codes and calls made and print the bill for each customer. 62. Write a program to print a table of sin and cos functions for the interval 0 80 degrees in increments of 5 as shown below. x(degees) sin(x) cos(x) 0.. 5..... 63. Write a program to compute the values of square-roots and squares of the number 0 to 00 in steps 0 print the output in a tabular form as shown below. number Square-root square 0 0 0 00 0 0000 64. Write a program to evaluate the following investment equation V = P ( + r) n And print the tables which would give the values of various combination of the following values of P, r and n. P: 000, 2000, 3000,.0000 r: 0.0, 0., 0,2,..0.20 n:,2,3.0 65. Write a program to compute the value of Euler s number that is used as the base of natural logarithms. Use the following formula. e= + /! + /2! + /3+. /n! 66. Write programs to evaluate the following functions to 0.000% accuracy. sin x = x x3 3! + x5 5! + x7 7! + 67. Write programs to evaluate the following functions to 0.000% accuracy. cos x = x x2 2! + x4 4! + x6 6! + 68. Write programs to evaluate the following functions to 0.000% accuracy. SUM = + (/2) 2 + (/3) 3 + (/4) 4 +

2 32 432 5432 22 333 4444 55555 23 456 7890 69. Write a program to print all the ASII values and their equivalent character using while loop. The ASCII values vary from 0 to 255 70. Write a program for a matchstick game being played between the computer and a user. Your program should ensure that the computer always wins. Rules for the game are as follows: There are 2 matchsticks. The Computer asks the player to pick, 2, 3, 0r 4 matchsticks. After the person picks, the computer does its picking. Whoever is forced to pick up the last matchstick loses the game. 7. Write a program to fill the entire screen with a smiling face. 72. Write a program to fill the entire screen with diamond and heart alternatively. ASCII for heart is 3 and for diamond is 4. 73. Write a program to find the value of Cn r and Pn r 74. Write a program to generate all combination of, 2, or 3 using loop. 75. Write a program to generate a random number between a given ranges. 76. This C Program performs ATM transaction with 50000 balances in hand. The types of ATM transaction are ) Balance checking 2) Cash withdrawal ( e.g 500 = 5 x 00; 900 = x 500 + 4 x 00; 000 = 2 x 500; 700 = x 000 + x 500 + 2 x 200; 5000 = 4 x 000 + 2 x 500 3) Cash deposition. You can opt any of the above transaction according to your need of transaction. 77. C program to find floor and ceiling of a given number. 78. C program to round off a given number. 79. C program to implement: if A and B are two integer number C = AB e.g A = 23; B = 764 C = 23764 80. C program to find median of a set of numbers. 8. C program to swap two integer values using call by address. 82. C program to show the working of an integer pointer. 83. C program to show the working of a float pointer. 84. C program to show the working of a character pointer. 85. Take an integer pointer p. Now write a program that prints p++ and p--. Explain your results. 86. Write C program for all patterns given bellow using function. 5432 5432 543 54 5 5 44 333 2222 2 3 4 5 6 7 8 9

234432 23**32 2****2 ****** 5432* 543* 54*2 5*32 *432 2 3 4 5 6 7 8 9 0 36 37 38 39 40 4 42 43 44 35 64 65 66 67 68 69 70 45 2 34 63 84 85 86 87 88 7 46 3 33 62 83 96 97 98 89 72 47 4 32 6 82 95 00 99 90 73 48 5 3 60 8 94 93 92 9 74 49 6 30 59 80 79 78 77 76 75 50 7 29 58 57 56 55 54 53 52 5 8 28 27 26 25 24 23 2 20 9 22 234 432 23455432 2 3 3 4 5 4 5 6 7 4 9 6 25 36 49 64 8 00 2 44 69 96 225 256 289 324 36 400 44 484 529 576 625 2 2 3 2 3 4 2 3 4 5 2 3 4 5 6 6 5 7 4 8 3 2 0 9 4 4 2 32 432 5432 2 3 4 5 6 7 8 9 0 2 3 4 5 23 2345 234567 23456789 234567 2345 23 4 N=3974 3 9 7 4 9 7 4 7 4 7 4 4