#include using namespace std; /*complete the function to multiple the megabytes, don't forget to set the parameter*/void promotion() { //taking multiplier as input int multiplier; cin>>multiplier; }...

#include using namespace std; /*complete the function to multiple the megabytes, don't forget to set the parameter*/ void promotion() { //taking multiplier as input int multiplier; cin>>multiplier; } int main() { //getting initial count of megabytes int megabytes; cin >> megabytes; //printing the count of megabytes before the promotion cout < "before="" the="" promotion:="" "="">< megabytes="">< endl;="" complete="" the="" function="" call="" promotion();="" printing="" the="" count="" of="" megabytes="" after="" the="" promotion="" cout="">< "after="" the="" promotion:="" "="">< megabytes="">< endl;="" return="" 0;="">You operate a mobile provider running a promotion that multiplies a user's internet bandwidth.<br>Fix the program by completing the function and calling it, so that the given megabyte outputs before and after the promotion<br>work correctly.<br>The multiplier is taken as input inside the multiplier function.<br>Sample Input<br>2<br>Sample Output<br>Before the promotion: 5<br>After the promotion: 10<br>Explanation<br>The first input is the count of megabytes, the second is multiplier.<br>The first outputted line represents the count of megabytes before the function-multiplier call, and the second one - after.<br>

Extracted text: You operate a mobile provider running a promotion that multiplies a user's internet bandwidth. Fix the program by completing the function and calling it, so that the given megabyte outputs before and after the promotion work correctly. The multiplier is taken as input inside the multiplier function. Sample Input 2 Sample Output Before the promotion: 5 After the promotion: 10 Explanation The first input is the count of megabytes, the second is multiplier. The first outputted line represents the count of megabytes before the function-multiplier call, and the second one - after.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here