Question
A person X wants to distribute the property share to his children and the wife. Write a C++ program that calculates the Property Share and
A person X wants to distribute the property share to his children and the wife. Write a C++ program that calculates the Property Share and allow the user to input property worth in PKR, number of sons, the number of daughters and input Y if the wife is alive and calculate the share of each son, daughter and the wife. For property distribution consider the following:
Sons get the equal portion
Daughters get the half portion
The Wife gets 1/8 portion
Apply this scenario considering your Family, the worth of the property is your roll number in millions, for example roll number 1 is worth 1 million, roll number 2 worth 2 million and so on
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