Skip to main content

Posts

Showing posts from December, 2019

Program assignments

- Write a program to capitalize the first letter of each word in a sentence. Go to the editor Input a Sentence: the quick brown fox jumps over the lazy dog.        The Quick Brown Fox Jumps Over The Lazy Dog. -Write a program to convert a given string into lowercase. Go to the editor Input a String: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.          the quick brown fox jumps over the lazy dog. -Write a program to find the penultimate (next to last) word of a sentence. Go to the editor Input a String: The quick brown fox jumps over the lazy dog. Penultimate word: lazy -Write a program to compute the sum of the first 100 prime numbers.