Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C program that does the following tasks: 1) Declare a string called First_Name and read its value from the keyboard. 2) Print to
Write a C program that does the following tasks:
1) Declare a string called First_Name and read its value from the keyboard.
2) Print to the screen the number of characters that exists in First_Name.
3) Declare a string called Last_Name and read its value from the
keyboard.
4) Declare a string called Full_Name which combines the first name and
the last name and prints the value of Full_Name to the screen.
5) Declare a string called Email and reads its value from the keyboard. After that, the program declares a string called Username to store the username part of the email and a string called Domain to store the domain part of the email. Finally, the program prints the values of Username and Domain each on a separate line.
Hint: the username and domain are separated by @ character.
6) Declare a string called System_Date and assign it Tuesday-04-01- 2022 as an initial value. After that, declare another string called Date and read its value from the keyboard. Finally, compare the System_Date and the Date strings and if both matches print the message The entered date is todays date, otherwise print the message The entered date is NOT todays date.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started