Answer:
Internet Protocol (IP), which uses a set of rules to send and receive messages at the Internet address level; and. additional network protocols that include the Hypertext Transfer Protocol (HTTP) and File Transfer Protocol (FTP), each of which has defined sets of rules to exchange and display information.
Explanation:
could i plz have brainliest so close to next rank
Declare a class named PatientData that contains two attributes named height_inches and weight_pounds.
Answer:
class PatientData:
def __init__(self, height_inches, weight_pounds):
self.height_inches = height_inches
self.weight_pounds = weight_pounds
a_patient = PatientData(75, 125)
print("Patient's height:", a_patient.height_inches)
print("Patient's weight:", a_patient.weight_pounds)
Explanation:
Create a class named PatientData
Inside the class, create a constructor (def __init__), that takes two parameters, height_inches and weight_pounds. This is used to initialize the PatientData objects. Inside the constructor, set the height_inches and weight_pounds
Create PatientData object named a_patient. Note that in order to create an object, you need to specify the height_inches and weight_pounds
Then, you may access these values by typing the object name, ".", and variable name. For example, to access the height_inches, you should write the following:
→ a_patient.height_inches
Then, print the height and weight of the patient
4.9 Code Practice: Question 4 Edhisive
Write a program that asks the user to enter ten temperatures and then finds the sum. The input temperatures should allow for decimal values.
Sample Run
Enter Temperature: 27.6
Enter Temperature: 29.5
Enter Temperature: 35
Enter Temperature: 45.5
Enter Temperature: 54
Enter Temperature: 64.4
Enter Temperature: 69
Enter Temperature: 68
Enter Temperature: 61.3
Enter Temperature: 50
Sum = 504.3
i = 0
total = 0
while i < 10:
temp = float(input("Enter Temperature: "))
total += temp
i += 1
print("Sum: {}".format(total))
I wrote my code in python 3.8. I hope this helps!
The program accepts 10 temperature inputs from the user, and takes the sum of the inputs gives before displaying the total sum of the temperature. The program is written in python 3 ;
temp_count = 0
#initialize the number of temperature inputs given by the user and assign to temp_count variable
sum = 0
#initialize the sum of the temperature inputs given
while(temp_count < 10):
#loop allows 10 inputs from the user
values = eval(input('Enter temperature : '))
#prompts user to input temperature values
sum+= values
#adds the inputted values to sum
temp_count+=1
#increases count of input by 1
print('sum of temperature : ', sum)
#displays the total sum
Learn more :https://brainly.com/question/18253379
Label each part. *GIVING BRAINLIEST*
Answer:
A.) Stator Magnets
B.) Windings
C.) Brushes
D.) Terminals
E.) Commutator
F.) Armature
What causes them to catch your attention in advertisements?
Answer:
advertisement should be nice and attractive to get attention of people
Which software programs should students avoid using to create and submit course work? (Choose all that apply.
Answer:
you need to add the list
Explanation:
Reynold is writing a news story about the government handling a health epidemic. He reads a report from a different news organization to use as a reference. His deadline for the story is coming up soon, so Reynold heavily paraphrases parts from the other organization's report to help him write. While Reynold's story also includes some of the same quotes as the other report, he forgets to attribute the sources at the end. Reynold says that since no one can copyright the facts of world news, he is not plagiarizing.
a) What unethical or illegal actions has Reynold taken in writing his news article? (3 points)
b) What kind of consequences might result from Reynold's actions? (2 points)
Answer:
1. He was plagiarizing
2. He might get sued, bad reputation, and he might get fired.
Explanation:
If he Paraphrasing from something online and doesn't cite the website he is plagiarizing.
An uniterruptible power supply
Answer:
An uninterruptible power supply is an electrical apparatus that provides emergency power to a load when the input power source or mains power fails.
Explanation:
Your welcome :) PLZ mark brainliest
How can we use variables to store information in our programs?
1)The Internet, A Mobile Hotspot, School Computer Lab
2)Takes inventory of all packets in the datastream to ensure they are successfully sent and received.
3)Chunk of data and its metadata, used to route and reassemble information on the Internet.
4)The way in which information travels on the Internet, not as a single piece but in chunks.
5)Sends all packets without checking whether they were received or ordered properl
a)User Datagram Protocol (UDP)
b)Internet Protocol (IP)
c)Datastream
d)Transmission Control Protocol (TCP)
e) Packet
Answer:
1) B
2) D
3) E
4) C
5) A
Explanation:
The matching of the given term with respect to its description is as follows:
The Internet, A Mobile Hotspot, School Computer Lab: Internet Protocol. Takes inventory of all packets in the datastream to ensure they are successfully sent and received: Transmission Control Protocol (TCP).Chunks of data and its metadata used to route and reassemble information on the Internet: Packet.The way in which information travels on the Internet, not as a single piece but in chunks: Datastream.Sends all packets without checking whether they were received or ordered properly: User Datagram Protocol (UDP). What do you mean by Internet Protocol?Internet Protocol may be defined as the methodology through which data is generally sent from one computer to another over the internet. In this process, each connected computer is known as a Host. It involves the utilization of networks that depend on datagrams across network boundaries.
According to the context of this question, the internet protocol uses a mobile hotspot in the school's computer lab. While other types of protocols may also have come into existence with respect to their attributes and strength.
Therefore, the matching of the given term with respect to its description is well described above.
To learn more about Internet protocol, refer to the link:
https://brainly.com/question/17820678
#SPJ12
Write a program with 2 separate functions which compute the GCD (Greatest Common Denominator) and the LCM (Lowest Common Multiple) of two input integers.
Answer:
The program written in Python is as follows
def GCD(num1, num2):
small = num1
if num1 > num2:
small = num2
for i in range(1, small+1):
if((num1 % i == 0) and (num2 % i == 0)):
gcd = i
print("The GCD is "+ str(gcd))
def LCM(num1,num2):
big = num2
if num1 > num2:
big = num1
while(True):
if((big % num1 == 0) and (big % num2 == 0)):
lcm = big
break
big = big+1
print("The LCM is "+ str(lcm))
print("Enter two numbers: ")
num1 = int(input(": "))
num2 = int(input(": "))
GCD(num1, num2)
LCM(num1, num2)
Explanation:
This line defines the GCD function
def GCD(num1, num2):
This line initializes variable small to num1
small = num1
This line checks if num2 is less than num1, if yes: num2 is assigned to variable small
if num1 > num2:
small = num2
The following iteration determines the GCD of num1 and num2
for i in range(1, small+1):
if((num1 % i == 0) and (num2 % i == 0)):
gcd = i
This line prints the GCD
print("The GCD is "+ str(gcd))
This line defines the LCM function
def LCM(num1,num2):
This line initializes variable big to num2
big = num2
This line checks if num1 is greater than num2, if yes: num1 is assigned to variable big
if num1 > num2:
big = num1
The following iteration continues while the LCM has not been gotten.
while(True):
This if statement determines the LCM using modulo operator
if((big % num1 == 0) and (big % num2 == 0)):
lcm = big
break
big = big+1
This line prints the LCM of the two numbers
print("The LCM is "+ str(lcm))
The main starts here
This line prompts user for two numbers
print("Enter two numbers: ")
The next two lines get user inputs
num1 = int(input(": "))
num2 = int(input(": "))
This calls the GCD function
GCD(num1, num2)
This calls the LCM function
LCM(num1, num2)
See attachment for more structured program
patintero
a.tag game
b.target game
Patintero, also known as harangang-taga or tubigan, is a traditional Filipino children's game. Along with tumbang preso, it is one of the most popular outdoor games played by children in the Philippines.
In other words tag game
Hope this helps
Computer Architecture
1. Define what a "word" is in computer architecture:
A. The size (number of bits) of the address
B. The total number of bits of an instruction (e.g. 16 bits)
C. Word and width are synonymous.
D. A word is the contents of a memory register.
2. What is the difference between a register’s width and a register’s address? (choose all that apply - there may be more than one correct answer)
A. They are both the same!
B. Address is the same for all registers, width is unique for each register.
C. Width is the amount of data a single register holds, address is the location of the register within a larger chip.
D. The address bits of a register is a logarithm of its width.
3. Which of the following is NOT implemented by the Program Counter?
A. Set the counter to 0.
B. Increase the counter by 1.
C. Decrease the counter by 1.
D. Set the counter to any input value.
4. What is the relationship between the size of the address (number of bits) and the word size for memory registers?
A. address bits = 2^(word size)
B. address bits = word size ^ 2
C. address bits = word size
D. address bits = log2(word size)
E. address bits = (word size) / 2
Answer:
BADDA
Explanation:
BIIING
The designer of an agent traveled to a beach for a holiday. He took the agent to the beach. He wanted the agent to capture the sunrise and the high tide. What kind of knowledge representation will the agent use in this new environment?
A.
picture
B.
number
C.
graph
D.
meta
Answer:
Picture
Explanation:
All early programming languages were object-oriented.
a) True
b) False
True
False
Answer:
False.
Object orientation is a paradigm that came later.
Write a program that creates an integer array with 40 elements in it. Use a for loop to assign values to each element of the array so that each element has a value that is triple its index. For example, the element with index 0 should have a value of 0, the element with index 1 should have a value of 3, the element with index 2 should have a value of 6, and so on.
Answer:
public class Main
{
public static void main(String[] args) {
int[] numbers = new int[40];
for (int i=0; i<40; i++){
numbers[i] = i * 3;
}
for (int i=0; i<40; i++){
System.out.println(numbers[i]);
}
}
}
Explanation:
*The code is in Java.
Initialize an integer array with size 40
Create a for loop that iterates 40 times. Inside the loop, set the number at index i as i*3
i = 0, numbers[0] = 0 * 3 = 0
i = 1, numbers[1] = 1 * 3 = 3
i = 2, numbers[2] = 2 * 3 = 6
.
.
i = 39, numbers[39] = 39 * 3 = 117
Create another for loop that iterates 40 times and prints the values in the numbers array
Functional languages like LISP are not composed of statements, but instead are a nested set of functions.
a) True
b) False
True
False
Answer:
True
In a purely functional language everything is a function and functions are based of other functions.
Answer:
true
Explanation:
write a qbasic program to display integer numbers 1 to 100 using the for next loop
Answer:
CLS
FOR i = 1 TO 100
PRINT i
NEXT i
END
What stage is the most inner part of the web architecture where data such as, customer names, addresses, account numbers, and credit card info, is stored
Answer:
Database
Explanation:
A website or web application is a page or a collection of pages addressing the same information on the internet. Web pages and the whole web application is made by a web developer using tools like HTML, CSS, Javascript, Flask, react.js, etc.
All websites or applications require a fast, flexible but secure source of storage to hold information. This storage is called a database. Examples of databases are relational and non-relational databases.
Tramon is creating a website and wants to include a striking graphic to identify the website. What type of graphic should he include?
a. dashboard
b. sidebar
c. icon
d. banner
Answer:
The correct option is d. banner
Explanation:
According to the given situation, Tramon develops the website and wants to involve the striking graphic so the website could be identified.
This represents the banner as the banner shows the advertisement i.e. image based rather than text based where the company information is displayed and its a way to promote the brand of the company so that it creates an awareness among the audience this results in increase in the sales of the company that directly rise the profits.
hence, the correct option is d. banner
Which software programs should students avoid using to create and submit course work? (Choose all that apply.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
You can submit your course work most often in a Word document. Because in the word document, you can insert text, numbers, images, charts, shapes whatever you want such as required for writing a course assignment or course work- easily. Because your final work should be in a complete document.
The correct options to this question, that you should need to avoid using to create and submit course work are pages, numbers, and keynote.
Because while submitting the course work, you need to submit a complete word document, it is not required to you that you have to submit numbers, pages, or keynotes along with the course assignment. You can create a course assignment or project document in word and submit to your respective teacher. However, you can not create your course work using keynotes or pages, etc as given in the question.
The software programs that students should avoid using to create and submit coursework include pages, numbers, and keynotes.
It should be noted that it's vital that while submitting a course work, one needs to submit a complete word document.
It is not required that the person submits pages, numbers, and keynotes. The most important thing is the word document that'll be submitted. Therefore, the software programs that students should avoid using to create and submit course work include pages, numbers, and keynotes.
Read related link on:
https://brainly.com/question/19788811
write aemail to brother for laptop for vitrual classes
Answer:
If I were to ask my brother for a laptop, I would go:
Hey, can I have your laptop? I need it for online classes.
Sincerely, [my name]
who plays a role in the finanical activites of a company
Financial managers are responsible for the financial health of an organization. They produce financial reports, direct investment activities, and develop strategies and plans for the long-term financial goals of their organization.
what used to produce protein under the direction of DNA?
def list_length(shrinking_list): ''' A recursive way to count the number of items in a list. ''' if shrinking_list
Answer:
Written in Python:
def list_length(shrinking_list):
if not shrinking_list:
return 0
else:
return list_length(shrinking_list[1:]) + len(shrinking_list[0])
Explanation:
This defines the list
def list_length(shrinking_list):
This checks if list is empty, if yes it returns 0
if not shrinking_list:
return 0
If list is not empty,
else:
This calculates the length of the list, recursively
return list_length(shrinking_list[1:]) + len(shrinking_list[0])
To call the function from the main, use:
print(list_length(listname))
What game is this? helpppppp
Answer:
the sims lol
Explanation:
C++ Code Outputs.
I have a problem with my code and I don't know how to make it run as the project that I need below.
This is my code:
#include
#include
#include
#include
using namespace std;
struct courseInfo{
string name;
int unit;
char grade;
};
struct Student {
string fName;
string lName;
string idNumber;
courseInfo courses[2];
int unitCompleted;
double gpa;
};
Student s;
bool openFile(ifstream &in);
void Print_info_one(Student s);
void Read_info(Student &s);
float Find_points(char c) ;
bool openFile(ifstream &inFile){
string line;
int i=0,k=0;
string fName="", lname="", id="", name1="", name2="";
char grade1, grade2;
int unit1, unit2;
if (inFile.is_open())
{
while (getline(inFile, line))
{
while (line[i] != ',')
{
fName += line[i];
i++;
}
i++;
i++;
while (line[i] != ' ')
{
lname += line[i];
i++;
}
i++;i++;
while (line[i] != ' ')
{
id += line[i];
i++;
}
i++;
int count=0;
while (count <2)
{
name1 += line[i];
i++;
if(line[i] == ' ' ) count++;
}
i++;
grade1 = line[i];
i++;i++;
unit1 = line[i]-'0';
i++;i++;
count=0;
while (count <2)
{
name2 += line[i];
i++;
if(line[i] == ' ' ) count++;
}
i++;
grade2 = line[i];
i++;i++;
unit2 = line[i]-'0';
}
inFile.close();
s.fName = fName;
s.lName = lname;
s.idNumber = id;
s.courses[0].name = name1;
s.courses[0].grade = grade1;
s.courses[0].unit = unit1;
s.courses[1].name = name2;
s.courses[1].grade = grade2;
s.courses[1].unit = unit2;
s.unitCompleted = unit1 + unit2;
s.gpa = (unit1*Find_points(grade1) + unit2*Find_points(grade2))/(unit1+unit2);
}
else
{
cout << "Error reading file\n";
return false;
}
return true;
}
void Print_info_one(Student s){
cout << "Name: " << s.fName << ", " << s.lName << " ID Number: " << s.idNumber << " Course 1 Name: " << s.courses[0].name << " Grade: "
<< s.courses[0].grade << " Units: " << s.courses[0].unit << " Course 2 Name: " << s.courses[1].name << " Grade: "
<< s.courses[1].grade << " Units: " << s.courses[1].unit << " Unit completed: " << s.unitCompleted << " GPA:" << s.gpa << endl;
}
void Read_info(Student &s){
}
float Find_points(char grade){
switch (grade)
{
case 'A':
return 4.0;
break;
case 'B':
return 3.0;
break;
case 'C':
return 2.0;
break;
case 'D':
return 1.0;
break;
case 'F':
return 0;
break;
default:
break;
}
return 0;
}
int main() {
ifstream inFile;
std::fstream fs;
fs.open ("input.txt", std::fstream::in );
Print_info_one(s);
return 0;
}
In the screenshots i'm showing the inputs and outputs that I need for the test
Answer:
#include
#include
#include
#include
using namespace std;
struct courseInfo{
string name;
int unit;
char grade;
};
struct Student {
string fName;
string lName;
string idNumber;
courseInfo courses[2];
int unitCompleted;
double gpa;
};
Student s;
bool openFile(ifstream &in);
void Print_info_one(Student s);
void Read_info(Student &s);
float Find_points(char c) ;
bool openFile(ifstream &inFile){
string line;
int i=0,k=0;
string fName="", lname="", id="", name1="", name2="";
char grade1, grade2;
int unit1, unit2;
if (inFile.is_open())
{
while (getline(inFile, line))
{
while (line[i] != ',')
{
fName += line[i];
i++;
}
i++;
i++;
while (line[i] != ' ')
{
lname += line[i];
i++;
}
i++;i++;
while (line[i] != ' ')
{
id += line[i];
i++;
}
i++;
int count=0;
while (count <2)
{
name1 += line[i];
i++;
if(line[i] == ' ' ) count++;
}
i++;
grade1 = line[i];
i++;i++;
unit1 = line[i]-'0';
i++;i++;
count=0;
while (count <2)
{
name2 += line[i];
i++;
if(line[i] == ' ' ) count++;
}
i++;
grade2 = line[i];
i++;i++;
unit2 = line[i]-'0';
}
inFile.close();
s.fName = fName;
s.lName = lname;
s.idNumber = id;
s.courses[0].name = name1;
s.courses[0].grade = grade1;
s.courses[0].unit = unit1;
s.courses[1].name = name2;
s.courses[1].grade = grade2;
s.courses[1].unit = unit2;
s.unitCompleted = unit1 + unit2;
s.gpa = (unit1*Find_points(grade1) + unit2*Find_points(grade2))/(unit1+unit2);
}
else
{
cout << "Error reading file\n";
return false;
}
return true;
}
void Print_info_one(Student s){
cout << "Name: " << s.fName << ", " << s.lName << " ID Number: " << s.idNumber << " Course 1 Name: " << s.courses[0].name << " Grade: "
<< s.courses[0].grade << " Units: " << s.courses[0].unit << " Course 2 Name: " << s.courses[1].name << " Grade: "
<< s.courses[1].grade << " Units: " << s.courses[1].unit << " Unit completed: " << s.unitCompleted << " GPA:" << s.gpa << endl;
}
void Read_info(Student &s){
}
float Find_points(char grade){
switch (grade)
{
case 'A':
return 4.0;
break;
case 'B':
return 3.0;
break;
case 'C':
return 2.0;
break;
case 'D':
return 1.0;
break;
case 'F':
return 0;
break;
default:
break;
}
return 0;
}
int main() {
ifstream inFile;
std::fstream fs;
fs.open ("input.txt", std::fstream::in );
Print_info_one(s);
return 0;
Explanation:
Write a program that contains three methods:
Method max (int x, int y, int z) returns the maximum value of three integer values.
Method min (int X, int y, int z) returns the minimum value of three integer values.
Method average (int x, int y, int z) returns the average of three integer values.
Answer:
#include <stdio.h>//defining header file
int max (int x, int y, int z) //defining a method max that hold three parameters
{
if(x>=y && x>=z)//defining if block that checks x is greater then y and x is greater then z
{
return x;//return the value x
}
else if(y>z)//defining else if block it check y is greater then z
{
return y;//return the value y
}
else//else block
{
return z;//return the value z
}
}
int min (int x, int y, int z) //defining a method max that holds three parameters
{
if(x<=y && x<=z) //defining if block that check x value is less then equal to y and less then equal to z
{
return x;//return the value of x
}
if(y<=x && y<=z) //defining if block that check y value is less then equal to x and less then equal to z
{
return y;//return the value of y
}
if(z<=x && z<=x)//defining if block that check z value is less then equal to x
{
return z;//return the value of z
}
return x;//return the value of z
}
int average (int x, int y, int z) //defining average method that take three parameters
{
int avg= (x+y+z)/3;//defining integer variable avg that calculate the average
return avg;//return avg value
}
int main()//defining main method
{
int x,y,z;//defining integer variable
printf("Enter first value: ");//print message
scanf("%d",&x);//input value from the user end
printf("Enter Second value: ");//print message
scanf("%d",&y);//input value from the user end
printf("Enter third value: ");//print message
scanf("%d",&z);//input value from the user end
printf("The maximum value is: %d\n", max(x,y,z));//calling the method max
printf("The minimum value is: %d\n", min(x,y,z));//calling the method min
printf("The average value is: %d\n", average(x,y,z));//calling the method average
return 0;
}
Output:
Enter first value: 45
Enter Second value: 35
Enter third value: 10
The maximum value is: 45
The minimum value is: 10
The average value is: 30
Explanation:
In the above-given code, three methods "max, min, and average" is declared that holds three integer variable "x,y, and z" as a parameter and all the method work as their respective name.
In the max method, it uses a conditional statement to find the highest number among them.In the min method, it also uses the conditional statement to find the minimum value from them.In the average method, it defined an integer variable "avg" that holds the average value of the given parameter variable.In the main method, three variable is defined that inputs the value from the user end and passes to the method and print its value.True/False: A datasum can be generated for any width of data. For example, we can create an 8, 16, or 32 bit datasum for 8, 16, or 32 bit data elements respectively.
Answer:
true
Explanation:
describe PROM, EPROM and EEPROM memories
Answer:
Explanation:
PROM is a Read Only Memory (ROM) that can be modified only once by a user while EPROM is a programmable ROM that can be erased and reused. EEPROM, on the other hand, is a user-modifiable ROM that can be erased and reprogrammed repeatedly through a normal electrical voltage.
Write a program that inputs numbers and keeps a running sum. When the sum is greater than 100, output the sum as well as the count of how many numbers were entered.
total = 0
count = 0
while total < 100:
num = int(input("Enter a number: "))
total += num
count += 1
print("Sum: {}".format(total))
print("Numbers Entered: {}".format(count))
I'm pretty sure this is what you're looking for. Best of luck!