;Here are a few examples of what you›;can do with PrintF().››PROC main()›› CARD dollars1,› dollars2,› total›› BYTE cents1,› cents2,› total_cents››› CARD questions,› correct››› PutE()› PrintF("%E%EHow many dollars in your account:%E $")› dollars1=InputC()› PrintF("%EAnd how many cents: $ 0.")› cents1=InputB()›››;If the user enters more than $0.99›;then add 1 to the dollar amount. We›;have to do this twice in case they›;enter a number over 200. Remember,›;a BYTE can be up to 255›››› IF cents1>99 THEN› cents1= cents1 - 100› dollars1 = dollars1 + 1› FI› IF cents1>99 THEN› cents1= cents1 - 100› dollars1 = dollars1 + 1› FI››› PrintF("%EAnd how many dollars are you%Edepositing: $")› dollars2=InputC()› PrintF("%EAnd how many cents: $ 0.")› cents2=InputB()›› IF cents2>99 THEN› cents2 = cents2 - 100› dollars2 = dollars2 + 1› FI› IF cents2>99 THEN› cents2= cents2 - 100› dollars2 = dollars2 + 1› FI›› total = dollars1 + dollars2› total_cents = cents1 + cents2›› IF total_cents>99 THEN› total_cents = total_cents - 100› total = total + 1› FI› IF total_cents>99 THEN› total_cents= total_cents - 100› total = total + 1› FI›› PrintF("%E%EYou now have $%U.%U in your%Eaccount.%E",total,total_cents)››;************************************›;If you were to write the above line›;without a PrintF and just use our›;normal routines, you would have›;this:›;›; PutE()›; PutE()›; Print("You now have $")›; PrintC(total)›; Print(".")›; PrintB(total_cents)›; PrintE(" in your")›; PrintE("account.")›;›;This will give the EXACT same output›;as the 1 PrintF line. If you want›;to try it, just erase the ";" at›;the start of the indented lines.›;***********************************›››;Now lets do a conversion with the›;%H option››› PrintF("%E%E%EConvert to Hex%E--------------%E%E")› Print("Give me a CARD: ")› total=InputC()› PrintF("%EIn Hex %U is %H%E",total,total)›››;One last example, to use the % sign›;you have to use "%%"›;The UNTIL loop makes sure the values›;make sense.›;IMPORTANT!!!!!!›;When calculating percentages, always›;multiply by 100 before you divide.››;Here an example: If you go 10 out›;of 100 it should be 10%››;Since Action! doesn't have decimals›;if you divide first you get:›;›;10/100 = 0 (NOT .1)›;0 * 100 = 0››;You get a 0% instead of 10%›› DO› PrintF("%E%EThis will give you test results%E")› PrintF("%EHow many points possible: ")› questions=InputC()› PrintF("%E%EAnd how many correct: ")› correct=InputC()› › IF correct>questions THEN› PrintF("%EYou can't have more correct than%Etotal possible!%E")› FI› UNTIL correct