Back in my Day! Kids who grew up in the late 70s didn’t have a lot of options for video games, but they did have “Choose your own Adventure” books. These books were cool and let the reader make meaningful decisions. If they chose choice “A”, they would turn to a page of the book and continue their adventure. If they chose choice “B”, they would turn to a different page and read a different adventure. Your task is to design (pseudocode) and implement (source code) for a story that has four different outcomes based on two different user inputs. See appendix for checking string equality.
Pseudocode
main function
Input two characters
If 'A' and 'A'
print "Continue adventure and then continue again"
else
If 'A' and 'B'
print "Continue adventure and then read a different adventure"
else
if 'B' and 'A'
print "Read different adventure and then continue adventure"
else
if 'B' and 'B'
print "Read different adventure and then read different adventure again"
Source Code
#include <iostream>
using namespace std;
int main()
{
char choice1, choice2;
cout << "First choice: ";
cin >> choice1;
cout << endl;
cout << "Second choice: ";
cin >> choice2;
cout << endl;
if (choice1 == 'A' && choice2 == 'A') {
cout << "Continue adventure and then continue again";
}
else if (choice1 == 'A' && choice2 == 'B') {
cout << "Continue adventure and then read a different
adventure";
}
else if (choice1 == 'B' && choice2 == 'A') {
cout << "Read different adventure and then continue
adventure";
}
else if (choice1 == 'B' && choice2 == 'B') {
cout << "Read different adventure and then read different
adventure again";
}
return 0;
}
comment down for any queries
please give a thumbs up
Back in my Day! Kids who grew up in the late 70s didn’t have a lot of...
IN JAVA!!! PSEUDOCODE ONLY!!! Back in my Day! Kids who grew up in the late 70s didn’t have a lot of options for video games, but they did have “Choose your own Adventure” books. These books were cool and let the reader make meaningful decisions. If they chose choice “A”, they would turn to a page of the book and continue their adventure. If they chose choice “B”, they would turn to a different page and read a different adventure....
Hello! Could you please write your own four paragraph (5-6 sentences per paragraph) take away or reflection of the below information? Please complete in 24 hours if possible. Thank you! RIS BOHNET THINKS firms are wasting their money on diversity training. The problem is, most programs just don’t work. Rather than run more workshops or try to eradicate the biases that cause discrimination, she says, companies need to redesign their processes to prevent biased choices in the first place. Bohnet...
Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...