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;
Well bro you see what you gotta do is be a gamer.
HIT OR MISS
I GUESS THEY NEVER MISS
H U H ?
YOU GOT A BF?
I BET HE DOESNT KISS YA
M U A H
It be like that sometimes b r u h
In a Transmission Control Protocol (TCP) header next Expected segment is provided by Acknowledgment Number
Explanation:
- TCP is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in the Internet Protocol.
- The fields in TCP Segment Header are Source Port, Destination Port, Sequence Number, Acknowledgement Number, Header Length, Flags, Window Size, TCP Checksum and Urgent Pointer.
- The Acknowledgment Number is a 32 Bit number field which indicates the next sequence number that the sending device is expecting from the other device.
- The SYN packets consume one sequence number, so actual data will begin at ISN+1. The sequence number is the byte number of the first byte of data in the TCP packet sent.
- If the acknowledgment flag is set in the flags field, the acknowledgment number field holds the sequence number of the next byte that the receiver expects.
Answer:
// here is code in c++.
// include headers
#include <bits/stdc++.h>
using namespace std;
// function that calculate days, hours, minutes and seconds
void howLong(int sec)
{
// find days
int days=sec/86400;
// update the seconds
sec=sec%86400;
// find hours
int h=sec/3600;
// update the seconds
sec=sec%3600;
// find minutes
int min=sec/60;
// update the seconds
sec=sec%60;
// output
cout<<sec<<"seconds is "<<days<<" days,"<<h<<" hours,"<<min<<" minutes,and "<<sec<<"seconds."<<endl;
}
// driver function
int main()
{ // variable
int sec;
cout<<"Enter seconds:";
// read the seconds
cin>>sec;
// call the function
howLong(sec);
return 0;
}
Explanation:
Read the seconds from user.Then call the function howLong() with parameter seconds. In the function, it will first find the number of days by dividing the seconds with 86400 then update the remaining seconds.Next it will find the hours by dividing the remaining seconds with 3600 and update the remaining seconds.After that it will find the minutes by dividing the remaining seconds with 60 and update the remaining second.Then it will print the days, hours, minutes and seconds.
Output:
Enter seconds:70000
40seconds is 0 days,19 hours,26 minutes,and 40seconds.