//Caption:Program to determine percent increase in signal power of a carrier amplitude modulated 100%by a square wave.
//Exa:4.1
clc;
clear;
close;
//Given:
//Ec^2=Pk
printf("\n After 100percent modulation energy gets doubled");
printf("\n So, \n (2Ec)^2=4*Pk");
printf("4*Pk/2=2Pk The SIGNAL POWER GETS DOUBLED \N THIS IS TYPICAL OF DIGITAL MODULATION SYSTEM WITH ON-OFF Keys OR OOK signal");