30-08-2014, 10:56 AM
ADVANCE COMPUTER ARCHITECTURE LAB
1391494243-ACALab.pdf (Size: 90.63 KB / Downloads: 11)
1. Read an integer from the keyboard and print it out if (n => n_min AND n <= n_max).
2. Read an integer from the keyboard and print out the following as per switch-case statement
Switch (n)
{n <= 10 print "not a lot"
n == 12 print "a dozen"
n == 13 print "a baker's dozen"
n == 20 print "a score"
n >= 100 print "lots and lots"
n! = 42 print "integer"
otherwise print "you have the answer!”}
3. Read a string from the keyboard and count the number of letters. Use the equivalent of
following for loop to count number of
chars. for (s1=0; str [s1] != '\n'; ++s1)
4. Print out a line of characters using simple procedure call.
5. Print out a triangle of characters using recursive procedure call.
6. Print factorial of a number using recursion.
7. Print reverse string after reading from keyboard.
8. Print a string after swapping case of each letter.
9. Print an integer in binary and hex.
10. Implement bubble sort algorithm.
11. Print Pascal Triangle of base size 12.
12. Evaluate and print Ackerman function.
13. Write a Program onOPEMP implantation
14. WAP on thread synchronization
15. WAP on Simple Pipelining
16. Program on Hyper Quick Sort
17. Program on Timing Routines
18. Program on Lock Routines.