Question Details

[solution] » Hi, You helped someone with a FIzzBuzz C++ Application that I am

Brief item decscription

Step-by-step solution file


Item details:

Hi, You helped someone with a FIzzBuzz C++ Application that I am
More:

Hi,


You helped someone with a FIzzBuzz C++ Application that I am interested in. I have downloaded it but it seems that Part 2 and Part 3 have errors.  Can you help me with that? I actually have done Part 1 on my own and succesfully, but I needed some extra help with parts 2 and 3. Thanks Marcia


#include <iostream>

 

#include <string>

 

using namespace std;

 

int FizzBuzz(int, int);

 

void printResult(int);

 

int array[100];

 

int main() {

 

int number;

 

int i = 0;

 

int noGuess = 0;

 

int rowNo, colNo;

 

int flag =0;

 

while (true) {

 

flag = 0;

 

cout << "Enter the row no:";

 

cin>>rowNo;

 

cout << "Enter the Number:";

 

cin>>colNo;

 

number = FizzBuzz(rowNo, colNo);

 

noGuess++;

 

if ((number % 3 == 0) && (number %

 

flag = 1;

 

} else if (number % 3 == 0) {

 

flag = 2;

 

} else if (number % 5 == 0) {

 

flag = 3;

 

}

 

switch (flag) {

 

case 1:

 

printResult(noGuess);

 

cout << "Number: " << number

 

break;

 

case 2:

 

cout << "Number: " << number

 

break;

 

case 3:

 

cout << "Number: " << number

 

break;

 

} } 5 == 0)) { << " - FizzBuzz" <<endl;

 

<< " - Fizz"<<endl;

 

<< " - Buzz" ; if(flag==1){

 

break;

 

} return 0;

 

}

 

int FizzBuzz(int rowNo, int colNo) {

 

array[rowNo] = colNo;

 

return array[rowNo];

 

}

 

void printResult(int number) {

 

cout<<"Number of guesses: " <<number<<endl;

 

}

 







About this question:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Feb 21, 2020

PRICE: $24

Solution~00066368298.zip (18.37 KB)

Buy this answer for only: $24

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by PayPal.
SiteLock

Need a similar solution fast, written anew from scratch? Place your own custom order

We have top-notch tutors who can help you with your essay at a reasonable cost and then you can simply use that essay as a template to build your own arguments. This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student. New solution orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

Order Now