subject
Engineering, 18.02.2020 17:52 crystalpearl188

We're going to create a password generator by encoding some user input. The program should behave as follows: The user should be prompted for three values: their first initial, their age, and the amount of money in their pocket. Each of those values will be used to generate a password. The initial entered should be converted to an integer value. The age should be converted to a double floating point value. The money amount should be converted a character. Further details are listed below: After the values have been encoded, they should be displayed to the user separated by dashes. Requirements :In addition to the main functions, your program should have 4 more functions: 1. encode IntToDouble() 2 Input Parameters: int 3. Returned Output: 4. double Functionality: This function should take an integer value, multiply it by 1.6, and return the resulting double value to the calling function. 1. encode DoubleToChar() 2. Input Parameters: 3. double Returned Output: char 4. Functionality: This function should take a double value, cast it to a char, mod it by 3, add an exclamation point '!' to it, and return the resulting character value to the calling function. 1. encodeCharToInt () 2. Input Parameters: char 3. Returned Output: int 4. Functionality: This function should take a character value, add 12 to it, and return the resulting integer value to the calling function.1. printNewCode () 2. Input Parameters: int, 3.double, char Returned Output: none 4. Functionality: This function should display each value to the screen, separated by a dash.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
question
Engineering, 04.07.2019 18:20
Find the kinematic pressure of 160kpa. for air, r-287 j/ kg k. and hair al viscosity of air at a temperature of 50°c and an absolute (10 points) (b) find the dynamic viscosity of air at 110 °c. sutherland constant for air is 111k
Answers: 3
question
Engineering, 04.07.2019 18:20
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
You know the right answer?
We're going to create a password generator by encoding some user input. The program should behave as...
Questions
question
Mathematics, 20.08.2019 07:30
question
Mathematics, 20.08.2019 07:30
question
English, 20.08.2019 07:30
Questions on the website: 13722367