Question: this is for c++ language @file p2.cpp CS 150 PEO2: INTERMEDIATE SELECTION/ LOGIC You have been dealt two cards, a and b. Each card has

this is for c++ language this is for c++ language @file p2.cpp CS 150 PEO2: INTERMEDIATE SELECTION/

@file p2.cpp CS 150 PEO2: INTERMEDIATE SELECTION/ LOGIC You have been dealt two cards, a and b. Each card has a value 0-100. Set the variable nearest to whichever value is nearest to 21 without going over. Do not use any library functions. pint nearest(int a, int b) int result; // Your code goes here UNCANNESBBW00w return result; I IIIIIIIIIIT STUDENT TESTS /// #include using namespace std; void studentTests() cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!