Answer:
class Home // create class Home
{
// instance variable declaration
string county; // variable county of string datatype
string street; // variable street of string datatype
int housenumber; // variable housenumber of int datatype
string state; // variable state of string datatype
}
Explanation:
Here we declared a class 'Home ' which consist of 4 instance variable.
The instance variable are declared inside the class.We declared variable county,street,state as string type and housenumber as integer type.
Answer:
while(is_sunny=="n")
Explanation:
The loop keeps repeating itself until a certain condition is met.
Here while loop keeps executing until value of is_sunny is not equal to 'n'
When the value of is_sunny is not equal to n then the loop stops.
So lets explain this logic with a chunk of code:
#include <iostream> //to use input output functions
using namespace std; //to identify objects like cin cout
int main() { //start of main function
string is_sunny = "n"; //value of is_sunny is set to n
cout<<"Enter value of is_sunny: "; // prompts user to enter value of is_sunny
cin>>is_sunny; // reads value of is_sunny from user
while(is_sunny=="n") // keeps iterating until value of is_sunny is not equal to n
{ cout<<"keep executing until is_sunny is not equal to n"<<endl;//display this message with each iteration
cout<<"Enter value of is_sunny: "; //keeps prompting to enter is_sunny
cin>>is_sunny; } } //keeps reading value of is_sunny from user
Now if the user keeps entering "n" as value of is_sunny then the loop keeps repeating. When the user enters any string other than n then the loop breaks. The output of the program is attached.
It appears that they might be labeled "Hidden" in the properties of that file. Right Click on Properties and Uncheckmark Hidden<span />
Answer:
This seems to be related to MS Excel, here we will discuss the related formula:
<u>=IF(VLOOKUP("Adam Moriarty",$B$3:$C$5,2)>23,"Yes","No")</u>
the name can also be written in adjacent to J2 cell i.e. I2 and its reference to be used in vlookup primary key as follows:
<u>=IF(VLOOKUP(I2,$B$3:$C$5,2)>23,"Yes","No")</u>
Explanation:
We have used simple IF function combined with VLOOKUP function to reference this formula to the table of names and ages of the members (here the table is $B$3:$C$5 and ages are mentioned in 2nd column of the table)
please find attached screenshot for clarification