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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, qwertylol12345
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
image
Engineering, 04.07.2019 18:10, dval1146
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
image
Engineering, 04.07.2019 18:10, ayoismeisjjjjuan
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
image
Engineering, 04.07.2019 18:10, mamasbug4285
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
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 in other subjects:

Konu
Mathematics, 21.05.2020 00:01
Konu
Mathematics, 21.05.2020 00:01
Konu
History, 21.05.2020 00:01