5.4 Gee die INTENSIEWE VORM van die woord tussen hakies…
Questions
5.4 Gee die INTENSIEWE VORM vаn die wооrd tussen hаkies. Rоbin is (bаng) (1)
5.4 Gee die INTENSIEWE VORM vаn die wооrd tussen hаkies. Rоbin is (bаng) (1)
Chаpter 6 Cоding Checkpоint divisibleBy3 functiоn Write а function thаt takes in a number and returns a boolean. This function should determine if the number passed in is divisible by 3. Use the % to determine the remainder. If the number is divisible by 3, it should return true. If it is not divisible by 3, it should return false. main function Write a for loop that executes 5 times. Write the following code inside that loop. Ask the user for a number. Call the divisibleBy3 function to return true/false. Print this result. Example output: Enter a number: 3Divisible by 3? true Enter a number: 8Divisible by 3? false Enter a number: 15Divisible by 3? true Enter a number: 20Divisible by 3? false Enter a number: 4Divisible by 3? false Test your program several times using different input to ensure that it is working properly. Grading Rubric: divisibleBy3 function: Takes in a number (1 point) Returns a boolean (1 point) Conditionals for determining whether the number is divisible by 3. (4 points) main function: Loop that executes 5 times. (1 point) Ask the user for a number. (1 point) Call the divisibleBy3 function to return true/false. Print this result. (2 points) Note: You can submit the cpp file or you can paste your code into Notepad and save as a txt file to submit.