Answer:
The output of the given code as follows:
<u>Output: </u>
{"red", "green"}
Explanation:
- In the given code a list is defined, which contains three elements, which are "red, red, and green". In the next step, a string variable "element" is initialized with a value that is "red".
- Then a for loop is declared, that counts list size, and inside the loop and if block is declared, that compares the value list with element variable then it removes from the list.
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;
YouTube, Twitch, and Beam are media that you can stream on.
(If that's what you are looking for.)
Explanation:
Following are the pseudocode of the program.
Step 1: Start.
Step 2: Input the First and Second.
Step 3: Check condition, if the First is greater than the Second.
Step 4: Then, print 'First is larger'.
Step 5: Check condition, if the Second is larger than the First.
Step 6: Then, print 'Second is larger'
Step 7: Otherwise, set else.
Step 8: Then, print " Numbers are equal"
Step 9: End if.
Step 10: Stop.
Answer:
A Firmware
Explanation:
A firmware is a hardware device usually ROM (Read Only Memory) containing a program. This program will be responsible for making the device to run and perform its expected functions. examples of devices that use firmware to run are printers, computer peripheral devices, many of the modern consumer electronics, etc. The manufacturer may decide to give an update on the firmware from time-to-time if there is a need.