3. if-else-end loop Postage of a registered mail is 4,000 won and regular mail is 2.700 won. Complete the program to calculat

3. if-else-end loop Postage of a registered mail is 4,000 won and regular mail is 2.700 won. Complete the program to calculate the total postage depending on the type of mail. 1 n = input(‘Type in Number of Parcels:”): 2 type = input(‘Choose the Type. (Registered=1. Reuglar=0):): 3 if type == 1 charge 5 else 6 charge = 7 end 8 fprintf(‘Total Postage is %i won.Wn. ): 4. Complete the program that determines the sign of a number, 1 mynumber = input(‘Type in the Number: ‘) : 2 sgn = sign 13 case fprintf(‘%i is Negative.wn’, mynumber): case fprintf(‘%i is Zero. Wn’, mynumber): fprintf(‘%i is Wn’, mynumber):



Source link

Leave a Reply

Your email address will not be published.