Sale!

COS1511 Assignment 2 2024 (735127) 13 May 2024 {Complete Answers and Codes provided for Questions 1 to 7}

Original price was: R100.00.Current price is: R70.00.
20 Downloads

COS1511 Assignment 2 2024 (735127) 13 May 2024 {Complete Answers and Codes provided for Questions 1 to 7}

Question 1
Write function headers for the functions described below:
(i) The function check has two parameters. The first parameter should be an integer number and the
second parameter a floating point number. The function returns no value.
(ii) The function mult has two floating point numbers as parameters and returns the result of
multiplying them.
(iii) The function time inputs seconds, minutes and hours and returns them as parameters to its
calling function.
(iv) The function countChar returns the number of occurrences of a character in a string, both provided as
parameters

Description

COS1511 Assignment 2 2024 (735127) 13 May 2024 {Complete Answers and Codes provided for Questions 1 to 7}

All Solutions and Codes are complete in accordance to the questions provided

 

Question 1

Write function headers for the functions described below:

(i) The function check has two parameters. The first parameter should be an integer number and the second parameter a floating point number. The function returns no value.

(ii) The function mult has two floating point numbers as parameters and returns the result of multiplying them.

(iii) The function time inputs seconds, minutes and hours and returns them as parameters to its calling function.

(iv) The function countChar returns the number of occurrences of a character in a string, both provided as parameters

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Description

COS1511 Assignment 2 2024 (735127) 13 May 2024 {Complete Answers and Codes provided for Questions 1 to 7}

All Solutions and Codes are complete in accordance to the questions provided

 

Question 1

Write function headers for the functions described below:

(i) The function check has two parameters. The first parameter should be an integer number and the second parameter a floating point number. The function returns no value.

(ii) The function mult has two floating point numbers as parameters and returns the result of multiplying them.

(iii) The function time inputs seconds, minutes and hours and returns them as parameters to its calling function.

(iv) The function countChar returns the number of occurrences of a character in a string, both provided as parameters

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

0
    0
    Your Shopping Cart
    Your cart is emptyReturn to Shop