5. distance conversion:
Convert a distance from miles to kilometers .there are 5280
feets per mile,12 inches per foot .2.54 centimeters per
inch and 100000centimeters per kilometer
4.weight conversion:
Write a program that will read weight in pounds and convert
it into grams.print both the original weight and the
converted value.There are 454 grams in a pound.design and
carry out a test plan for this program.
2.Given the short c program that follows
a. make a list of the memory variables in this program
b.which lines of code contain operations that change the
contents of memory? what are those operations?
Void main( void)
{
Double base;
Double height;
Double area;
Printf(“enter base and height of triangle :”);
Scanf(“%lg”, &base);
Scanf(“%lg”, &height);
Area=base*height/2.0;
Printf(“the area of the triangle is %g \n”,area);
}
3.write a simple program that will output your name,phone
number,e-mail address,and academic major on separate lines
1.create an account and a personal directory for your work
b.find out how to create a subdirectory on your
system.create one called info
c.you will use a text editor to type in your programs and
data files.some C systems have a built in text
editor;others do not.Find out what text editor you will be
using and how to access it.create a text file(not a
program) containing your name ,address,and telephone number
on separate lines.Next,write the brand of computer you are
using and the name of the text editor.Then write a
paragraph that describes your past experience with
computers.save this file in your info directory.
d. find out how to print a file on your system .print out
and turn in the file you created in (c).
Convert a distance from miles to kilometers .there are 5280
feets per mile,12 inches per foot .2.54 centimeters per
inch and 100000centimeters per kilometer
Write a program that accepts a string where multiple spaces
are given in between the words. Print the string ignoring
the multiple spaces.
Example:
Input: “ We Are Student “
Output: "We Are Student"
279
can a union be self-referenced?
7
how to get the starting address of file stored in harddisk
through 'C'program.
75
Write a C program to fill a rectangle using window scrolling
315
please give me some tips for the placement in the TCS.
Hai sir,
I had planned to write the NIC scientific engineer exam ,
plz post the sample question......
124
1)
write a program to generate 1st n fibonacci prime numbers
using Nested if
2)
write a program to generate twin prime numbers from m to n
using nested if
3)
write a program to check whether a given integer is a strong
number or not using nested if
4)
Write a program to generate prime factors of a given integer
using nested if
5)write a program to generate prime numbers from m to n
using nested if
6)write a program to generate perfect numbers from m to n
using nested if
7)write a program to generate the pallindromes from m to n
using neste if
8)write a program to generate armstrong numbers from m to n
using nested if
9)write a program to generate strong numbers from m to n
using nested if
493
Read N characters in to an array . Use functions to do all
problems and pass the address of array to function.
1. Print only the alphabets . If in upper case print in
lower case vice versa.
2. Enter alphanumeric characters and form 2 array alphaets
and digits.Also print the count of each array.
3. Find the count of a certain character.
4. Print the positions where a certain character occured.
5. Print the characters between successive array elements.
6. Find the largest and smallest charcter. How many times
it each one occured.
7. Enter a certain range. Print out the array elements
which occured between these range.
8. Reverse a character array without using another array.
9. Reverse an array region.
10. Replace a the array elements with it next character .
Use a after z.
11. Code the array element with certain character as first
alphabet.
12. Duplicate all the vowels in a character array. What is
the new count.
13. Delete the vowels in a character array. What is the new
array count.
14. Print the count of all characters in the array.
15. Enter n alphabets and store a upto tht
charcter in array.What is the array count?
16. Sort a character array.
17. Merge 2 character arrays largearray,smallarray.
18. Find the pair with largest number of characters in between.
19. Find the numerical value of a charcter array.
20. Store n numeral characters in an arrray. Insert another
numeral character in a certain position.
21. Insert a character in a sorted array.
22. Merge 2 sorted arrays in sorted fashion.
23. Duplicate the least occuring character.
24. Write a menu driven program to circular right/left shift
an array of n elements.
25. Is the character array palindrome? if not make it
palindrome.
26. Concatenate the first n charaters to the end of the string.
27. Print all n group of chracters which are palindrome.
28. Concatneate the reverse of last n characters to the array.
584
what does ‘segmentation violation’ mean?
5
a number whose only prime factors are 2,3,5, and 7 is call
humble number,,write a program to find and display the nth
element in this sequence..
sample input : 2,3,4,11,12,13, and 100.. sample output : the
2nd humble number is 2,the 3rd humble number is 3,the 4th
humble number is ,the 11th humble number is 12, the 12th
humble number is 14, the 13th humble number is 15, the 100th
humble number is 450.
211
how to calculate the time complexity of a given algorithm?
pls give exaples..mainly for the coplexities such as O(log
n),O(n log n)...
523
i have to apply for rbi before that i need to know the the
syllabus for the entrance questions. whethet it may be aps
or techinical
24
how to determine the complexity of an algorithm as log(n)
can anyone suggest some site name..where i can get some
good data structure puzzles???
162
I have written a pro*C program to fetch data from the
cursor. where in i have used the concept of BULK FETCH....
each FETCH statement is taking lots of time to fetch
specified number of rows at...
132
what is the self-referential structure?
18
program to find error in linklist.(i.e find whether any
node point wrongly to previous nodes instead of next node)
hi folks i m approching for h1 b interview on monday 8th of
august at montreal and i m having little problem in my
approval notice abt my bithdate my employer has made a
mistake while applying it is 12th january and istead of
that he had done 18 the of january do any body have any
solution for that if yes how can i prove my visa officer
abt my real birthdate it urgent please let me know guys
thaks dipesh patel
91
What is mean by Data Driven framework in QTP? Can any one
answer me in details on this regard.