consider the following program: #include <iostream> using namespace std; int one
ID: 3614837 • Letter: C
Question
consider the following program: #include <iostream> using namespace std; int one(int x, int y); double two(int x, double a); int main ( ) { int num; double dec; . . . return 0; } int one(int x, int y) { . . . } double two(int x, double a); { int first; double z; . . . } a. Write the definition of the function one so that itreturns the sum of x and y if x is greater than y; otherwise,it should return x minus 2 times y. consider the following program: #include <iostream> using namespace std; int one(int x, int y); double two(int x, double a); int main ( ) { int num; double dec; . . . return 0; } int one(int x, int y) { . . . } double two(int x, double a); double two(int x, double a); { int first; double z; . . . } a. Write the definition of the function one so that itreturns the sum of x and y if x is greater than y; otherwise,it should return x minus 2 times y.Explanation / Answer
please rate - thanks #include using namespace std; int one(int x, int y); double two(int x, double a); int main ( ) { int num,x,y; double dec; coutx; couty; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.