Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ coding please, previous example is incorrect so please dont copy and paste program using the HW 6 Problem B submission link in Moodle. Problem

C++ coding please, previous example is incorrect so please dont copy and paste image text in transcribed
program using the HW 6 Problem B submission link in Moodle. Problem C: Pairs of people (5 points extra credit) Ask the user to enter a file name. This file has the format: " :) ". This indicates that and want to be in a group together. Print out all possible pairings that make everyone happy. If there are no such pairings, display this as well. (Note: there should be no possible pairings if the number of people are odd, as one person will be "left out") Example 1 (user input is underlined): What file? pref.txt (Lysandros, Yale) (sanjana, Lorea) Example 2 (user input is underlined): What file? (Lysandros, Sanjana) (Yale, Lorea) (Moyra, Arya) (Ninlil, Kat ja) (Lysandros, Sanjana) (Yale, Lorea) (Moyra, Ninlil) (Arya, Katja) (Lysandros, Sanjana) (Yale, Lorea) (Moyra, Ninlil) (Arya, Katja) (Lysandros, Yale) (Sanjana, Lorea) (Moyra, Arya) (Ninlil, Katja) (Lysandros,Yale) (Sanjana, Lorea) (Moyra, Ninli1) (Arya, Kat ja) (Lysandros, Yale) (Sanjana, Lorea) (Moyra, Ninli1) (Arya, Kat ja) (Lysandros, Ninli1) (Sanjana, Lorea) (Yale, Moyra) (Arya, Katja) (Lysandros, Ninli1) (Sanjana, Lorea) (Yale, Moyra) (Arya, Kat ja) (Lysandros, Ninl11) (Sanjana, Kat ja) (Yale Lorea) (Moyra, Arya) (Lysandros,Katja) (sanjana, Lorea) (Yale, Ninlil) (Moyra, Arya) Example 3 (user input is underlined): What file? No pairs found

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

More Books

Students also viewed these Databases questions

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago

Question

3. Develop a case study.

Answered: 1 week ago