1.Write a program that will read in thenames (multiple-word string, ie with blanks) andsales amounts(float) for 2 staff members. It will then print the values in the following format. Use gets() functions to read the string values. Use field modifiers to format the output, so that the field width for staff name is 20 and it is left-justified. The field width for sales amount is 12 with 2 decimal places.
(Use C code (stdio.h, scanf, get, printf...) to create the program.)
Enter staff name > Ang Boon Ching
Enter sales amount > 2500.00
Enter staff name > Tong Eng Fang
Enter sales amount > 900.00
Staff Name Sales Amount
==================== ============
Ang Boon Ching 2500.00
Tong Eng Fang 900.00
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here