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;
}
<u>Answer:</u>
<em>D. three crashes within three years.</em>
<u>Explanation:</u>
Rules differ from Country to Country. <em>In United States Of America, the traffic rules are so strict and the process of License</em> is followed strictly and people who are violating rules gets a penalty or punishment in such a way that it changes their <em>mindset to follow the traffic rules strictly.</em>
All these are done to <em>safe guard people, avoid injuries and sudden loss of death due to accidents.</em>
So if a driver has done three crashes within <em>36 months of time, then the driver license is likely to get cancelled within 90 days.</em>
<em>In order to avoid this it is necessary for the driver to appear for improvement course of driving and appear for the test once again.</em>
The question has multiple choices;
<span>A) </span>Incremental budgeting.
B) Performance budgeting.
C) Program budgeting.
D) Target based budgeting.
I’d say D is the answer; Target based budgeting
Target based budgeting focuses on the achievement of goals
and competition. Prices in Target based budgeting are used as a tool to make or
break sales. This method includes researching the markets to decide at what
exact price a product will sell.
This is all you need to do for this one add quotes around the number to make it a string. Then for the question I don't know if you need to answer it but I said that when there is only one string it creates and addition problem of 24 + 24 and then when there are two strings it puts them right next to each other making it look like the number 2424.