Write a program that reads from the user the description of the recharge vouchers prepaid card of the phone
line. The user must enter a character, and the program should handle both capital and small letter alphabets.
The characters must be 'S', 's', 'M', 'm' as shown in the following table:
Vouchers type
Small card
Medium card
Symbol
cost
Days
S or s
12$
10 days
M or m
18$
20 days
The program computes and displays the price of the voucher and the number of the valid days. Note that if
the user enters a wrong character, the message "Sorry, you entered a wrong character" is displayed.
Sample run1:
Enter the voucher type (S: small, M: medium): S
You should pay 12$.
You line is valid for 10 days
Sample run2:
I
Enter the voucher type (S: small, M: medium): m
You should pay 18$.
You line is valid for 20 days
Sample run3:
Enter the voucher type (S: small, M: medium): C
Sorry, you entered a wrong character