Answer:
Depending on the amount of files there are, the operating system will run slower because these files take up space on the hard drive, slowing it down.
Explanation:
Answer:
I wrote this myself, it should be working. I think this is what the instructions were looking for.
The code below should return
Squared: 1296
Mod: 0
Quadrupled: 16
Explanation:
def threeParams(squared, mod, quadruples):
array = [squared, mod, quadruples]
array[0] = squared ** 2
array[1] = mod % 5
array[2] = quadruples * 4
return array
valueArr = threeParams(36, 15, 4)
print(f"Squared: {valueArr[0]}\nMod: {valueArr[1]}\nQuadrupled: {valueArr[2]}")
Answer:
Disable the account until the employee is ready to use it.
Explanation:
Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
int main(){
int qty;
float discount = 0;
cout<<"Quantity: ";
cin>>qty;
int cost = qty * 100;
{ ; }
cout<<"Cost: "<<cost - discount;
return 0;
}
Explanation:
This declares the quantity as integer
int qty;
This declares and initializes discount to 0
float discount = 0;
This prompts the user for quantity
cout<<"Quantity: ";
This gets input for quantity
cin>>qty;
This calculates the cost
int cost = qty * 100;
If cost is above 1000, a discount of 10% is calculated
{ ; }
This prints the cost
cout<<"Cost: "<<cost - discount;