Asg CSC425

------------------------------------------------------------------------

Assignment 4 CSC425 : Introduction to Computer Programming

------------------------------------------------------------------------Due Date : 15 June 2012 (Friday)

This is a group assignment of 2 persons.

All groups should submit the hardcopy (before or on 15 June 2012) .
Plagiarism:
Plagiarism is the presentation of work which has been copied in whole or in part from another person's work, or from any other sources such as Internet, published books or periodicals without due acknowledgement given in the text.
Collusion:
Collusion is the presentation of work which is the result in whole or in part of unauthorized collaboration with another person or persons.
Any intention to plagiarism and collusion is not allowed for this task and if there is a case of those issues of the assignments, suitable action will be taking against groups and no appeal or consideration will be take.
------------------------------------------------------------------------
Task 1(CO2,CO3)
Developing a C++ programming code based on the problem given with the use of Selection statements.

The U-Mart mall is currently using a manual approach to calculate the total prices of  items . So, the manager decided to use a computer system to solve the problems. Your team has been appointed by the Manager to develop a program that consists of the following requirements:

a) Prompt the cashier to input prices of all items. To stop the input items, 

     the cashier need to input 0, to end the input process.
b) Calculate the total price before discount.
c) Input percentage of discount given.
d) Calculate the total price after discount.
e) Prompt the cashier to enter amount given by the customer.
f) Calculate the balance.
f) Prompt the total price, total price after discount, amount given by the
    customer and balance. 

g)Prompt the user either  to stop or to continue the process.

Based on the above requirements, construct a system be using C++ code.

Download the rubric for Assignment 4 here : [Download]
Download the front page for Assignment 4 here : [Download]
------------------------------------------------------------------------

Assignment 3 CSC425 : Introduction to Computer Programming

------------------------------------------------------------------------



Due Date : 18 May 2012 (Friday)

This is a group assignment of 2 persons in one group.

All groups should submit the hardcopy (before or on 13 April 2012) .
Plagiarism:
Plagiarism is the presentation of work which has been copied in whole or in part from another person's work, or from any other sources such as Internet, published books or periodicals without due acknowledgement given in the text.
Collusion:
Collusion is the presentation of work which is the result in whole or in part of unauthorized collaboration with another person or persons.
Any intention to plagiarism and collusion is not allowed for this task and if there is a case of those issues of the assignments, suitable action will be taking against groups and no appeal or consideration will be take.
------------------------------------------------------------------------
Task 1(CO2,CO3)
Developing a C++ programming code based on the problem given with the use of Selection statements.

The U-Mart mall is currently using a manual approach to calculate the total prices of ten (10) items or less by the customers. So, the manager decided to use a computer system to solve the problems. Your team has been appointed by the Manager to develop a program that consists of the following requirements:

a) Prompt the cashier to input prices of all items. 



b) List the total items that customer buy and if the total item is greater or equal to 5 items and total price for each item is greater than RM10, the customer are entitled for the following discount as stated in (c) below.

c) Identify the discount from the following choices: 

      1. Total prices is greater than RM300, total discount is 15%
      2. Total prices is greater than RM200, total discount is 10%
      3. Total prices is greater than RM150, total discount is 5%
      4. Total prices is less than RM150, no discount given


d) Calculate the total price before discount.
d) Calculate the total price after discount.
e) Prompt the cashier to enter amount given by the customer.
f)  Calculate the balance given to the customer.
g) Prompt the total price, total price after discount, amount given by the
    customer and balance.

Based on the above requirements, construct a system be using C++ code.

Download the rubric for Assignment 3 here : [Download]
Download the front page for Assignment 1 here : [Download]





------------------------------------------------------------------------

Assignment 2 CSC425 : Introduction to Computer Programming

------------------------------------------------------------------------



Due Date : 13 April 2012 (Friday)

This is a group assignment of 2 persons in one group.

All groups should submit the hardcopy (before or on 13 April 2012) .
Plagiarism:
Plagiarism is the presentation of work which has been copied in whole or in part from another person's work, or from any other sources such as Internet, published books or periodicals without due acknowledgement given in the text.
Collusion:
Collusion is the presentation of work which is the result in whole or in part of unauthorized collaboration with another person or persons.
Any intention to plagiarism and collusion is not allowed for this task and if there is a case of those issues of the assignments, suitable action will be taking against groups and no appeal or consideration will be take.
------------------------------------------------------------------------
Task 1(CO1,CO2,CO3)
Developing a simple C++ programming code based on the problem given.

The U-Mart mall is currently using a manual approach to calculate the total prices of ten (10) items or less by the customers. So, the manager decided to use a computer system to solve the problems. Your team has been appointed by the Manager to develop a program that consists of the following requirements:

a) Prompt the cashier to input prices of all items.
b) Prompt the cashier to input any discount given. If there is no discount

given, enter 0.
d) Calculate the total price before discount.
d) Calculate the total price after discount.
e) Prompt the cashier to enter amount given by the customer.
f)  Calculate the balance given to the customer.
g) Prompt the total price, total price after discount, amount given by the
    customer and balance.

Based on the above requirements, construct a system be using C++ code.

Download the rubric for Assignment 1 here : [Download]
Download the front page for Assignment 1 here : [Download]

------------------------------------------------------------------------
Assignment 1 CSC425 : Introduction to Computer Programming 
------------------------------------------------------------------------
Due Date : 30 March 2012 (Friday)
This is a group assignment of 2 persons in one group.
All groups should submit the hardcopy (before or on 30 March 2012) .
Plagiarism: 
Plagiarism is the presentation of work which has been copied in whole or in part from another person's work, or from any other sources such as Internet, published books or periodicals without due acknowledgement given in the text. 
Collusion:
Collusion is the presentation of work which is the result in whole or in part of unauthorized collaboration with another person or persons. 

Any intention to plagiarism and collusion is not allowed for this task and if there is a case of those issues of the assignments, suitable action will be taking against groups and no appeal or consideration will be take.
------------------------------------------------------------------------
Task 1 (CO1)
Implementing Flowchart & Algorithm

Write and Draw the Psuedo-Code and Flowchart for the following case: 


Question 1: 
Read the radius and length of a cylinder and computes volume using the following formulas: 
area = radius * radius * pi
volume = area * length

Question 2: 
Read a number in pounds, converts it to kilograms, and display the result. One pound is 0.454 kilogram.

Question 3: 
Read an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all digits is 14.

Question 4:
User to enter three points (x1, y1), (x2, y2), (x3,y3) of a triangle and display its area. The formula for computing the area of a triangle is:
\mathrm{Area} =  \sqrt{s(s-a)(s-b)(s-c)}


where  s= \frac{a+b+c}{2}


Download the rubric for Assignment 1 here : [Download]
Download the front page for Assignment 1 here : [Download]