1.) Go get bag of pet food from cabinet
2.) Set the bag on counter
3.) Get pet food dish out of cabinet
4.) Open pet food bag, pour pet food into dish
5.) Close bag, give dish to pet.
Answer:
We will ned (4) four tables.
Explanation:
For the given scenario we will have to build a relational database. The database will have four tables i.e. Competation, Collage, Team and student.
For each table the database fields are mention below. Note that foreign keys are mentioned in itallic.
Competition:
Competition_ID, Competition_Name, Competition_Data, Competition_Name _of_Branch, <em>College_ID</em>
<em />
Collage:
Collage_ID, Collage_Name, Collage_Contact, Collage_address
Team:
Name, Color, <em>Team_ID, College_ID, Competition_ID</em>
<em />
College:
Student_ID, First_Name, Last_Name, Date_of_Birth, Major, Expected_Gradiuation_Date, <em>Collage_ID, Team_ID, Competation_ID</em>
Answer:A) Internet cafe
Explanation: Internet cafe is the place that provides the internet service to the public and helps them to access the internet .These cafes can be used by the public who are travelers, people who don't have access at home etc.This internet cafe works on the basis of the hourly rate that it takes from the public.
Rest of the options are incorrect as intranet and extranet are types of network and LogMeIn is a desktop service .thus, the correct option is option(A).
Answer:
The program to this question as follows:
Program:
//header file iostream
#include<iostream> //including file for use basic function
//using name space
using namespace std;
//main method
int main() //defining main method
{
int a[3][3]; //defining two dimension array
int x,y,sum=0; //defining variables
cout<<"Enter array elements: "<<endl; //message
for(x=0;x<3;x++) // for row
{
for(y=0;y<3;y++) //for column
{
cin>>a[x][y]; //input values from user.
}
}
//loop for calculting sum.
for(x=0;x<3;x++)
{
for(y=0;y<3;y++)
{
sum=sum+a[x][y];//add all elements
}
}
cout<<"Sum: "<<sum; //print sum.
return 0;
}
Output:
Enter array elements:
1
2
3
4
5
6
7
8
9
Sum: 45
Explanation:
In the above C++ programming language code first, a header file is included then the main method is declared, inside a main method 2D array that is "a[][]", and an integer variable is defined that are "i, j, and sum". In the next line for loop is used, this loop is used two times that can be described as follows:
- The first time it is used for inserting elements from user ends.
- The second time, it uses the sum variable to add all array elements. and in the last print function that is "cout" is used for print sum variable value.
It’s , c probably sorry if I’m wrong