CMP-2103-Classpage

Question

Description:

A survey was carried out to record the ages of dogs in a given town. The records are made in the format;

14571259254.83

Tasks:

  1. Return the number of entries made
  2. Extract the female and male entries (the decimal value) and returns it as an integer
  3. Find the total of the male and female dog entries (sum of digits of integer value)
  4. Determine if an entry is valid or invalid and returns a boolean (0 or 1).

    Write a function for each task above

Sample Cases:

Deadline

29th November 2022, 11:59 PM.

Guidelines

Assignment Registration