A. You are required to provide (i) Algorithm (Flowchart AND Pseudocode) and (ii) C++ program for each of the following problem.
1. Develop a program to input height and length of a right triangle and calculate and print the area of a right triangle.
Area of right triangle = (height x length) /2
1.1 Algorithm (Flowchart and Pseudocode)
1.2 C++ Program
2. Write a program that prompts for and read your age in years and output your ages in days. You may assume that there are 365 days in a year.
2.1 Algorithm (Flowchart and Pseudocode)
2.2 C++ Program
3. Write a program which inputs 3 numbers, and outputs their sum, product and average. Start with a flow chart and pseudocode.
B. You are required to provide (i) Algorithm (Flowchart AND Pseudocode) for each of the following problem.
3.1 Algorithm (Flowchart and Pseudocode)
3.2 C++ Program
4. Write a program that input a grade. If the grade is less than 0 or greater than 100, your program should print the appropriate message informing the user that an invalid grade has been entered.
4.1 Algorithm (Flowchart and Pseudocode)
5. Write a program that read an integer from the user and determines and print whether it is odd or even (Hint: Use modulus operator)
5.1 Algorithm (Flowchart and Pseudocode)
Due date: 12 February 2012
Subscribe to:
Post Comments (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment