Answer:
The following are the code in the C++ Programming Language.
//define header file
#include <iostream>
// using namespace
using namespace std;
//define a class
class Accumulator
{
//set private access modifier
private:
//declare integer type variable
int sum;
//set public access modifier
public:
//define constructor
Accumulator (int sum)
{
//refer the same class as instance variable
this->sum = sum;
}
//define integer type function
int getSum()
{
//return the value of sum
return sum;
}
//define void type function
void add (int value)
{
//variable sum is increased by the argument value
sum += value;
}
};
Explanation:
<u>The following are the description of the code</u>.
- Firstly, set the required header file and namespace then, define a class 'Accumulator' and inside the class.
- Set private access modifier then, declare an integer data type variable 'sum'.
- Declare a class constructor whose name is the same as the class name 'Accumulator()' and pass integer data type argument 'sum' in its parameter that refers to the same class as instance variable.
- Define a integer data type function 'getSum()' that return the value of the variable sum.
- Finally, define a void type function 'add()' and pass the integer data type argument 'value' in its parameter in which the variable sum is increased by the argument value
.
The factors which should be considered by Daniel are the RAM capacity and the Processor Core of the computer.
Computer games especially racing and football games are usually memory intensive and as such will require a good amount of RAM in other to ensure that the game runs smoothly as the RAM provides a temporary storage required for applications or programs to run smoothly.
Also, the processor core has to be put into consideration, Daniel will need a multi - core processor in other to aid the smooth running of his racing game.
Therefore, the factors that should be considered are the RAM and processor core.
Learn more :brainly.com/question/25010930
For each user who comes to your site the google analytics automatically capture the traffic source dimensions Source, Medium, Campaign name.
<u>Explanation:</u>
Source:
- There cannot be any reference to a website without an origin source.
- The source is basically the origin of your traffic such as a search engine (google) or a domain (ex: Twitter).
Medium:
- Every referral to a website also has a medium along with the source.
- examples are -: unpaid search, "cost per click", referral, mail.
Campaign name:
- The campaign Name is the name referring to the google ads campaign.
Explanation:
AIAI or artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems. These processes include learning, reasoning and self-correction. Some of the applications of AI include expert systems, speech recognition and machine vision. Artificial Intelligence is advancing dramatically. It is already transforming our world socially, economically and politically.
AI was coined by John McCarthy, an American computer scientist, in 1956 at The Dartmouth Conference where the discipline was born. Today, it is an umbrella term that encompasses everything from robotic process automation to actual robotics. AI can perform tasks such as identifying patterns in the data more efficiently than humans, enabling businesses to gain more insight out of their data. With the help from AI, massive amounts of data can be analyzed to map poverty and climate change, automate agricultural practices and irrigation, individualize healthcare and learning, predict consumption patterns, streamline energy-usage and waste-management.