1.
left0UNIVERSITI TUN HUSSEIN ONN MALAYSIA<br />FACULTY OF MECHANICAL AND MANUFACTURING ENGINEERING <br />DTI2143/DAM31303: COMPUTER PROGRAMMING<br />LAB EXERCISE 4 Regular expression and operators<br /><ul><li>Write a program to calculate circumference and area of a circle
2.
(Note: PI=3.142 , circumference =2*PI*rad, and area= PI*rad2 )
4.
Write a program to calculate average velocity, v of a particle on a line travelling between point p1 and p2 form time 1 to time 2
5.
(Note : v=p2-p1t2-t1) , The program should similar to:
6.
Write a program to calculate the amount of heat required to raise the mercury temperature. (Note: Specific heat capacity, c : Qm∆θ , therefore the quantity heat lost is Q= mc∆θ; Q for mercury=139 J kg-1 ℃-1 )
7.
To solve: the bulb of thermometer contains 3.4g of mercury. What amount of heat is required to raise the temperature of the mercury from 30℃ to 100℃
10.
The total amount a customer has to pay for items that he/she bought in a bookstore. The user will prompt the amount of each item bought and the total amount to be paid will be displayed. Price list:</li></ul>ItemPriceRed penRM 1.20PencilRM 0.80markerRM 3.40rulerRM 0.50<br />
Be the first to comment