1.) Business Engineering or Manufacturing :)
<span />
Answer:
Sure. In Unit test 5, it's looking for 1 instead of 0. You are returning 0 instead of 1.
0 requires 1 digit to express it and should therefore return 1.
In line 6, change the 0 to a 1.
1. An organisation that maintains a gateway to the internet and rent access to customers on a per use of subscription basis is called INTERNET SERVICE PROVIDER [ISP]. Internet service providers are of various forms, it can be commercially or privately owned, it can also be owned by a community. The internet access provided by ISP can be inform of cable, DSL or dial up. ISP provide other services such as website building and virtual hosting.
2. Internet protocol [IP] refers to a set of rules that guide the format of data sent over the internet, it is the method by which data is sent over the internet from one computer to another computer. Each computer that is linked to the internet has a unique IP address by which it is identified and distinguished from all other computers on the internet.
Answer:
//here is code in c++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
// variable
int temp;
cout<<"Please enter the temperature:";
//read temperature from user
cin>>temp;
int n;
// reduce the case for switch
n=temp/10;
// print output according to the switch case
switch (n) {
case 7:
case 6:
cout<<"tennis"<<endl;
break;
case 5:
case 4:
cout<<"golf"<<endl;
break;
default:
if(temp>=80)
cout<<"swimming"<<endl;
else
cout<<"skiing"<<endl;
break;
}
return 0;
}
Explanation:
Read the value of temperature from user and assign it to variable "temp".
Calculate n=temp/10, to limit the number of cases in the switch statement.
if temperature is greater or equal 60 & less than 80, it will print "tennis".
If temperature is greater or equal 40 & less than 60, it will print "golf".
in default case, if temperature is greater than 80, it will print "swimming".
if less than 40, print "skiing".
Output:
Please enter the temperature::67
tennis