Answer:
see explaination
Explanation:
Please find the screenprint and the VBA code. As shown in the screenprint, range B1 is used to enter the number of petals. If you want to use a different cell for petals input, then change the code accordingly.
Also, the VBA code is placed in the Sheet1 module. No new modules are inserted.
Screenprint: see attachment for screenshot
VBA Code:
Private Sub CommandButton1_Click()
Call daisyDecisions
End Sub
Private Sub daisyDecisions()
Dim remainder As Integer
Dim noOfPetals As Integer
noOfPetals = Sheet1.Range("B1").Value
remainder = noOfPetals Mod 2
If remainder <> 0 Then
MsgBox "He/She loves you!!!"
Else
MsgBox "He/She loves you not!!!"
End If
End Sub
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:
My answer to the question is Sport Activity
True a function is a predefined formula
Explanation:
IT or information technology refers to the development, maintenance, and use of computer software, systems, and networks. “Information technology refers to anything related to computing technology. The Internet, for example, comes under the umbrella term IT. So does computer hardware, software, and networking.”