(Solved):Using WHILE… WEND loop, Write a program to ask the marital status and age of 6 people. Use select.. case inside the loop to count and display the number of people who are, “Married”, “Single”, “… View Answer…

 

Question

Using WHILE… WEND loop, Write a program to ask the marital status and age of 6 people.

Use select.. case inside the loop to count and display the number of people who are, “Married”, “Single”, “Divorced”, and “Separated”.

Under each group count the people in the age group of the 20s, 30s, 40’s and above 50s. ( Use Nested select.. case)

 

EXPERT ANSWER

#include <iostream>
#include <string>
using namespace std;
int main()
{
    int age[10],

Scroll to top