Answer:
C++ code is given below
Explanation:
#include<iostream>
#include <cstring>
using namespace std;
int housekeeping(string EOFNAME);
int mainLoop(string name,string EOFNAME);
int finish();
void main()
{
string name;
string EOFNAME = "ZZZZ";
cout << "enter the name" << endl;
cin >> name;
if (name != EOFNAME)
{
housekeeping(EOFNAME);
}
if (name != EOFNAME)
{
mainLoop(name , EOFNAME);
}
if (name != EOFNAME)
{
finish();
}
system("pause");
}
int housekeeping(string EOFNAME)
{
cout << "enter first name " << EOFNAME << " to quit " << endl;
return 0;
}
int mainLoop(string name, string EOFNAME)
{
int hours;
int rate,gross;
int DEDUCTION = 45;
int net;
cout << "enter hours worked for " << name << endl;
cin >> hours;
cout << "enter hourly rate for " << name << endl;
cin >> rate;
gross = hours*rate;
net = gross - DEDUCTION;
if (net > 0)
{
cout << "net pay for " << name << " is " << net << endl;
}
else
{
cout << "dedections not covered.net is 0.";
}
cout << "enter next name or " << EOFNAME << " to quit" << endl;
cin >> name;
return 0;
}
int finish()
{
cout << "end of job"<<endl;
return 0;
}
It should not be capable of free action because there's no telling if it would be friendly for good remarks or mean for rude remarks
Answer:
if(goodsSold>500000){
bonus = 10000;
}
Explanation:
A complete Java program that prompts user to enter value for goodsSold is given below:
<em>import java.util.Scanner;</em>
<em>public class num14 {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Enter goods Sold: ");</em>
<em> int goodsSold = in.nextInt();</em>
<em> int bonus =0;</em>
<em> if(goodsSold>500000){</em>
<em> bonus=10000;</em>
<em> }</em>
<em> System.out.println("You bonus for "+goodsSold+" is "+bonus);</em>
<em> }</em>
<em>}</em>
Answer:
See explaination
Explanation:
No of Mobiles=x1
No of Work stations=x2
Constraints:
50x1+70x2<=1,60,000
250x1+700x2 <= 1,20,00,000
x1>=0 x2>=0
Objective function N(x1,x2)= 7800000000 x1+ 7200000000 x2
Excel formulae:
G17 =D9*E7+F9*G7
G18= D10*E7*F10*G7
G19=E7
G20=G7
G21= I17*E7+I18*G7 (This will be Maximum)
And E7 and G7 will be solution.
Prepare sheet as shown in diagram and set the formulae.
Go to tool and select solver. Solver dialog will open, select ‘Assume Linear model’ and ‘assume non-negative’. Click solve model and click keep solution.
See attachment.
Answer:
page layout
Explanation:
A page layout tempelate is ised toaintain the consisteency in terms of margins and page numbers .