Answer:
1. G=D+(A+C^2)*E/(D+B)^3
cobegin:
p1: (D+B)
p2: p1^3
p3: C^2
p4: A+ p3
p5: E/p2
p6: p4 * p5
p7: D + p6
:G
coend
2. Now The value A=2, B=4, C=5, D=6, and E=8
p1: 6+4 =10
p2: p1 ^3= 10^3= 1000
p3: c^2= 5^2 =25
p4: A + p3= 2 +25 =27
p5: 8/1000
p6: 27 *8/1000
p7: D+ P6= 6+ 216/1000
= 6216/1000
=6.216
Explanation:
The above, first bracket with power is processed, and then power inside and outside bracket. And rest is according to BODMAS, and one process is solved at a time.
Answer:
The steps that Fatima needs to follow in-order to send an email on the Outlook include:
1. Open the Outlook application.
2. Under the Home tab, click the New Email button.
3. Click the To button to choose a contact
4. Click the Send button after typing the message.
Explanation:
For every new email to be sent out through the Outlook, there are steps to follow like ensuring that the Outlook application is appropriately opened. Later, a<em><u> tab showing new email should be clicked to open the dialogue box for typing the email message.</u></em>
<em>After the message has been typed, a contact to whom the message is going to be sent to is selected before actually sending out the message by a click of a button.</em>
Answer:
class Main {
static void printPowers(int howMany, int nrRows) {
for(int n=1; n<=nrRows; n++) {
for(int power = 1; power<=howMany; power++) {
System.out.printf("%d ", (int) Math.pow(n, power));
}
System.out.println();
}
}
public static void main(String[] args) {
printPowers(3, 5);
}
}
class Main {
static void printPowers(int howMany, int nrRows) {
int n = 1;
do {
int power = 1;
do {
System.out.printf("%d ", (int) Math.pow(n, power));
power++;
} while (power <= howMany);
System.out.println();
n++;
} while (n <= nrRows);
}
public static void main(String[] args) {
printPowers(3, 5);
}
}
Explanation:
The for loop gives the cleanest, shortest code.
Answer:
#include <iostream>
# include <conio.h>
using namespace std;
float fat_burning_heart_rate(float age);
main()
{
float age,bpm;
cout<<"enter the age of the person"<<endl;
cin>>age;
if (age>=18 && age<=75)
{
bpm=fat_burning_heart_rate(age);
cout<<"fat burning heart rate for the age of"<<age<<"="<<bpm;
}
else
cout<<"Invalid age";
getch();
}
float fat_burning_heart_rate(float age)
{
float a;
a= (220-age)*0.7;
return a;
}
Explanation:
In this program, the variable named as age has been taken to enter the age of the person, needs to calculate the burning heart rate. All the variables taken in float, as the age and fat burning heart rate should come in decimal value.
The formula has been used as mention in question that,
a= (220-age)*0.7;
The owner of the email could be using a VPN.