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
C) End is the key that moves the insertion point to the end of data in a cell.
The stage of systems development in
which design specifications (such as the architecture, the modules, the interfaces,
and the data) are created is the stage of systems design. The purpose of systems
design is primarily to satisfy the specified requirements.
Answer:
Dictionary contains Key value pairs where key is used to retrieve the value
Explanation:
Using System.Collections;
void main(){
Dictionary<int, string> dict = new Dictionary<int, string>();
dict.Add(1,"One");
dict.Add(2,"Two");
dict.Add(3,"Three");
dict.Remove(1);
dict[2] = "Two Updated";
}
Dictionary<int, string> is a dictionary whose keys are integers and values are strings.
Add function is used to add elements to the dictionary
Remove function removes the key value pair from the dictionary based on given key.
we can directly modify/update the element in dictionary using the key
Answer:
Types of IEDs are<u> individual wearing explosive-type IED</u>, package-type IED and vehicle-borne IED.
Explanation:
Improvised Explosive Devices, commonly known as roadside bombs, are a type of explosives that are developed and used for purposes other than military action. IEDs can be deployed in any form, shape or size.
Improvised Explosive Devices can be of the following types:
1. Package-type IED
2. Vehicle-borne IED
3.<u> Individual wearing explosive-type IED</u>