Starting from:

$25

IT1010 - Tutorial 4 – Programming I  -  Introduction to Programming - Solved

Question 1  
  

i.              Draw a flow chart to display your name  

  

ii.            Write a C program to display your name and save the program as first.c  

  

iii.          Modify the above program to display the message “Welcome to SLIIT” with each word on a separate line.  

    (hint: use one printf statement)  

  

Question 2  
  

Write C programs to display the following shapes with asterisks.  

  

                        ********                                                *                                                       *  

*                      *                                                        * *          * * *  

*                      *                                                        * * *      * * * * *  

*                      *                                                        * * * *              *  

*                      *                                                        * * * * *               *  ********                                       * * * * * *                 *  

  

Question 3  
    

Draw a flow chart to enter two numbers from the keyboard and display the total.                                    Write a C program for the above flow chart.  

  

Question 4  
  

i.               A bank is giving 10% annual interest rate for customer accounts. Draw a flow chart to enter the balance of an account and calculate the annual interest. Display the annual interest and the new balance after adding the interest.  

Annual interest =  balance * annual interest rate/100  

  

ii.            Convert the above flow chart to a C program.  

More products