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 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
Engineering, 06.07.2019 03:30
The load on a bolt consists of an axial pull of 10 kn together with a transverse shear force of 5 kn. the bolt material has a yield strength of syt syc 100 mpa. find the diameter of the bolt at factor of safety n-0.5, n 1 and n-2 using maximum shear stress theory
Answers: 3
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, 12.11.2020 01:00
Questions on the website: 13722363