Answer:
#include <iostream>
using namespace std;
int main() {
int age,time;
float price;
cout<<"Enter age:";
cin>>age;
cout<<"Enter time(in 24 hour clock for noon 1200):";
cin>>time;
if(age>13){
if(time<1700){
price=5;
}else{
price=8;
}
}else{
if(time<1700){
price=2;
}else{
price=4;
}
}
cout<<"Price: $"<<price<<endl;
}
Explanation:
Okay, here are the steps to be taken in order to be able to Write a program that determines the price of a movie ticket as given in details in the question above. Therefore, checked the steps below;
==> Input the age and the time.
==> If the age is not greater than 13, input the time(that is <1700) and follow it by imputing the price.
And if the age is greater than 13, you will also need to input the price. Just as below;
#include <iostream>
using namespace std;
int main() {
int age,time;
float price;
cout<<"Enter age:";
cin>>age;
cout<<"Enter time(in 24 hour clock for noon 1200):";
cin>>time;
if(age>13){
if(time<1700){
price=5;
}else{
price=8;
}
}else{
if(time<1700){
price=2;
}else{
price=4;
}
}
cout<<"Price: $"<<price<<endl;
}
Intensity is the brightness of a color. When a color is not mixed with any black or white it is at full intensity; Also called a pure hue. You can also change the intensity of a color by adding its complimentary color.
Hope this helps
Answer:
Option (D) is the right answer.
Explanation:
DHCP term used as a short form of dynamic host configuration protocol, which is used to assigns the IP address automatically according to the network.
According to the scenario, the system is getting the wrong IP address that resulting in internet disconnection which is a failure of the DHCP server because it is responsible for assigning the right IP address to the system.
Hence option (D) is the most appropriate answer.
While other options are wrong because of the following reasons:
- Static IP is the type of IP address which is fix and doesn't change in the system after rebooting, hence it has no connection in the change of IP address.
- If the DHCP server is working well there is no chance of interference from the surrounding device.
- Network setting has no connection with computer power supply as SMPS is used to give power and boot system only.
Answer: B) Character
Explanation:
According to the question, character of Greg is depicted through the scenario as he is displaying his moral quality ,honesty and mind integrity through not providing low-quality product to his customers even though he has chance to save company money through buying shape material .
Thus, he has good character to provide quality product and maintaining reputation and company as well as valuing his customers.
Other options are incorrect because fairness, community, expertise and competence are not the quality trait depicted through question's scenario. Thus, the correct option is option(B).
1) You don't know if the source is reliable.
2) It is better to cite reliable sources so.