Sharon has lost two jobs in the past year. She blames her co…
Sharon has lost two jobs in the past year. She blames her coworkers, who she says didn’t like her. She claims that they were purposely lying about her and that she did absolutely nothing wrong. From her behavior, it is likely that Sharon has developed ______________.
Read DetailsChapter 6 Coding Checkpoint divisibleBy3 function Write a f…
Chapter 6 Coding Checkpoint divisibleBy3 function Write a function that 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.
Read Details