Lab Activity 1

Subject: BIC10204: S4
Title: Lab Activity 1
Date/ Day: 17.9.2018/ Monday
Name : Muhammad Faris Bin Yazid  (AI180079)
            Harith Iskandar Bin Saiful Fahme  (AI180106)
Lecturer: Dr. Pn. Hanayanti Binti Hafit


1. a) Input- P,Q,R,S
        Process- Calculate mean of P,Q,R,S
        Output- Mean of P,Q,R,S

    b) Input- Length in millimeter
        Process- Calculate length from millimeter to centimeter
        Output- Length in centimeter

    c) Input- Height,radius
        Process- Calculate the volume of cone
        Output- Print "Accepted" or "Not Accepted"


2. a)



    b)




3. a) Start
               Read payment, days
               Calculate total
                if days <= 10
                    total = payment*0.95
                else
                    total=payment
                end if
                Print total
         End

     b) Start
               Set answer=0
               Read number
               Set n=1   //n=multiplier
               While n=<12
               Calculate answer = number*n
               Print answer               
               Update n=n+1
               Repeat while
          End

Comments

Popular posts from this blog

Lab Activity 9

Lab Activity 2

Lab Activity 5