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
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
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
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, 17.02.2021 08:40
question
Mathematics, 17.02.2021 08:40
question
Social Studies, 17.02.2021 08:40
question
English, 17.02.2021 08:40
question
History, 17.02.2021 08:40
question
English, 17.02.2021 08:40
Questions on the website: 13722361