Answer:
I would state that performance is not the main challenge of an atm, nor is multi-threading. Robustness and provable correctness is of greater importance, and those are much easier to achieve using a single-threaded solution.
Define the missing member function. Use "this" to distinguish the local member from the parameter name.
#include
using namespace std;
class CablePlan{
public:
void SetNumDays(int numDays);
int GetNumDays() const;
private:
int numDays;
};
// FIXME: Define SetNumDays() member function, using "this" implicit parameter.
void CablePlan::SetNumDays(int numDays) {
/* Your solution goes here */
return;
}
int CablePlan::GetNumDays() const {
return numDays;
}
int main() {
CablePlan house1Plan;
house1Plan.SetNumDays(30);
cout << house1Plan.GetNumDays() << endl;
return 0;
}
Answer:
Here is the complete member function:
void CablePlan::SetNumDays(int numDays) { //member function of class CablePlan which take numDays as parameter
this->numDays = numDays; // refers to the fields numDays of CablePlan class using this keyword
return; }
Explanation:
The complete program is:
#include <iostream> //to use input output functions
using namespace std; //to identify objects like cin cout
class CablePlan{ //class
public: //public methods of class
void SetNumDays(int numDays); //method of class CablePlan that takes numDays as parameter to set the days
int GetNumDays() const; // method of class CablePlan to get no of days
private: //private data member of class CablePlan
int numDays; //private data member of class CablePlan that holds no of days
};
// FIXME: Define SetNumDays() member function, using "this" implicit parameter.
void CablePlan::SetNumDays(int numDays) { /
this->numDays = numDays; // used to refer to numDays variable of CablePlan class using this keyword
return;}
int CablePlan::GetNumDays() const { //define member function GetNumDays
return numDays;}
int main() { //start of main function
CablePlan house1Plan; //creates object of CablePlan class
house1Plan.SetNumDays(30); //uses object to call member function of CablePlan passing value 30 to it in order to set no of days
cout << house1Plan.GetNumDays() << endl; //uses object to call member function of CablePlan to get the no of days (numDays)
return 0;}
Here this keyword is used to refer to the field i.e. numDays of CablePlan class. This distinguishes local member numDays from parameter numDays using this with -> symbol.
'this' pointer retrieves the object's numDays which is hidden by the local variable numDays . The output of this program is:
30
Answer:
this.numDays = numDays;
Explanation:
You just need one line of code. "this." to access the class member, and the "." is the member access operator.
what is difference between ssd and hdd
Answer:
HDD is old-school storage device that uses mechanical platters and a moving read/write head to access data.SSD is a newer, faster type of device that stores data on instantly-accessible memory chips..SSD is little expensive than HDD and gives better performance
Answer:
Differed performance level's
In which of the following situations would you want to use GOMS/KLM as an evaluation tool?
A. Shopping mall movie rental kiosk assuming the user rarely ever rents movies
B. Amazon's create an account process
C. A teacher evaluation form that a student fills out once
D. None of the above
E. All of the above
Answer:
B. Amazon's create an account process
Explanation:
The Keystroke-Level Model (KLM) is a cognitive modeling tool which can be used in predicting the performances carried out by human on interface designs. It's the most "practical" of the GOMS methodologies.
This model tends to predict how long it will take for the completion of a routine task by an expert user. There should be no errors.
So, Option B is correct because GOMS/KLM is an evaluation tool which fits in the evaluation of Amazon's create an account process.
At the Network layer, what type of address is used to identify the receiving host?
Answer:
IP Address
Explanation:
At the Network layer, the IP address is used to identify the receiving host. It identifies the senders and receivers of data in a network.
IP Address is used to assign every node in a network which is used to identify them. Its two main purposes are 1. Address location 2. Identification of network interface.
When you collaborate or meet with a person or group online, it is called
Answer:
Web Conferencing
Explanation:
When you collaborate or meet with people online, it is called a virtual meeting or collaboration.
What are virtual meetings?They are meetings or collaborations done without the participants having to meet physically.
Instead, the participants meet via one or a combination of platforms specifically designed for such a purpose. These platforms include Discord, Slack, and so on.
More on virtual meetings can be found here: https://brainly.com/question/15293394
#SPJ2
Write a recursive function that accepts an integer argument, n. The function should display n lines of text on the screen, with the first line showing n spaces followed by an asterisk, the second line displaying n-1 spaces followed by an asterisk, to the nth line which shows 1 space and 1 asterisk.
Modern car odometers can record up to a million miles driven. What happens to the odometer reading when a car drives beyond its maximum reading?
Answer:
It would go to 1000000. Explanation:Unlike old vehicle odometers that will reach 999999 and stay there(though it is very unlikely to reach that figure) new vehicle odometers have the seventh digit reading and when it passes 999999 it would clock to 1000000.
But in reality it is less likely for vehicles to reach the 999999 mark and most vehicle owners do not get to see their vehicles reach this mark as the vehicle will either be scrapped or abandoned before it gets to that million mile
Further, the ideal behind this million miles is due to the act of bad guys who tend to spin vehicle odometers to falsify their readings making it seem as though it has not gone a long mile.
The odometer reading of a modern vehicle resets to Zero, once it's maximum odometer reading is reached.
The odometer is a recording instrument in a car which is used to measure and keep a record of the total distance a car or wheeled machine such as bicycles has covered since their manufacture. The odometer is different from a speedometer which shows the current speed at which a car is moving. The odometer keeps track of distance, such that it takes the Cummulative sum of the distance covered usually in miles. The odometer resets to 0 once it's maximum value is exceeded.Learn more : https://brainly.com/question/21087757?referrer=searchResults
A company's computers monitor assembly lines and equipment using ________ communications.
Answer:
Machine to machine communications
Explanation:
Machine to machine communication is a type of communication that exists among the technical devices. The communication is linked either with the help of wire or through wireless. The information is communicated and transmitted with this form of communication. Human involvement or intervention is not required during the transfer of data.
You have been hired to upgrade a network of 50 computers currently connected to 10 Mbps hubs. This long-overdue upgrade is necessary because of poor network response time caused by a lot of collisions occurring during long file transfers between clients and servers. How do you recommend upgrading this network?
Answer:
Following are the answer to this question:
Explanation:
A network adapter and network switches were also recommended because only 50 computer systems are accessible users could choose a router as well as two 24-port network cables. It could connect directly to a server or one computer with your router.
It can attach some other machines to a switch. If it is connected with the wireless router to the router so, it implies the ethernet port if you've had a landline installed two wireless networks throughout the location which can be easily accessed because the wired network will link all computers to all of it.
Switches could be managed or unmanaged unless circuits were also taken into account. It provides more implement strategies and remotely the controlled device can already be controlled as well as configured by the manager. In the CISCO and Dell controlled port devices, it also available for sustainabilty, that is used by the 24-port switches and for household or smaller networks, that's why we can upgrade it