Question: language is c++ 1. Write a program to ask user to enter four float values. Then the program prints the four values formatted as (1)

language is c++
1. Write a program to ask user to enter four float values. Then the program prints the four values formatted as (1) one value per line; (2) each value occupies 10 positions; (3) each value must has three digits after the decimal point; (3) these numbers are right-justified. For example, if user's inputs are 2.5678, -18.7, 105.9, 1287.2328, output should look as follows: 2.568 -18.700 105.900 1287.233 2. A company is concerned that their employee password data isn't secure. Each password consists of a 5 character length string consisting of alphabet, integers, and special symbols. Develop a C++ program that will encrypt the password so that it is more secure. Your program should ask user to type and read in the initial password and encrypt it as follows: Swap the first and third digits, and swap the second and fifth digits. (Hint: Your program can use the string functions and string concatenation) For example, if the current password is "alSbz", the encrypted password is "Szabl". The program should print out the original password and the encrypted password
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
