1/28/2012

BCT 1113 COMPUTER PROGRAMMING Assignment 1

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

No comments:

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