Posts

TOPIC 4 EXERCISE 2

Image
 Task 1 %3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22%22%20style%3D%22edgeStyle%3DorthogonalEdgeStyle%3Brounded%3D0%3BorthogonalLoop%3D1%3BjettySize%3Dauto%3Bhtml%3D1%3B%22%20edge%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20relative%3D%221%22%20as%3D%22geometry%22%3E%3CmxPoint%20x%3D%22120%22%20y%3D%2280%22%20as%3D%22sourcePoint%22%2F%3E%3CmxPoint%20x%3D%22120%22%20y%3D%22110%22%20as%3D%22targetPoint%22%2F%3E%3C%2FmxGeometry%3E%3C%2FmxCell%3E%3CmxCell%20id%3D%223%22%20value%3D%22%22%20style%3D%22edgeStyle%3DorthogonalEdgeStyle%3Brounded%3D0%3BorthogonalLoop%3D1%3BjettySize%3Dauto%3Bhtml%3D1%3B%22%20edge%3D%221%22%20target%3D%225%22%20parent%3D%221%22%3E%3CmxGeometry%20relative%3D%221%22%20as%3D%22geometry%22%3E%3CmxPoint%20x%3D%22120.0049999999992%22%20y%3D%22160%22%20as%3D%22sourcePoint%22%2F%3E%3C%2FmxGeometry%3E%3C%2FmxCell%3E%3CmxCell%20id%3D%224%22%20value%3D%22%22%20style%3D...

TOPIC 3 LAB EXERCISE 2

Image
 Task 1 Task 2 Task 3 Task 4

TOPIC 4 EXERCISE 1

Image
Task 1  Write a program that prompts the user to input a number. The program should then output the number and a message saying whether the number is zero, positive or negative. Task 2 Write a program that prompts the user to input three numbers. The program should then output the number in ascending order. Task 3 Write a program that prompts the user to input an integer between 0 and 35. If number less than or equal to 9, the program should the number; otherwise, it should output A for 10, B for 11, C for 12, … , and Z for 35. ( Hint : Use the cast operator (char) for numbers >= 10.) Task 4 The cost of an international call from New York to New Delhi is calculated as follows: connection fee, $1.99; $2.00 for the first three minutes; and $0.45 for each additional minute. Write a program that prompts the user to input a number. The program should then output the number of minutes the call lasted and output the amount due. Format your output with two decimal places. Task 5 Write a...