Exercise 11 1. Write a program that accepts two input strings. Then check length of the strings. • If they are the same

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Exercise 11 1. Write a program that accepts two input strings. Then check length of the strings. • If they are the same

Post by answerhappygod »

Exercise 11 1 Write A Program That Accepts Two Input Strings Then Check Length Of The Strings If They Are The Same 1
Exercise 11 1 Write A Program That Accepts Two Input Strings Then Check Length Of The Strings If They Are The Same 1 (29.27 KiB) Viewed 63 times
Exercise 11 1. Write a program that accepts two input strings. Then check length of the strings. • If they are the same length, type "Same". • But if not equal, check which one is longer? Display a longer message. 2. Write a program to get 1 sentence, store it in variable s, and count the number of uppercase and lowercase letters. Input: S: String type data to store a single text sentence. Output Number of words in a sentence. Each word in a sentence is separated by a space. • Number of uppercase letters in a sentence. Number of lowercase letters in a sentence. Example Run #1 > Enter a sentence: Nearly 1 million kids ages 5 to 10 expected to receive first Covid vaccine dose by end of Wednesday. > Words: 19 > Uppercases: 3 > Lowercases: 74 Example Run #2 >Enter a sentence: NEARLY 1 MILLION KIDS AGES 5 to 10 EXPECTED to RECEIVE FIRST COVID VACCINE DOES by END of WEDNESDAY Words: 19 Uppercases: 69 Lowercases: 8
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply