1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
adell [148]
3 years ago
6

The Atbash Cipher encrypts messages by reversing lowercase letters, so ‘a’ becomes ‘z’, ‘b’ becomes ‘y’, ‘c’ becomes ‘x’, etc...

Also, any space or punctuation mark gets repeated. For example, hello human! encrypts to svool sfnzm!! Encrypt msg and save the answer to a variable called encrypted (you don’t have to display anything). Note: msg will only have lowercase letters, punctuation and spaces. msg = input('Enter secret message: ', 's');
Engineering
1 answer:
jarptica [38.1K]3 years ago
3 0

Answer:

See Explanation Below

Explanation:

// Program is written in C++ Programming Language

// Comments are used for explanatory purpose

// Program starts here

#include<iostream>

#include <bits/stdc++.h>

using namespace std;

int main()

{

// Declare 2 string variables to store the secret message and to store the encrypted text

string message, result;

// Prompt user to enter a secret message

cout<<"Enter a secret message: ";

cin>message;

// Convert the input string to char array

int n = message.length();

char char_array[n + 1];

strcpy(char_array, message.c_str());

// Initialise result

result = "";

// Declare an array of all possible alphabets a-z

char possible[26] = { 'a','b','c','d','e','f','g,','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',w','x','y','z'};

// Generate output string

// Start by getting string position

int count = 0;

while(count<n)

{

// If current character is blank or !

if(char_array[count] = '!' || char_array[count] = ' ')

{

result+=char_array[count];

}

else

{

for(int I = 0; I<26; I++)

{

if(char_array[count] = possible[I])

{

result+=possible[25-I];

}

}

}

count++;

}

// No output required; the program stops here

return 0;

}

// End of program

You might be interested in
A glass plate is subjected to a tensile stress of 40 MPa. If the specific surface energy is 0.3 J/m2 and the modulus of elastici
Alika [10]

Answer:

The maximum length of a surface flaw is 8.24 μm

8.24 μm

Explanation:

Given that:

The modulus of elasticity E = 69 GPa

The specific surface energy \delta_s = 0.3 J/m²

The length of the surface flaw "a" = ??

From the theory of the brittle fracture;

\sigma _c = \bigg (  \dfrac{2E \delta_s}{\pi a}  \bigg )^{1/2}

Making a the subject of the formula; we have:

a = \bigg (  \dfrac{2 \times E \times \delta_s}{\pi \sigma _c ^2}  \bigg )

a= \bigg (  \dfrac{2 \times 69*10^9 \times 0.3}{\pi (40*10^6)^2}  \bigg )

a = 8.24 × 10⁻⁶ m

a = 8.24 μm

Thus; the maximum length of a surface flaw is 8.24 μm

3 0
3 years ago
PLEASE HELP, TEST MULTIPLE CHOICE QUESTIONS
Rina8888 [55]

Answer:

c

Explanation:

dbfjex vadamhqrmtwg

8 0
3 years ago
Read 2 more answers
Critical Thinking Scenario The Vice President for Compliance Management, Alexander Goodenuff, supports the position taken by Hen
Kisachek [45]

Answer:

True, True

Explanation:

1st Scenario: Purchase of new contamination equipment would indicate that the plant had been violating environmental regulations and reporting false data. So, Cathy and Henry must not purchase and install new contamination equipment unless the data indicates serious violatino of environmental regulations.

2nd Scenario: Company has the responsibiltiy to report contamination in plant water to regulatory agencies and Cathy Martin has been assigned this responsibility to report on behalf of the company. Reporting "adjusted" or inaccurate data is against the business ethics. So, professionally Cathy Martin is responsible for her reports to regulatory agencies.

8 0
4 years ago
Air, at a free-stream temperature of 27.0°C and a pressure of 1.00 atm, flows over the top surface of a flat plate in parallel f
Morgarella [4.7K]

Answer:

Explanation:

Given that:

V = 12.5m/s

L= 2.70m

b= 0.65m

T_{ \infty} = 27^0C= 273+27 = 300K

T_s= 127^0C = (127+273)= 400K

P = 1atm

Film temperature

T_f = \frac{T_s + T_{\infty}}{2} \\\\=\frac{400+300}{2} \\\\=350K

dynamic viscosity =

\mu =20.9096\times 10^{-6} m^2/sec

density = 0.9946kg/m³

Pr = 0.708564

K= 229.7984 * 10⁻³w/mk

Reynolds number,

Re = \frac{SUD}{\mu} =\frac{\ SUl}{\mu}

=\frac{0.9946 \times 12.5\times 2.7}{20.9096\times 10^-^6} \\\\Re=1605375.043

we have,

Nu=\frac{hL}{k} =0.037Re^{4/5}Pr^{1/3}\\\\\frac{h\times2.7}{29.79\times 10^-63} =0.037(1605375.043)^{4/5}(0.7085)^{1/3}\\\\h=33.53w/m^2k

we have,

heat transfer rate from top plate

\theta _1 =hA(T_s-T_{\infty})\\\\A=Lb\\\\=2.7*0.655\\\\ \theta_1=33.53*2.7*0.65(127/27)\\\\ \theta_1=5884.51w

7 0
3 years ago
What amount of force is being exerted in the horizontal direction?
ZanzabumX [31]

Explanation:

Use trigonometry.  The horizontal force is:

Fₓ = F cos θ

Fₓ = 20 N cos 60°

Fₓ = 10 N

7 0
4 years ago
Other questions:
  • The chief engineer at a university that is constructing large number of new student dormitories decides install a counterflow co
    12·1 answer
  • Hey, I have a question, I was thinking that if you have engineering skills or drawing skill you could help me to start a project
    15·1 answer
  • True or False? A constricting nozzle is used
    6·1 answer
  • Two plates are separated by a 1/4 in space. The lower plate is stationary; the upper plate moves at 10 ft/s. Oil (viscosity of 2
    10·1 answer
  • An insulated rigid tank is divided into two compartments of different volumes. Initially, each compartment contains the same ide
    11·1 answer
  • The four important principles of flight are lift, drag, thrust, and _____.
    7·1 answer
  • stimate the force required in extruding 70-30 brass at 700C, if the billet diameter is 125 mm and the extrusion ratio is 20
    5·1 answer
  • What is a torque <br> what is a turns <br><br>​
    7·1 answer
  • What is the optimal temperature for recharging a battery?
    14·1 answer
  • true or false: the types of building materials that’s should be used in a project does not constitute a conditional for projects
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!