Question: code in C Program Save your program as encoder.c We're going to create a password generator by encoding some user input. The program should behave


code in C
Program Save your program as encoder.c 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: encode IntToDouble() Input Parameters: int Returned Output: double Functionality: This function should take an integer value, multiply it by 1.6, and return the resulting double value to the calling function. encode DoubleToChar() Input Parameters: double Returned Output: char 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. encodeCharToInt () Input Parameters: char Returned Output: int Functionality: This function should take a character value, add 12 to it, and return the resulting integer value to the calling function. printNewCode () Input Parameters: int, double, char Returned Output: none Functionality: This function should display each value to the screen, separated by a dash
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
