Showing posts with label 12/13 SEM 1 BCS1223. Show all posts
Showing posts with label 12/13 SEM 1 BCS1223. Show all posts

12/18/2012

BCS1233 ALGORITHM DEVELOPMENT

No. Matric No. Course Quiz 1 Asgmt 1  Asgmt 2 (30) Asgmt 3 (20) (present asgmt 2) Test 1 (54)
1  12B08002  BCSC 8 29 19 15 34
2  12B08003  BCSC 4 32 15 18 51
3  12B08005  BCSC 10 35 15 18 51
4  12B08007  BCSC 10 27 29 20 54
5  12B08008  BCSC 2 32 27 19 44
6  12B08010  BCSC 10 26 19 16 37
7  12B08012  BCSC 5 29 19 15 47
8  12B08101  BCSC 10 27 29 20 38
9 12B08009  BCSC 10 27 29 20 46
10 12B08012  BCSC 6 26 19 16 37
11 12B08006  BCSC 10 35 15 15 41
12 12B08018  BCSC 10 35 15 15 34
13 12B08017  BCSC 2 32 27 19 54
14 12B08016  BCSC 2 32 27 19 51
15 12B08015  BCSC 4 32 15 15 39


Markah untuk quiz 1, Test 1, Assignment1,2 dan 3.

11/27/2012

11/20/2012

BCS1223 EXERCISE "FOR LOOP"

1. Draw a flowchart to input an integer and calculate it factorial.


 2. Draw a flowchart for computing and printing the simple interest rate for 1 to 10 years at the rate of 3% per annum on an investment of RM 100.



Terima Kasih untuk pelajar atas sumbangan jawapan.

11/18/2012

Assignment 2 BCS 1223 AD

1. A University has 3000 students. These students are divided in four catogeries:

i) B. Tech
ii) M. Tech
iii) M.S
iV) Ph.D

Write an algorithm or for finding the percentage of the students in each category.

 2. Write an algorithm  for a program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score


 3. Write an algorithm  for a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values, not counting zeros. Your program ends with the input 0. Display the average as a floating-point number. (For example, if you entered 1, 2, and 0, the average should be 1.5.)



10/21/2012

BCS1233 AD LAB 22 OKT 2012

1.Read 10 integers and find the total of even number and odd number entered.

2.Read 10 integers and find the total of positive number and negative number.


Solution for no 1

10/07/2012

BCS1233 AD Assignment 1

1. Define the following terms:-
1.1Algorithm
1.2Flow Chart
1.3Pseudocode

2. There are several types of flowchart, briefly explain each of them.
 
3,Give three benefits of flowchart.

4.What is the limitation of flowchart.

 5.Write an algorithm (Flowchart and Pseudocode) to input temperature in Fahrenheit and output the corresponding temperature in Centigrade. The formula for conversion is as follows.
C= 5/9 x (F - 32)

 
6. A student’s letter grade is calculated according to the following schedule:

Numerical grade
Letter grade
90-100
A
80-89
B
70-79
C
60-69
D
0-59
F

Write an algorithm (Flowchart and Pseudocode)  that accepts a student’s numerical grade, converts the numerical grade to an equivalent letter grade, and displays the letter grade.

7. An electric supply company charges the following rates for its customers:-

No. of unit consumed                              Charges/unit (RM)

1-200                                                           2.50

201 - 500                                                     3.50                                                  

over 501                                                       5.00

If the consumer pays his bill within 15 days from the bill date, 10% discount is given
. If he makes the payment after 15 days from the bill date, 5% surcharge is levied. Draw a flowchart to calculated the net amount of the bill for each consumer and print it.


8. SATU Terengganu charges the following rates for its customer:-


JADUAL PERKIRAAN KOD TARIF BEKALAN AIR
Enakmen PA. 51 Fasal 16 (UPEN.TR.5/115, DUN. TR. 15/25 SK.1)
MULAI 1 MAC 1997

Kod Jenis
Bacaan
Penggunaan Caj
Minima (RM)
Kuantiti M3
(Meter Padu)
Caj
Setiap M3
10 Rumahtangga 0 - 20.00 RM0.42 RM4.00 sebulan
20.1 - 40.00 RM0.65
40.1 - 60.00 RM0.90
60.1 ke atas RM1.00


Draw a flowchart to calculated the net amount of the bill for each consumer and print it.

9/30/2012

BCS1233 AD : Pseudocode Exercise

There are two most commonly algorithm used to describe process ; flowchart and pseudocode ( pronounce as -′süd·ō′kōd ).  Consider the following problems and learn how the pseudocode is constructed.

1. Write a pseudocode to find the perimeter and area of a rectangle
The perimeter and area of the rectangle are given by the following formulas:
  perimeter = 2 * (length + width)
  area = length * width

1.PROMPT user to enter length and width
2.READ length and width
3. CALCULATE perimeter and area
       perimeter = 2 * (length + width)
       area = length * width
4. OUTPUT perimeter and area


2. Write a pseudocode which inputs a length in inches, and outputs its equivalent in centimeters (1 inch = 2.54 centimeters)

1.PROMPT user to enter inch
2.READ inch
3. CONVERT inch into centimeters
      centimeters = inch * 2.54
4. OUTPUT centimeters

 Now, its your turn -write a pseudocode for the following problems.

1.(Converting feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters.


2.*(Calculating tips) Write a program that reads the subtotal and the gratuity rate, and computes the gratuity and total. For example, if the user enters 10 for subtotal and 15% for gratuity rate, the program displays $1.5 as gratuity and $11.5 as total.

3.*(Payroll) Write a program that reads the following information and prints a payroll statement:
Employee's name (e.g., Smith)

Number of hours worked in a week (e.g., 10)

Hourly pay rate (e.g., 6.75)

Federal tax withholding rate (e.g., 20%)

State tax withholding rate (e.g., 9%)



A sample run of a program is shown in below:-



The level of difficulty is rated as easy (no star), moderate (*), hard (**), or challenging (***).

9/16/2012

BCS1223 Flowchart Exercise 17 Sept 12

1.  (Computing the volume of a cylinder) Write a program that reads in the radius and length of a cylinder and computes volume using the following formulas:-

area = radius x radius x PI
volume = area x length

PI=3.14159

2. (Converting Celsius to Fahrenheit). Write a program that reads a Celsius, then converts it to Fahrenheit and displays the result. The formula for the conversion is as follows:


Fahrenheit = (9/5) x Celsius + 32


3. (Converting Pounds into Kilograms)Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilogram, and displays the result. One pound is 0.454 Kilograms

4. (Finding the number of minutes and  hours) Write a program that prompts the users to enter a number of seconds (e.g 1000000) and displays the equivalent numbers of hours and equivalents numbers of minutes.
Here is a sample run:
Enter the number of seconds :1000000
1000000 seconds = 16666.67 minutes
1000000 seconds = 277.78 hours



Related post(s)

BCS1233 AD

9/11/2012

BCS1233 AD

}Design a flowchart to find the perimeter and area of a rectangle
}The perimeter and area of the rectangle are given by the following formulas:
  perimeter = 2 * (length + width)
  area = length * width

 Draw a flowchart which inputs a length in inches, and outputs its equivalent in centimeters (1 inch = 2.54 centimeters) 



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