Answer:
C++ code is given below
Explanation:
#include <iostream>
#include <cctype>
#include <string.h>
#include <cstring>
#include <sstream>
using namespace std;
struct Car {
public:
char reportingMark[5];
int carNumber;
string kind;
bool loaded;
string destination;
};
void input(Car *);
void output(Car *);
int main() {
Car *T = new Car;
input(T);
output(T);
delete T;
return 0;
}
void input(Car *T)
{
string str, s;
cout << " Enter the reporting mark as a 5 or less character uppercase string: ";
cin >> str;
for (int i = 0; i < str.length(); i++)
T->reportingMark[i] = toupper(str[i]);
cout << " Enter the car number: ";
cin >> T->carNumber;
cout << " Enter the kind: ";
cin >> T->kind;
cout << " Enter the loaded status as true or false: ";
cin >> s;
istringstream(s) >> boolalpha >> T->loaded;
if (T->loaded == true) {
cout << " Enter the destination: ";
cin.ignore();
getline(cin, T->destination);
}
else
T->destination = "NONE";
}
void output(Car *T)
{
cout << " Reporting Mark: " << T->reportingMark;
cout << " Car Number: " << T->carNumber;
cout << " Kind: " << T->kind;
cout << " Loaded Status: " << boolalpha << T->loaded;
cout << " Destination: " << T->destination << " ";
}
Answer:
See explanation below
Explanation:
Named ranges are a very important tool in Microsoft Excel. It is used in assigning a name to a particular number of cells. It is great for automation and makes formula much easy to understand and use.
One way to create named ranges is theory the Name Box.
To create named ranges in the design marketing sheet we do this;
1) We click on cell B8 and then navigate to the name box at the top right corner of the sheet just above the column A.
•The name box is where the cell address of any cell that is active is displayed.
•You would see that “B8” is displayed on the name box.
• Double click on the name box and type in the appropriate name, in this case - Design_Fee.
• Press enter and you have your named range.
You do the same for the other named ranges.
Note that: Named ranges must contain letters, numbers or underscore.
The icons to insert pictures and clip art are located in the images grouping on the insert tab.
Answer:TRUE!!!!!!!!!!!!!!!!!!!!!
Explanation: