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:
Tell her to hold the Shift key as she hits Enter.
Answer:
the answer is A my mom is a accountant and she pretty much told me everything she knows... lol
Explanation:
plz give brainliest and rating hope this helps^_^
A way to make the metro system more sustainable is to use machine learning so as to optimize the frequency of train routes using passenger load.
<h3>What is a sustainable transport system?</h3>
This sustainable transport system is known to be a kind of system that aids the basic access and growth needs of the society to be met rightly and safely.
This also should be meant in a way that is consistent with human and ecosystem health, and boast equity in all successive generations.
Other methods are the use of Cooling System to lower temperature and non waste of Energy and also lower the Noise Levels.
learn more about Sustainability from
brainly.com/question/25032305
edit is the 5th and distribute is the final stage in process of media production