Write a function called isOdd that receives one integer and returns true if that number is odd (has non-zero remainder when dividing by...
Search Results
Searching for: function
Individual Exercises
Write a function called count that receives (A) a string and (B) a character, and returns a count of how many times the character is...
Write a function called countVowels that receives a string and returns the count of how many vowels it has, including a,e,i,o, and u and...
Write a function called makeExcited that receives a char and permanently changes the value of it so that it becomes an exclamation mark (...
Write a function called punctuate that receives a string and permanently changes the value of that same string so that if there is a...
Write a function called exchange that receives two chars and permanently exchanges their values so each one has the value that the other...
Complete the function toggleAvailability that toggles the availability of the parameter apartment and updates it so that if it was...
Consider already having a class called gradebook that manages a student's grades for a class, but you want to define the following member...
Consider already having a class called gradebook that manages a student's grades for a class, but you want to define the following member...
Write a function called school that takes a string that represents the day of the week and displays the corresponding message:
- monday:...
Complete the calculatePrice function so that each item in the provided cart added to the total price. Any item that is "milk" costs $2.50...
Follow Destiny's demonstration and define a function called editYes that receives a parameter passed-by-reference that is of type ...