Answer:
see explaination
Explanation:
#include <iostream>
#include <string>
using namespace std;
class Employee
{
string name;
int salary;
public: Employee()
{
}
Employee(string name, int salary)
{
this->name=name;
this->salary=salary;
}
void setName(string name)
{
this->name=name;
}
void setSalary(int sal)
{
this->salary=sal;
}
string getName()
{
return name;
}
int getSalary()
{
return salary;
}
void raiseSalary(int percentage)
{
if(percentage<0)
{
cout<<"Invalid percentage";
}
else
{
salary=salary+((float)percentage/100)*salary;
}
}
};
int main()
{
int percentage;
Employee e1("Satur",1000);
cout<<"Employee details are:";
cout<<e1.getName();
cout<<e1.getSalary();
cout<<"Enter the percentage raise";
cin>>percentage;
e1.raiseSalary(percentage);
cout<<"Raise in salary:";
cout<<e1.getSalary();
return 0;
}
Answer:
The blank space around the edges of a sheet of paper — as with the page of a book — that surrounds the text is called the margin.
The device that this network administrator is most likely installing in the infrastructure is a Network Attached Storage (NAS).
<h3>What is a
Network Attached Storage (
NAS)?</h3>
A Network Attached Storage (NAS) can be defined as a file-dedicated storage device that is designed and developed to enable multiple end users and other heterogeneous client devices to store, share and retrieve data anywhere from a centralized disk, especially through a network.
In this context, we can infer and logically conclude that a Network Attached Storage (NAS) is the device that this network administrator is most likely installing in the infrastructure because it doesn't require licensing and the data stored on it at the file level can be accessed anywhere.
Read more on Network Attached Storage here: brainly.com/question/14456295
#SPJ1
Answer:
The debugged program is as follows:
A=2
B=2
For I=1 to 10
PRINT A
TEMP = A
A=B
B=TEMP+A
NEXT I
END
Explanation:
First, the value of B should be changed to 4 (because the second term of the sequence is 2
Next, change Display to Print because Q-basic uses the print keyword to display output
The sequence is not properly generated. So, I update that part of the program to:
<em>For I=1 to 10
</em>
<em>PRINT A
</em>
<em>TEMP = A
</em>
<em>A=B
</em>
<em>B=TEMP+A
</em>
<em>NEXT I
</em>
<em />
Lastly, the loop is controlled by variable I (not X).
So change NEXT X to NEXT I