Marriage Validity You were hired by the City Hall of Kulafu as a programmer. Your task is to write P a spreadsheet program that will determine whether two individuals can be married legally or not. A G S The marriage will be legal depending on the following conditions: both individuals should be at least 18 years old the individuals should not have the same gender (same gender marriage is not legal in Kulafu) the individuals should not have a married status (in Kulafu, status are single, widow/widower, divorced and married) Write a program that will accept via keyboard the information regarding the age, gender and marital status of the two individuals. The following numeric coding system should be used: for gender: M or m represents Male and F or f represents Female. For marital status: S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and MA or ma represents Married. The word should output the word "LEGAL" if all the criteria above are met. Otherwise, the program should output the word "NOT LEGAL". (HINT : You will need six variables to store values of age, gender and status.) Sample output is shown R P A G S R

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Marriage
Validity
You were hired by the City Hall of Kulafu as a programmer. Your task is to write
a spreadsheet program that will determine whether two individuals can be married legally or not.
The marriage will be legal depending on the following conditions:
both individuals should be at least 18 years old
the individuals should not have the same gender (same gender marriage is not legal
in Kulafu)
the individuals should not have a married status (in Kulafu, status are single,
widow/widower, divorced and married)
Write a program that will accept via keyboard the information regarding the age,
gender and marital status of the two individuals. The following numeric coding system should
be used: for gender: M or m represents Male and F or f represents Female. For marital status:
S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and
MA or ma represents Married. The word should output the word "LEGAL" if all the criteria
above are met. Otherwise, the program should output the word "NOT LEGAL". (HINT : You
will need six variables to store values of age, gender and status.) Sample output is shown
below:
Sample Output 1
Person 1
Age
Gender
Status
20
Male
Single
Remark NOT LEGAL
Sample Output 2
Person 1
Age
17
Gender Female
Status Single
Remark
LEGAL
Your Work Here
Person 2
Person 1
Age
15 Age
20
Gender Female Gender Male
Status
Single Status Widow
Person 2
Age
22
Gender Male
Status Single
Remark
Person 2
Age
Gender
Status
20
Female
Widow
(enter your formula on the white cell)
Transcribed Image Text:Marriage Validity You were hired by the City Hall of Kulafu as a programmer. Your task is to write a spreadsheet program that will determine whether two individuals can be married legally or not. The marriage will be legal depending on the following conditions: both individuals should be at least 18 years old the individuals should not have the same gender (same gender marriage is not legal in Kulafu) the individuals should not have a married status (in Kulafu, status are single, widow/widower, divorced and married) Write a program that will accept via keyboard the information regarding the age, gender and marital status of the two individuals. The following numeric coding system should be used: for gender: M or m represents Male and F or f represents Female. For marital status: S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and MA or ma represents Married. The word should output the word "LEGAL" if all the criteria above are met. Otherwise, the program should output the word "NOT LEGAL". (HINT : You will need six variables to store values of age, gender and status.) Sample output is shown below: Sample Output 1 Person 1 Age Gender Status 20 Male Single Remark NOT LEGAL Sample Output 2 Person 1 Age 17 Gender Female Status Single Remark LEGAL Your Work Here Person 2 Person 1 Age 15 Age 20 Gender Female Gender Male Status Single Status Widow Person 2 Age 22 Gender Male Status Single Remark Person 2 Age Gender Status 20 Female Widow (enter your formula on the white cell)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY