#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
#include <unistd.h>//library for sleep
using std::cin;
using std::cout;
using std::endl;
using std::setw;
using std::setfill;//used to make 5-digit ID's
using std::string;
class Student//class required to store the user's ID, name and
time spent on the computer.
{
private:
//needed variables..kept private
int time;
int ID;
string Name;
public:
//setters & getters
void setName(string);
string getName();
void setID(int);
int getID();
void setTime(int);
int getTime();
Student();//constructor
~Student();//deconstructor
};
//deconstructor for the class Student, empty braces
Student::~Student(){}
Student::Student()//just gives initial values to the three
private variables of the class
{
ID = -1;//will store the random ID
Name = "";//stores the valid string from user
time = 0;//stores the time desired by user
}
//Pre: just needs to be called with a string type
parameter
//Post: nothing returned but Name gets the parameter x
void Student::setName(string x)
{
Name = x;
}
//Pre: needs to be called with dot operator
//Post: returns the value in Name (string)
string Student::getName()
{
return Name;
}
//Pre: needs to be called and have an int parameter
//Post: nothing returned but ID gets the parameter y
void Student::setID(int y)
{
ID = y;
}
//Pre: needs called by . operator
//Post: returns the value in ID as an int
int Student::getID()
{
return ID;
}
//Pre: needs to be called and have an int parameter
//Post: nothing returned but time gets the parameter z
void Student::setTime(int z)
{
time = z;
}
10. A manager is responsible for n machines. In any given period, the probability that exactly...
10. A manager is responsible for n machines. In any given period, the probability that exactly k machines will break down is Tk> 0 (πΟΤ π1+π2+ π,-1), where k is any whole number between 0 and n: k=0, 1, 2, , n. The Tk are "true" probabilities but are known only to the manager. The manager must report these probabilities to the control authority. In the absence of any re ward or penalty, he might report some wrong probabilities Po,...
Ch 04: Mastery Assignment - Introduction to Probability 4. Scrabble SCRABBLE is a word game in which two to four players score points by forming words from individual lettered tiles on a game board marked with a 15 by 15 grd. The words are formed across and down in crossword puzzle fashion and must appear in a standard dictionary. There are 100 tiles in all, including 2 blank tiles that serve as wild cards and can take on the value...
What an Executive Summary Is
An executive summary is a specific type of document that does
two things: it summarizes a research article, and it offers
recommendations as to how information from the article can be
used.
Some long reports can contain an executive summary section, as
indicated in the Pearson handbook.
Write a 2 pahe Executive Summary
In business contexts, an executive summary is always written
for a specific purpose: to explain the information in the article
to a...