Answer: A different set of observations might result in a larger portion of male drivers being on the phone.
You could modify the program to allow the user to enter the data.
Even when confident that the mathematical calculations are correct, you still need to be careful about how you interpret the results.
It is important to test your program with a small enough set of data that you can know what the result should be.
Explanation: Got it right
Answer:
Here is the C++ program:
#include <iostream> //to use input output functions
using namespace std; //to access objects like cin cout
int main(){// start of main function
int temp; //declare a variable to store value for temperature
cout<<"Enter temperature: "; //prompts user to enter temperature
cin>>temp; //reads value of temp from user
if(temp>80) //if temperature is greater than 80 degrees
{ cout<<"Go swimming"; } //displays Go swimming
else if(temp<=80&&temp>=60) //if temperature is between 60 and 80
{ cout<<"Go biking"; } //displays Go biking
else //if temperature is less than 60 degress
cout<<"Go for a walk"; } //displays Go for a walk
Explanation:
The program prompts the user to enter value of temperature. It stores the value of temperature in temp variable. Then the first if condition checks if the value of temp is greater than 80. If it evaluates to true, then the print statement inside the body of this if statement executes which is "Go swimming". If this condition evaluates to false then program moves to the else if condition which checks if the value of temp is between 60 and 80. There is a logical operator AND (&&) is used between both expressions to check temperature between two ranges. If it evaluates to true, then the print statement inside the body of this if statement executes which is "Go biking". If this condition evaluates to false then program moves to the else part which has a print statement that displays "Go for a walk" on output screen. The screenshot of program along with its output is attached.
Answer:
a. 32
Explanation:
Form the above code
{ *yPtr +=3 ;
*zPtr,
c+=3;
func(c,bPTR,&c);
the a=*bPtr c
return value 32 after execution
Answer:
A. True.
Explanation:
E-mail is an acronym for electronic mail and it can be defined as an exchange or transmission of computer-based data (messages) from one user to another over a communications network system.
Also, a distributed application refers to a software program that is capable of running on several computer systems and can communicate effectively through a network.
E-mail is the most common distributed application that is widely used across all architectures and vendor platforms because it primarily operates on a client-server model, by providing users with the requested services through the Simple Mail Transfer Protocol (SMTP) using the standard port number of 25.