[SOLVED] IT1010 - Tutorial 4 – Programming I  -  Introduction to Programming   

30.00 $

Category:

Description

5/5 - (1 vote)

Question 1

 

  1. Draw a flow chart to display your name

 

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

 

  • 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

 

  1. 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

 

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