Answered step by step
Verified Expert Solution
Link Copied!

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.
image text in transcribed
Sample Output: Please enter your first name: Heba The number of characters in your first name is: 4 Please enter your last name: Aldahoud Your full name is: Heba Aldahoud Please enter your e-mail address: heba_d@gmail.com Username: heba_d Domain: gmail.com Please enter a date: Tuesday-04-01-2022 The entered date is today's date

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Describe sexual harassment in the global environment.

Answered: 1 week ago