Answer:
See Explanation
Explanation:
The question is incomplete as there is no link pointing to the houseType struct of chapter 1.
So, I've answered the question from scratch
See attachment for explanation where I used comments to explain each line.
The program is as follows:
#include <iostream>
using namespace std;
struct houseType{
int firstHouse, secondHouse;
};
int main()
{
houseType hT;
cout << "Enter the price of both house: ";
cin>> hT.firstHouse;
cin>> hT.secondHouse;
if(hT.firstHouse == hT.secondHouse){ cout<<"true"; }
else{ cout<<"false"; }
return 0;
}
Answer:
3. using upper and lowercase letters (Sentence case)
4. using a serif font
Explanation:
Readability on a website is very important for a website designer and also for the user. If a user wants content on his/her website to be read, he/she needs to do some research on what works and what doesn't. For each of the option in the question, there are guidelines to using them. for example, font size sometimes depend on the font style used: as some font style are more bigger than orders. Therefore, to get good readability on a website,font face, font size, color, sentence structure, all need to be considered before designing the website.
Because, they are all required to configure to it to be recognized by an operating system.
Explanation:
It is the Operating System Software that instructs the hardware and puts them together to work well. When the manufacturer does not configure the device to be recognized by an operating system, then it will not work with other components.
Example.
If an Apple machine's sound card is being put in an HP machine which uses Microsoft designed operating system, won't work due to the operating system that the sound card has been designed for.
Answer:
Explanation:
The following is written in Java. It creates the trafficLight class which holds the currentLight string variable and a int count variable for the number of times the light has been red. It also contains two constructors one that takes the currentLight as a parameter and one that does not. Finally, it has the next() method which analyzes the currentLight status and changes it to the next light. Output can be seen in the attached picture below.
class Brainly
{
public static void main(String[] args)
{
trafficLight traffic_light = new trafficLight();
System.out.println("Current Light: " + traffic_light.currentLight);
traffic_light.next();
System.out.println("Current Light after change: " + traffic_light.currentLight);
}
}
class trafficLight {
String currentLight;
int count = 0;
public trafficLight(String currentLight) {
this.currentLight = currentLight;
}
public trafficLight() {
this.currentLight = "red";
count++;
}
public void next() {
if (this.currentLight == "green") {
this.currentLight = "yellow";
} else if (this.currentLight == "yellow") {
this.currentLight = "red";
count++;
} else {
this.currentLight = "green";
}
}
}
Answer:
I the domain already purchased?
Explanation: