Computers and Technology
15.04.2020 08:01
279
434
4
Solved by an expert

#include #include #include #include using namespace std; class cypher_encryptor

#include #include
#include
#include
using namespace std;
class cypher_encryptor
{
string cypher;
public:
cypher_encryptor(string cypher)
{
this->cypher = cypher;
}
string encode(string original)
{
string result = original;
for (int i = 0; i < original.length(); i++)
{
if (original[i] == ' ') continue;
result[i] = cypher[original[i] - 'a'];
}
return result;
}
string decode(string secret)
{
string result = secret;
for (int i = 0; i < secret.length(); i++)
{
if (secret[i] == ' ') continue;
for (int j = 0; j <= 26; j++)
{
if (cypher[j] == secret[i])
{
result[i] = j + 'a';
}
}
}
return result;
}
};
class hacker
{
//Returns for each character the number of times it appears in the string
map* count_letters(string phrase)
{
// Your code starts here
// Your code ends here
}
//Returns for each count the characters that appears that number of times in the string
map>* by_counts(map counts)
{
// Your code starts here
// Your code ends here
}
public:
//Calculates the cypher using phrase as a reference and encoded
string get_cypher(string phrase, string encoded)
{
// Your code starts here
// Your code ends here
}
};
//After
Show Answers
jay1462
jay1462
4,8(88 marks)

where are the answers

Explanation:

jocelyngm
jocelyngm
4,8(75 marks)

what in the world is this!?!? what the heck!?!?

natalie6089
natalie6089
4,5(48 marks)

Relational Databases

Explanation:

These are digital databases that are made to recognize relations between previously stored items of info.

Popular Questions about the subject: Computers and Technology

The method main of a class is called when you instantiate an object...
Computers and Technology
09.02.2023 00:57
Match the certifications to their definition. microsoft certified...
Computers and Technology
03.02.2023 10:10
WEB DESIGN/CODE HS CAN SOMEONE HELP ME WITH THIS? THANK YOU...
Computers and Technology
06.04.2020 05:51
I am coding a turtle race in python I have to Use a single call to...
Computers and Technology
07.09.2022 22:31
Athick black line around the outside edge of a page is a...
Computers and Technology
29.11.2022 02:07
Fair use laws allow you to use other people’s copyrighted information...
Computers and Technology
02.04.2022 15:02
How do i restart my ipad without connecting it to itunes?...
Computers and Technology
16.01.2022 12:22
name one thing that actors had to do differently on the set after...
Computers and Technology
27.04.2023 12:30
what was the biggest on-set behavioral change that directors had to...
Computers and Technology
14.03.2021 00:36
Which of the following best characterizes the state of programming...
Computers and Technology
10.04.2023 23:48

New questions by subject

Will somebody please help me with this?? It’s due in a few minutes...
History
13.08.2021 16:23
Who were the two innovators of music during the eighteenth century?...
History
06.03.2023 04:05
Help with math please it means the world to me!!...
Mathematics
17.06.2020 09:07
NEED HELP AP ADVANCED CALCULUS QUESTION whats 8+4? also whats up with...
Mathematics
24.03.2023 08:26
If ABCD is a square, what is m∠AEB? A)30° B)45° C)60° D)90°...
Mathematics
28.09.2021 13:49
#
#
#
#
# #

We expand our knowledge with many expert answers