2023 2024 EduVark > Education Discussion > General Discussion


  #1  
June 9th, 2015, 03:49 PM
Super Moderator
 
Join Date: Mar 2012
Esc 101 IIT Kanpur

Hello sir I am pursuing B.tech from Nit Banglore and I want the link of the website from where I can get the help in my homework from computer fundamental ESC101of Indian Institute of Technology (IIT) Kanpur???? Please reply???

The lab questions for the Fundamental of Computing course which has the ESC 101 as the course code for Indian Institute of Technology are as mentioned below.

1.
#include<stdio.h>
int main()
{
int v=1.i=2.j=3.k=4.s=5.a[99];
for(i=0;i<10;i++){a[i]=i;};a[i]=a[i+10];j=3*5-2*6;v=j*=i=10;for(printf("%d",j));
if(v^j*5&&a[10]*a[56/23+23])printf("abcd%defgh%d",4,6);
}

In the above question, identify the separate statements and re-write the program with proper indentation and resultant code should be easily readable.

2.
A . Calculate and display the area of a triangle with base = 6 and height = 9.
B. Use heroes formula for calculating the area of triangle with sides 4 ,7, 10.
Include #include<math.h> in your code and use squareroot = sqrt(); for calculating square root.

3.
Write a program to assign following values to variables and print their value.
1. Name
2. Age
3. PI
4. Distance from sun in Kms
5. Factorial of 15
Marks will be given for the efficient choice of data types . Efficient data type is such that , it does not uses excess memory. Eg - age can not be > 150 , so use of long data type is not efficient.
Assume some approximate values where value is not known

4.
Calculate and display the volume of a cylinder with height = 13 and length = 19.

Write a C program to calculate and display the value of the slope of the line connecting the two points whose coordinates are (x1, y1) and (x2, y2). (Handle all cases properly)

5.
A man drives a car at a speed s1(in m/s) for t1 seconds and then at speed s2 for t2 seconds. Write a C program to input the values and print the average speed of the car.

Write a program to input a number N and express it of the form N=5x+y such that y<5. For eg: 13 = 5*2 + 3. Your program should print in the form: N = (x, y) after
nding the values of x and y.

6.
#include<stdio.h>
int main()
{
int v=1.i=2.j=3.k=4.s=5.a[99];
for(i=0;i<10;i++){a[i+1]=i-1;};a[i]=a[i+10];j=3*5-2*6;v=j*=i=10;if(printf("%d",j+i));
if(v^j*5&&a[10]*a[56/23+23])printf("axyz%defgh%d,++i,6);
}

In the above question, identify the separate statements and re-write the program with proper indentation and resultant code should be easily readable. In this question , the code is not required to be compiled. Marks will be awarded for indentation and rewriting code.

7.
A . Calculate and display the area of a triangle with base = 7 and height = 12.
B. . Use heroes formula for calculating the area of triangle with sides 5 ,6, 11..
Include #include<math.h> in your code and use squareroot = sqrt(); for calculating square root.

8.
Write a program to assign following values to variables and print their value.
1. Name
2. Percentage marks with no decimal value.
3. Value of 'e'
4. Distance from sun in lightyears.
5. 3294967295
Marks will be given for the efficient choice of data types . Efficient data type is such that , it does not uses excess memory. Eg - age can not be > 150 , so use of long data type is not efficient.
Assume some approximate values where value is not known.

9.
Calculate and display the volume of a hemisphere, radius = 14.

10.
Write a C program to find whether two circles (x1, y1, r1) and (x2, y2, r2) intersect or not.
Assume tangentially touching circles as intersecting.

Test your programs for:
(0,1,1) and (1,0,1)
(-1,0,1) and (1,0,1)
(0,0,1) and (0,0,2)

11.
Write a C program to input two points A(x1, y1) and B(x2, y2) and a value k. Calculate anddisplay the coordinates of the point P(x, y) that divides the line segment AB in the ratio 1:k.
Your program should produce the following display:

The x coordinate is
___________
The y coordinate is
___________
where the underlined spaces are to be replaced with the values calculated by your program.

12.
Write a program to input time in seconds and print it in the form HH:MM:SS.
For eg:
Input: 7907
Output: 2:11:47

Last edited by Neelurk; April 22nd, 2020 at 11:23 AM.
Similar Threads
Thread
NLP IIT Kanpur
Kanpur IIT JEE
Chatrapati Shahu Ji Maharaj Kanpur University Kanpur Date Sheet
Bus From Kanpur Railway Station To IIT Kanpur
Distance From Kanpur Railway Station To IIT Kanpur
Kanpur University Affiliated Colleges in Kanpur
NSS IIT Kanpur
Kanpur IIT cut off
IIT Kanpur To Kanpur Central
SSC Kanpur
IIT JAM IIT Kanpur
MS In IIT Kanpur
AME IIT Kanpur
Centre for Mechatronics IIT Kanpur IIT Kanpur CGPA to Percentage Conversion
How To Get Into IIT Kanpur

  #2  
March 10th, 2017, 09:34 AM
Unregistered
Guest User
 
Re: Esc 101 IIT Kanpur

Hi I would like to have the lab questions for the Fundamental of Computing course which has the ESC 101 as the course code for Indian Institute of Technology?


Quick Reply
Your Username: Click here to log in

Message:
Options



All times are GMT +5. The time now is 12:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8