Answer:
#include<iostream> //i/o library
using namespace std;
int main(){
double hourlyRate = 0;
char paycheckPeriod='a';
while(paycheckPeriod<'A' || paycheckPeriod>'Z'){
cout<<"Enter paycheck period(A-Z): ";
cin>>paycheckPeriod;
}
while(hourlyRate<18 || hourlyRate>36){
cout<<"Enter hourly rate (18-36): ";
cin>>hourlyRate;
}
int hours = 0;
while(hours < 60 || hours > 120){
cout<<"Enter number of hours (60-120): ";
cin>>hours;
}
double grossPay = hourlyRate*hours;
cout<<"Gross Pay: "<<grossPay<<endl;
cout<<"federal tax: "<<0.15*grossPay<<endl;
cout<<"FICA tax: "<<0.0765*grossPay<<endl;
cout<<"state tax: "<<0.0435*grossPay<<endl;
cout<<"Net pay: "<<grossPay-(grossPay*(0.15+0.0765+0.0435));
return 0; //This makes sure that the program terminates
}
Attached is the output
Answer:
It automatically applies formatting based on specific rules or conditions being met. It automatically applies highlighting to selected cell ranges based on specific rules or conditions being met.
Explanation:
Answer:
backup() {
read dirname;
if [[ whereis . /`$dirname` 2> sterr.exe]]
then
mkdir $dirname
for f in . / *.cpp
do
cp f "path_to_dirname"
echo "file backup complete"
}
backup( )
Explanation:
The bash script above is used to backup C++ source files in a directory to a backup directory which is created if it does not exist, and copy's each .cpp file to backup, then sends a message to declare its completion.
Answer:
I know its kinda late, but the answer is (B. Insert) on edg 2021.
Explanation:
Answer: hi there! Have a good day/night :))