You are planning a picnic You know children eat one burger a
     You are planning a picnic. You know:  children eat one burger;  adults eat two burgers;  each burger weighs 1/4 pound;  hamburgers come only in one pound packages.  Write a MATLAB script that will:  prompt the user for the number of children and the number of adults attending;  compute and output (with a message) the number of 1.0 lb packages of hamburgers needed. 
  
  Solution
matalab program:
nc=1;
 na=2;
 p=4;
 c=input(\'Enter number of children:\');
 a=input(\'Enter number of adults:\');
 n=c*nc+a*na;
 np=n/p;
 if n%p!=0
 np=ceil(np);
 end
 prompt=\'number of packages \';
 display(prompt);
 np
output:
Enter number of children:5
 Enter number of adults:6
prompt =
number of packages
 np =
5

