ffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsaffdsa
Answer:
# include <iostream>
using namespace::std;
int main()
{ int hrs;
float hrly_rate= 47;
double net_Sl;
float t1;
float t2;
float t3;
float t4;
float t5;
double grss_Pay;
float bons;
cout<<"Enter number of hours worked";
cin>>hrs;
net_Sl= 47 * 387;
t1 = (4.7 * net_Sl)/100;
t2= 87;
t3=(3.7 * net_Sl)/100;
t4=3;
t5=(0.47 * net_Sl)/100;
grss_Pay= net_Sl- t1 - t2 -t3 - t4 - t5;
float tmp=grss_Pay;
double in_hnd;
if (grss_Pay<10)
{
bons= (5 * grss_Pay)/100;
in_hnd=grss_Pay+bons;
grss_Pay=grss_Pay-grss_Pay;
}
else if (grss_Pay>10 ||grss_Pay<500)
{ bons= (10 * grss_Pay)/100;
tmp=grss_Pay-grss_Pay;
in_hnd=in_hnd+bons;
}
else if (grss_Pay>500|| grss_Pay<1000)
{ bons= 500;
grss_Pay=grss_Pay-grss_Pay;
in_hnd=in_hnd+bons;
}
else if (grss_Pay>1000 || grss_Pay<=2000)
{ bons= 600;
grss_Pay=grss_Pay-grss_Pay;
in_hnd=in_hnd+bons;
}
else if (grss_Pay>2000)
{ bons= (5 * grss_Pay)/100;
grss_Pay=grss_Pay-grss_Pay;
in_hnd=in_hnd+bons;
}
cout<<"Final Salary"<<in_hnd;
return 0;
}
Explanation:
Please check the answer section.
Answer:
To inform you (the reader) of what to do and what not to do.
Explanation:
By starting it off by saying "..you must consider how you design it" and then following it up with an image of a good and bad form for an App, it gives a visual idea of the Do's and Don'ts, which can help you out much more than explaining it in text.
Hope this helped!
Source(s): None, except my mind. Hope this helped!
Explanation:
Two variables named arr1 and arr2 have been declared as pointers to integers and arr1 is allocated 10 elements and initialized to some values.
Lets allocate 20 elements to arr2
int *arr2 = new int[20];
Now using for loop we can copy 10 elements from arr1 to the first 10 elements of arr2
start from k = 0 and k < 10
for (int k = 0; k < 10; k++)
{
arr2[k] = arr1[k];
}
Again using for loop we can initialize the last 10 elements of arr2 to zero.
start from k = 10 and k < 20
for (int k = 10; k < 20; k++)
{
arr2[k] = 0;
}
Answer:
Malicious code: Trojan
Explanation:
Trojan
A Trojan is malicious code that, unlike viruses and worms, cannot reproduce itself and infect files. It is usually in the form of an executable file (.exe, .com) and does not contain any other elements, except for the Trojan's own code. For this reason the only solution is to remove it.
It has several functions -from acting as keyloggers (connecting and transmitting the actions performed on the keyboard) and deleting files to formatting disks. Some contain special functionality that installs Trojan programs, a client-server application that guarantees the developer remote access to your computer. Unlike many (legitimate) programs with similar functions, they are installed without user consent.