Homework 3
Course: Foundations of Computing Code: CSE101
PART-A
Q1. Write a program to count the negative elements from the list using Arrays.
Q2. How can you differentiate a lower level array from the higher level array?
Q3. Write a program that accepts an amount in figures and print that in words.
[Hint: - for an amount of Rs. 15200.50 it should output the string Rs. Fifteen Thousand Two Hundred and Paisa Fifty only]
Q4. How will you initialize a three-dimensional array thread [3][2][3]? How will you refer the first and last element in this array?
PART-B
Q5. Can an array of pointers to strings be used to collect strings from the keyboard? If not, why not? How, if yes?
Q6. Give an example of a structure declaration without the use of a tag? What are its advantages & disadvantages?
Q7.Create a structure to specify data on students given below:
Roll_no, name, deptt, course, year_of_passing
Assume that there are not more than 200 students in the college.
Write a function to print names of all students who joined in a particular year.
Write a function to print the data of a student whose roll number is given.
No comments:
Post a Comment