Answer:
Check the explanation
Explanation:
Here is the program with function definition and two sample calls.
Code:
#include <iostream>
using namespace std;
//checkMe FUNCTION which takes values a, b and c
void checkMe(char &a, int &b, int &c)
{
//if sum of b and c is negative and a is 'n', b and c are set to 0, otherwise a is set to 'p'
if((b+c)<0 && a=='n')
{
b = 0;
c = 0;
}
else
{
a = 'p';
}
}
int main()
{
//first test case when else part is executed
char a = 'n';
int b = 5;
int c = 6;
checkMe(a, b, c);
cout<<a<<" "<<b<<" "<<c<<endl;
//second test case when if part is executed
a = 'n';
b = -4;
c = -5;
checkMe(a, b, c);
cout<<a<<" "<<b<<" "<<c<<endl;
return 0;
}
Kindly check the Output below:
Answer:
thick
Explanation:
i took the test and got it right
Answer:
The program to this question can be described as follows:
Program:
#include <iostream> //defining header file
using namespace std;
int main() //defining main method
{
int x; //defining integer variable
for(x=0;x<=100;x++) //defining loop to count value from 0 to 100
{
if(x%7==0) //check value is divisable by 7
{
cout<<x<<endl; //print value
}
}
return 0;
}
Output:
please find the attachment.
Explanation:
In the above code, an integer variable x is declared, which is used in the for loop, in this loop variable "x" starts from 0 and ends when the value of x is less than and equal to 100.
- Inside the loop an, if block is used that defines a condition that is (i%7==0), it will check, that the value is divided by 7.
- In this loop, a print method is used, that prints its values.
Answer:
Use of computer in our life is incredibly necessary. Computer science is evaluated and challenged by humans every day. From Engineers to Doctors, Students to Teachers, entrepreneurs to investors, government organization they all use it to perform specific tasks, for entertainment, online earnings, and office work. Computers have made our life easier in these decades. With higher accuracy and quality, less time-consumption, computers can do a lot in a short time while that task can take a lot of time if we do manually. Computers have taken industries and businesses to a worldwide level. They are used at home for online education, entertainment, in offices, hospitals, private firms, NGOs, Software house, Government Sector Etc. The computer is a very vast field in every sector and every aspect of life.
<em><u>IT MAY HELP YOU!!!!</u></em>
Civil construction is any construction in a society that belongs to the group of core infrastructure such as <span>pipelines, telecommunications, sewers, water
treatment systems, highways, roads, bridges etc.</span>