Pseudocode algorithms are used as prototypes of an actual program.
The required pseudocode algorithm is as follows:
- <em>Start</em>
- <em>input name, score, test_worth</em>
- <em>percent_score = score/test_worth * 100</em>
- <em>print name, percent_score</em>
- <em>Stop</em>
<em />
<em />
The first line begins the pseudocode algorithm
<em>Start</em>
The second line gets input for the student's name, score and the worth of the test
<em>input name, score, test_worth</em>
The third line calculates the percentage score
<em>percent_score = score/test_worth * 100</em>
The next line prints the student's name and the percentage score
<em>print name, percent_score</em>
The last line ends the pseudocode
<em>Stop</em>
<em />
<em />
<em />
Read more about pseudocode algorithms at:
brainly.com/question/21172316
The two basic windows 8 setting for network security are
Public and private network. The private network settings mean that you can link
home group and make remote desktop connections. Public network settings entail the
greatest privacy. You should make sure file or device sharing is disabled for
having data copy.
<span> </span>
Nope I'm not having any trouble with this application try redownloading
Answer:
The code is given below. Follow the question and the code definitions for better understanding.
Explanation:
#include<iostream>
#include<string>
using namespace std;
int main(){
string pastWord="";
string currentWord,nextWord;
int n,t;
int singleton=0;
int consecutive=0;
cout<<"Enter words. ('xxxxx' to exit):\n";
cin>>nextWord;
do{
currentWord=nextWord;
cin>>nextWord;
if ( (currentWord!=pastWord)&&(currentWord!=nextWord) )
singleton++;
else if((currentWord==pastWord)&&(currentWord!=nextWord))
consecutive++;
pastWord=currentWord;
}while(nextWord!="xxxxx");
n=singleton;
t=consecutive;
cout<<"There were "<<n<<" singletons and "<<t<<" consecutive repetitions.";
cin.get();
return 0;
}