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.

16
    16
    Your Shopping Cart
    LCR4805 ASSIGNMENT 1 SEMESTER 1 2025 - FULLY ANSWERED
    LCR4805 ASSIGNMENT 1 SEMESTER 1 2025 - FULLY ANSWERED
    Seller:

    The Smart Slacker

    Price: R100.00
    R100.00
    PUB2606 Assignment 2 Semester 2 Memo | Due September 2025
    R100.00
    CMG3701 Assignment 2 Memo | Due 28 May 2025
    CMG3701 Assignment 2 Memo | Due 28 May 2025
    Seller:

    Aimark94

    Price: R100.00
    R100.00
    CIV3701 Assignment 1 Semester 2 2024 | Due 25 August 2024
    R80.00
    BPT1501 Assignment 1 Semester 2 2024 | Due 11 August 2024
    R50.00
    IOP1601 Assignment 1 Memo | Due 5 May 2025
    IOP1601 Assignment 1 Memo | Due 5 May 2025
    Seller:

    Aimark94

    Price: R100.00
    R100.00
    CSP2601 Assignment 5 2024 | Due 26 September 2024
    CSP2601 Assignment 5 2024 | Due 26 September 2024
    Seller:

    Aimark94

    Price: R50.00
    R50.00
    MNG3701 Assignment 2 Semester 2 Memo | Due 17 September 2025
    R100.00
    ENG1517 Assignment 2 Memo | Due 26 June 2025
    ENG1517 Assignment 2 Memo | Due 26 June 2025
    Seller:

    Aimark94

    Price: R100.00
    R100.00
    TMN3701 ASSIGNMENT 03 SOLUTIONS , SEMESTER 2 ,2022 (TO BE USED AS A GUIDELINE)
    R50.00