~thank you!

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

~thank you!

Post by answerhappygod »

~thank you!
Thank You 1
Thank You 1 (20.42 KiB) Viewed 65 times
CHALLENGE ACTIVITY Start 10.3.1: Character operations A 3-character string, userPassword, is read from input. Replace the first character in userPassword with @if the first character is alphabetic Replace the second character in userPassword with 'S if the second character is alphabetic. If neither condition is true, userPassword is not changed. Ex: If the input is bh2, then the output is: @$2 1 #include <iostream> 2 #include <string> 3 #include <cctype> 4 using namespace std; S 6 int main() 7 8 9 10 11 12 13 14 15 16 string userPassword; getline(cin, userPassword); Your code goes here / cout << userPassword << endl; return 0; H
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply