Computer Science, asked by nuredinhassen, 9 months ago

Write a program that asks the user for his or her name, then asks the user to enter a sentence
that describes himself or herself. Here is an example of the program’s screen:
Your program should meet the following requirements:
 Be a function named “main”
 The program should ask for the age of the user. If the user is less than 18 years old, the program
should terminate and write a message to the “error.txt” file. But if the user is 18 years and
above, the program should prompt the user to enter full names and give a description. These
details should then be written to a file – “userinfo.txt”.
**You must use input and function to complete this task
**An ELSE block must be included in the code

Answers

Answered by abuzar6467
0

Answer:

djdjchcxjxiccjdkdsswws

Answered by babes1513silfa
0

Answer:

Input:

Enter the name of a girl : Radhika

Is the girl married (Y-Yes, N-No) : yes

Output:

Her full name is : Mrs. Radhika

Input:

Enter the name of a girl : Radhika

Is the girl married (Y-Yes, N-No) : no

Output:

Her full name is : Miss Radhika

Explanation:

here is an example.

PLEASE MARK ME AS BRAINLIEST ❤️❤️❤️❤️❤️❤️

Similar questions