11-12-2012, 12:43 PM
Programming Logic and Design
1Programming Logic.pdf (Size: 55.04 KB / Downloads: 50)
PART-A
1. Suppose Infosys comes for placement in LPU and CSE and ECE students are eligible. Criteria to sit in placement is:
a. Minimum CGPA 7.0
b. No Backlog
c. No Reappear
d. 12th % 55
e. 10th % 60
Find all the students and display them from both the branches who fulfill the criteria. Output should contain
a. Name of student
b. Registration Number
c. Contact Number
d. Section
e. CGPA
f. 12th percentage
g. 10th percentage
2. How efficiency of program can be improved while using logical AND and OR operator and in which order expressions will be evaluated when arithmetic , relational and logical oprators are used in a expression.
3. Draw the structured flowchart and write structured pseudo code describing the steps a user will follow to withdraw money from ATM only if last withdrawn was 20 days back and balance money is above 5000 .if after withdrawal the amount is less then 5000,the user must deposit the money in bank and raise the balance. Include at least two decisions.
PART B
4. Airtel offers postpaid scheme to LPU employees. Scheme is as follows:
a. Free 500 local minutes from airtel to any mobile
b. Free 500 local and national messages free.
c. Call charges are as follows:
i. Airtel to airtel local 10p/min.
ii. Airtel to other local 50p/min.
iii. Airtel to landline 1Rs/min.
iv. Airtel to any STD number 1.5Rs/min.
v. Monthly charges are 100 Rc
Take an array of 50 employees who is using this scheme. And create following modules:
a. Input data
b. Display data
c. Calculate bill
d. Search a particular Employee(use break statement when search will successful)
5. Break statement improves the efficiency of program if used at appropriate position. How? Normally break and return are used to break the normal execution of program. What happens if we place return statement in place of break statement and vice versa. Give an appropriate example.
6. Take three parallel arrays for storing students data i.e. Registration number, name and mark.
a. Draw flow chart to sort the arrays according to name.
b. Write a pseudocode to sort the arrays according to marks.