5. Smart watch can provide us with the ability to get
and necessary information on our wrist without having to pick up
another device.
Answer:
uh yea that is true
Explanation:
Use the image below to answer this question.
In your role as network administrator you need to make sure the branch manager can access the network from the PC in her office. The requirements specify that you:
Use a network device that provides wireless access to the network for her mobile device.
Connect the network device to the Ethernet port in the wall plate.
Use a wired connection from the PC to the network device.
Use cables that support Gigabit Ethernet.
The list on the left identifies several cable types and devices that could be used for this scenario. Drag the appropriate cable type or device on the left to the corresponding location identified in the image.
Note: Items on the left may be used more than once.
Answer:
4 number is the answer for your question
The Scientific Method is a/an
Answer:
It's a method used in science to ask questions, research, observe, hypothesize, experiment, analyze data, and make conclusions.
Explanation:
#Write a function called align_right. align_right should #take two parameters: a string (a_string) and an integer #(string_length), in that or
Full question:
#Write a function called align_right. align_right should #take two parameters: a string (a_string) and an integer #(string_length), in that order. # #The function should return the same string with spaces #added to the left so that the text is "right aligned" in a #string. The number of spaces added should make the total #string length equal string_length. # #For example: align_right("CS1301", 10) would return the #string " CS1301". Four spaces are added to the left so #"CS1301" is right-aligned and the total string length is #10. # #HINT: Remember, len(a_string) will give you the number of #characters currently in a_string.
Answer and Explanation:
Comments have been used in the code to explain the program
Using Python
#first define the function with #parameters a_string and string_length
def align_right(ourString,stringLength):
#test to see if string is longer than the length passed
if len(ourString) > stringLength:
print(ourString)
#If not define variable aligned and use #rjust function to justify string to the #left leaving space left in stringLength
else:
aligned=ourString.rjust(stringLength)
#print the variable aligned
print(aligned)
#Call function align_right
align_right("jelly", 15)
Write a python program that will find the longest word in a file. The program should print the word and the number of characters in that word. Hint you would be using dictionaries, string module, and files for this exercise.
Answer:
Explanation:
The following code is written in Python. It is a function that takes in the file location as a parameter and reads it. It then splits the text into a list and loops through the list. The length of every element is compared to the value in the variable length and if it is larger it saves that words length to the variable length and saves the word to the variable longestWord. These variables get printed at the end of the program. A test case has been provided and can be seen in the image below.
import re
def longestWordInFile(file):
file = open(file, 'r')
text = file.read()
wordList = text.lower()
wordList = re.split('\s', wordList)
length = 0
longestWord = ''
for word in wordList:
if len(word) > length:
length = len(word)
longestWord = word
print(longestWord + " is the longest with " + str(length) + " characters.")
LAB: Parsing food data in C++
Write the code in c++
Given a text file containing the availability of food items, write a program that reads the information from the text file and outputs the available food items. The program first reads the name of the text file from the user. The program then reads the text file, stores the information into four separate arrays, and outputs the available food items in the following format: name (category) -- description
Assume the text file contains the category, name, description, and availability of at least one food item, separated by a tab character ('\t').
Hints: Use the find() function to find the index of a tab character in each row of the text file. Use the substr() function to extract texts separated by the tab characters.
Ex: If the input of the program is:
food.txt
and the contents of food.txt are:
Sandwiches Ham sandwich Classic ham sandwich Available
Sandwiches Chicken salad sandwich Chicken salad sandwich Not available
Sandwiches Cheeseburger Classic cheeseburger Not available
Salads Caesar salad Chunks of romaine heart lettuce dressed with lemon juice Available
Salads Asian salad Mixed greens with ginger dressing, sprinkled with sesame Not available
Beverages Water 16oz bottled water Available
Beverages Coca-Cola 16oz Coca-Cola Not available
Mexican food Chicken tacos Grilled chicken breast in freshly made tortillas Not available
Mexican food Beef tacos Ground beef in freshly made tortillas Available
Vegetarian Avocado sandwich Sliced avocado with fruity spread Not available
the output of the program is:
Ham sandwich (Sandwiches) -- Classic ham sandwich
Caesar salad (Salads) -- Chunks of romaine heart lettuce dressed with lemon juice
Water (Beverages) -- 16oz bottled water
Beef tacos (Mexican food) -- Ground beef in freshly made tortillas
Food.txt file
Sandwiches Ham sandwich Classic ham sandwich Available
Sandwiches Chicken salad sandwich Chicken salad sandwich Not available
Sandwiches Cheeseburger Classic cheeseburger Not available
Salads Caesar salad Chunks of romaine heart lettuce dressed with lemon juice Available
Salads Asian salad Mixed greens with ginger dressing, sprinkled with sesame Not available
Beverages Water 16oz bottled water Available
Beverages Coca-Cola 16oz Coca-Cola Not available
Mexican food Chicken tacos Grilled chicken breast in freshly made tortillas Not available
Mexican food Beef tacos Ground beef in freshly made tortillas Available
Vegetarian Avocado sandwich Sliced avocado with fruity spread Not available
Answer:
Implementation of the given problem in C++:
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> category, name, description, availability;
string str;
cout << "Enter the name of text file to open: ";
cin >> str;
ifstream file(str);
while (getline(file, str)) {
size_t pos1 = str.find('\t'); // to find the first tab delimiter
size_t pos2 = str.find('\t', pos1 + 1); // to find the second tab delimiter
size_t pos3 = str.find('\t', pos2 + 1); // to find the third tab delimiter
category.push_back(str.substr(0, pos1));
name.push_back(str.substr(pos1 + 1, pos2 - pos1 - 1));
description.push_back(str.substr(pos2 + 1, pos3 - pos2 - 1));
availability.push_back(str.substr(pos3 + 1, str.length() - pos3));
}
for (int i = 0; i < name.size(); i++)
if (availability[i] == "Available")
cout << name[i] << " (" << category[i] << ") -- " << description[i] << endl;
}
Output:-
The program is an illustration of file manipulations in C++.
File manipulation involves writing to and reading from a file
The program in C++ where comments are used to explain each line is as follows:
#include <bits/stdc++.h>
using namespace std;
int main() {
//This declares all vector variables
vector<string> catg, name, desc, status;
//This declares the file name as a string variable
string fname;
//This prompts the user for the filename
cout <<"Filename: ";
//This gets input for the filename
cin >> fname;
//This opens the file
ifstream file(fname);
//The following is repeated till the end of the file
while (getline(file, fname)) {
//This finds the first tab delimiter
size_t pos1 = fname.find('\t');
//This finds the second tab delimiter
size_t pos2 = fname.find('\t', pos1 + 1);
//This finds the third tab delimiter
size_t pos3 = fname.find('\t', pos2 + 1);
//The next four lines populate the vector variables
catg.push_back(fname.substr(0, pos1));
name.push_back(fname.substr(pos1 + 1, pos2 - pos1 - 1));
desc.push_back(fname.substr(pos2 + 1, pos3 - pos2 - 1));
status.push_back(fname.substr(pos3 + 1, fname.length() - pos3));
}
//This iterates through the file, line by line
for (int i = 0; i < name.size(); i++){
//This prints each line
if (status[i] == "Available"){
cout << name[i] << " (" << catg[i] << ") -- " << desc[i] << endl;
}
}
return 0;
}
Read more about similar programs at:
https://brainly.com/question/15456319
The U.S. government has put in place IPv6-compliance mandates to help with the IPv4-to-IPv6 transition. Such mandates require government agencies to have their websites, email and other services available over IPv6.
Let’s consider that you’ve been appointed as the IPv6 transition manager at a relatively small branch of a government agency (e.g., a branch of the Social Security agency in a medium-size town). Your main responsibility is to produce a plan with a timetable for achieving compliance with the IPv6 mandate. The plan should specify the guidelines, solutions, and technologies for supporting IPv6 throughout the agency branch. The plan should include the following, among other things:
Summary of the applicable government IPv6 mandate
Brief description of the networking facility at the branch (LANs, servers, routers, etc.)
Summary of the main IPv6-related RFCs that pertain to the IPv6 support
Cooperation with ISPs and equipment vendors to implement IPv6 support
Summary of the solutions and technologies to be employed in implementing IPv6 (e.g., dual-stack, tunneling, translation)
Timetable for completion of IPv6 transition
Plan for testing the IPv6 compliance in expectation of an audit by the government
The deliverable is a report (in Word) of 6 to 10 pages, excluding the name and biblio pages, with 3 to 5 solid references (APA format), at least. The use of drawings and other graphics is highly recommended.
Answer:
The U.S. Government has put in place an IPv6 mandate that comes into affect on September 30th. That new mandate requires all government agencies to have their public facing websites and email services available over IPv6.
At this point, it’s not likely that every government website will meet the deadline, though a large number of them will. Christine Schweickert, senior engagement manager for public sector at Akamai, told EnterpriseNetworkingPlanet that she expects over 1,800 U.S Government websites will be on IPv6 by the mandate deadline.
From an Akamai perspective, the company has a large number of U.S. Government customers that it is enabling for IPv6 with dual-stack servers. In a dual-stack implementation, a site is available natively over both IPv4 and IPv6. Akamai’s Content Delivery Network has a mapping technology that optimizes traffic around the Internet. Getting the government websites to run on IPv6 is just a matter of putting the site configuration on the Akamai dual-stack server maps.
“So if a request comes in to a government website from an IPv6 client, we will go ahead and route them to the best performing Akamai Edge server that can speak IPv6 back to that request,” Schweickert explained.
Another approach that some network administrators have tried for IPv6 support has been to tunnel the IPv6 traffic over an IPv4 network, or vice-versa. In Schweickert’s view, that’s not an ideal solution as it tends to break things.“When you’re tunneling, you’re routing through IPv4 packets and that’s not in the spirit that we have to operate in globally,” Schweickert said.
In contrast, Schweickert noted that with dual-stack, the server will respond to IPv4 requests with IPv4 content and to IPv6 requests with IPv6 content. “If you’re using tunneling, you’re really just doing a workaround,” Schweickert said.
To make it even easier for the U.S. Government websites, Akamai isn’t actually charging more money for the dual-stack service either. Schweickert noted that the dual-stack capability is a feature that is already part of the delivery service that Akamai is providing to its U.S Government customers.
David Helms, Vice President, Cyber Security Center of Excellence at Salient Federal Solutions is among those that are backers of the Akamai approach to meeting the September 30th IPv6 mandate. In his view, it’s all about enabling interesting services and locations over IPv6 in order to spur adoption.
Juan has performed a search on his inbox and would like to ensure that the results only include those items with
attachments which command group will he use?
O Scope
O Results
O Refine
Ο Ορtions
Answer:
The Refine command group
Explanation:
Kirsten manages the infrastructure that hosts her company's CRM platform. She currently has a production environment that all of the users access. However, she was recently reading about the concept of creating a second production environment where patches and updates are applied and then traffic is shifted over to the second environment once it has been tested. Which of the following describes the methodology that she is considering implementing?
a. Rolling deployment
b. Blue-green deployment
c. Duplicate deployment
d. Canary deployment
Answer:
The methodology that Kristen is considering to implement is:
d. Canary deployment.
Explanation:
This deployment type creates a second production environment (better called a testing environment). Here, patches and updates are first applied for testing purposes before shifting traffic to the main production environment. In a server environment, the idea of canary deployment is to first deploy the changes to a small subset of servers, test them before rolling out the changes to the rest of the servers. It enjoys some advantages over other deployment strategies because it allows for testing.
For functional programming languages, the scope of a local name Group of answer choices is always the entire program. starts immediately at the point when the name is declared. is in the body part of the declaration or definition. is exactly same as object-oriented programming languages such as C++.
Answer:
in the body part of the declaration or definition
Explanation:
In functional programming the scope of a variable is in the body part of the declaration or definition. Meaning that as soon as it is declared, whatever body it is in can call and use that variable but not any code outside of that body. For example, in the below code variable (var1) is declared inside func1 and therefore can be used by any code inside the body of func1 but not by code inside func2 since it is outside the body of func1.
void func1() {
int var1;
}
void func2() {
var1 = 2 // This will not work, since var1 is only available in func1()
}
what's the difference between natural systems and man made systems
Answer:
Natural systems are already in place while man made systems were created by humans manipulating things in some way.
Explanation:
man made: human created
natural systems: existed without interference
How do operating system work?
Answer:
I tv2btb2tnyb3ngng3n3yny4n4yny4m4um
Explanation:
I g4hrb3nu4m4ym4umu4my3my3n3
write a complete c++ program using function and array.
Answer:
Index Value Hash
0 1 $
1 2 $$
2 3 $$$
3 4 $$$$
4 5 $$$$$
Explanation:
The Fourth Amendment does not allow police to randomly test people for drunk driving. True or False
Answer:
False
Explanation:
Write a function wordcount() that takes the name of a text file as input and prints the number of occurrences of every word in the file. You function should be case-insensitive so 'Hello' and 'hello' are treated as the same word. You should ignore words of length 2 or less. The results printed will be ordered from the most frequent to the least frequent. Hint: dictionary and list. Test your implementation on file great_expectations.txt
Answer:
Explanation:
The following Python program uses a combination of dictionary, list, regex, and loops to accomplish what was requested. The function takes a file name as input, reads the file, and saves the individual words in a list. Then it loops through the list, adding each word into a dictionary with the number of times it appears. If the word is already in the dictionary it adds 1 to its count value. The program was tested with a file named great_expectations.txt and the output can be seen below.
import re
def wordCount(fileName):
file = open(fileName, 'r')
wordList = file.read().lower()
wordList = re.split('\s', wordList)
wordDict = {}
for word in wordList:
if word in wordDict:
wordDict[word] = wordDict.get(word) + 1
else:
wordDict[word] = 1
print(wordDict)
wordCount('great_expectations.txt')
Imagine a typical website that works as a storefront for a business, allowing customers to browse goods online, place orders, review information about past orders, and contact the business. What would a testing process for a website like that look like?
Answer: See explanation
Explanation:
Following the information given in the question, the testing process for the website will include testing the links that are on the site.
Another that ng to test is to check if the menus and the buttons are working properly. Furthermore, the layout should be ensured that it's consistent as well as the ease with which the website can be used.
What command would you use to see how many concurrent telnet sessions you can run on the IFT MAIN router and how many could can you have on that router
"Computer, I demand information about how many concurrent telnet sessions I can run on the IFT MAIN router and how many I could have on that router, quickly!"
Note: See 1 Submission Instructions for the instructions regarding images in exercise solutions. On the next page is a UML class diagram that shows several classes that are associated in various ways. This class diagram is included in the Homework Assignment 1 zip archive as an Umlet file named class-relation.urf so if you use Umlet, you can load and modify this diagram. If you are using a different UML class diagramming tool, then you will have to create the diagram from scratch. (a) Note that in Course there is 7.2 an instance variable mRoster which is an instance of Roster. When Course object is deleted, the Roster instance mRoster will also be deleted. Given that, what type of class a relationship, if any, exists between Course and Roster? If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity.
(b) Note that in Roster there is an instance variable mStudents which is an ArrayList of Student objects. When a Roster object is deleted, mStudents is also deleted, but each Student object within mStudents is not deleted. Given that, what type of class relationship, if any, exists between Roster and Student. If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity.
(c) What type of class relationship, if any, exists between Student and UndergradStudent? If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity.
(d) What type of class relationship, if any, exists between Student and GradStudent? If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity.
(e) What type of class relationship, if any, exists between UndergradStudent and GradStudent? If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity.
Answer:
that is very very true
Explanation:
H0: Protype design has at most 37mpg vs. HA: prototype design has greater than 37mpg. If H0 is rejected, the action will be move the protype deisgn to prpduction. What kind of test is required
Answer:
A one-tailed test with upper reject region
Explanation:
H0 : μ ≤ 37
H1 : μ > 37
This is a right tailed tailed test as indicated by the greater than symbol on the hypothesis defined. Hence, the critical region will lie to the right of the area under the curve.
Critical region which lies to the right of the curve is called the upper rejection region.
Rejecting the Null, H0 means that ; the value of the test statistic exceeds the critical value;
When the hypothesis is declared with the less than sign, rejection region lies to the left or lower region.
While a two tailed test has rejection region shares between each tail.
Write a program to input the radius of the base and height of a cylinder, and calculate and print the surface area, volume, and area of the base of the cylinder.According to the problem statement above, which of the following would be a data member?a) Radius of the baseb) Surface areac) Volumed) Input
Data members and member functions jointly determine the characteristics and actions of the objects in a Class. Data members are the variables that make up the data, and member functions are the methods used to modify these variables.
What are the data member in a program?Members declared using any of the basic kinds as well as other types, such as pointer, reference, array types, bit fields, and user-defined types, are referred to as data members.
Any class may contain however many data members are necessary. The only situation in which a limitation might occur is when there is not enough memory.
Member data — information about the thing. Member functions — behavior-related aspects of the object-related functions A class is an object's blueprint. A class is a user-defined type that specifies the appearance of a certain type of object.
Therefore, radius, cylinder, print would be a data member.
Learn more about program here:
https://brainly.com/question/15706343
#SPJ5
Several disaster relief nonprofits want to create a centralized application and repository of information so that they can efficiently share and distribute resources related to various disasters that they may respond to together. Which of the following cloud service models would best fit their needs?
a. Public cloud
b. Private cloud
c. Multi-cloud
d. Community cloud
Answer: Community cloud
Explanation:
A community cloud is a collaborative effort whereby infrastructure is shared among different organizations from a particular community that has common concerns such as compliance, security etc.
Since several disaster relief nonprofits want to create a centralized application
in order to efficiently share and distribute resources related to various disasters that they may respond to together, then the community cloud will be useful in this regard.
What is the oop in c++ ?
Answer:
OOP stands for Object-Oriented Programming. Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions. ... OOP is faster and easier to execute.HOPE IT HELPS3) why internet is called a big source of information?
Internet is by far the most popular source of information and the preferred choice for news ahead of television, newspapers and radio, according to a new poll in the United States.
David is hired at Fictional Corp and immediately notices a lack of documentation for any of the systems. There are a couple of small spreadsheets that float around, but different people have different versions of those spreadsheets throughout the organization, which creates problems with figuring out what information is accurate. Which of the following should David suggest Fictional Corp implement?
a. DBMS
b. DBaaS
c. CRM
d. CMDB
c. IG
d. SSH
Answer:
DBMS
Explanation:
DBMS stands for database management system. David should suggest that this corp implements this system because the DBMS can perform the function of data retrieval, data manipulation, as well as data management. It would help to solve the problem of lack of documentation for any system. It would do this by managing all incoming data, as well as organizing the data and the provision of ways that data can be extracted or modified. A data base management system includes MySQL, PostgreSQL e.tc
Write a method crawl that accepts a File parameter and prints information about that file. if the File object represents a normal file, just print its name. if the File object represents a directory, print its name and information about every file/directory inside it, indented.
11.11 LAB: Number pattern Write a recursive function called PrintNumPattern() to output the following number pattern. Given a positive integer as input (Ex: 12), subtract another positive integer (Ex: 3) continually until 0 or a negative value is reached, and then continually add the second integer until the first integer is again reached. For this lab, do not end output with a newline. Ex. If the input is:
Answer:
The function in C++ is as follows:
int itr, kount;
void printNumPattern(int num1,int num2){
if (num1 > 0 && itr == 0) {
cout<<num1<<" ";
kount++;
printNumPattern(num1 - num2, num2);
} else {
itr = 1;
if (kount >= 0) {
cout<<num1<<" ";
kount--;
if (kount < 0) {
exit(0);}
printNumPattern(num1 + num2, num2);}}
}
Explanation:
We start by declaring global variables itr and kount
int itr, kount;
The function is defined here
void printNumPattern(int num1,int num2){
If num1 and itr are greater than 0 , then
if (num1 > 0 && itr == 0) {
Output num1, followed by a space
cout<<num1<<" ";
Increment counter by 1
kount++;
Call the recursion
printNumPattern(num1 - num2, num2);
If otherwise
} else {
Set itr to 1
itr = 1;
If counter is 0 or positive
if (kount >= 0) {
Output num1, followed by a space
cout<<num1<<" ";
Decrease counter by 1
kount--;
If counter is negative
if (kount < 0) {
Exit function
exit(0);}
Call the recursion
printNumPattern(num1 + num2, num2);}}
}
Answer:
void PrintNumPattern(int start, int delta) {
cout << start << " ";
if (start > 0) {
PrintNumPattern(start - delta, delta);
cout << start << " ";
}
}
void main()
{
PrintNumPattern(12, 3);
}
Explanation:
Looking at the "palindrome" symmetry of the output, you want one nesting level of the function to print the output twice. Then you also don't need global variables.
program 2. write a VB.NET program to solve the linear equation of the form Ax+B=C, i.e x=(C=B)/A (Eg:2x+3=7, where B and C are consonants, A is the coefficient of x)
Answer:
Module Program
Sub Main()
Dim A, B, C, x As Double
A = 2.0
B = 3.0
C = 7.0
x = (C - B) / A
Console.WriteLine($"Solution for {A}x + {B} = {C} is x = {x}")
Console.ReadKey()
End Sub
End Module
Explanation:
You have asked this question twice?
The Marietta Country Club has asked you to write a program to gather, then display the results of the golf tournament played at the end of March. The Club president Mr. Martin has asked you to write two programs.
The first program will input each player's first name, last name, handicap and golf score and then save these records in a file named golf.txt (each record will have a field for the first name, last name, handicap and golf score).
The second program will read the records from the golf.txt file and display them with appropriate headings above the data being displayed.
If the score is = Par, then display 'Made Par'
If the score is < Par, then display 'Under Par'
If the score is > Par, then display 'Over Par'
There are 16 players in the tournament. Par for the course is 80. The data is as follows:
Andrew Marks 11.2 72
Betty Franks 12.8 89
Connie William 14.6 92
Donny Ventura 9.9 78
Ernie Turner 10.1 81
Fred Smythe 8.1 75
Greg Tucker 7.2 72
Henry Zebulon 8.3 83
Ian Fleming 4.2 72
Jan Holden 7.7 84
Kit Possum 7.9 79
Landy Bern 10.3 93
Mona Docker 11.3 98
Kevin Niles 7.1 80
Pam Stiles 10.9 87
Russ Hunt 5.6 73
Answer:
Explanation:
The following program is written in Python. It creates two functions, one for writting the players and their scores to the file, and another function for reading the file and outputting whether or not they made Par. The functions can be called as many times that you want and the writeFile function allows for 16 inputs to be made when called. A test case has been provided with all of the players mentioned in the question. The output can be seen in the attached image below.
def writeFile():
file = open('output.txt', 'w')
for x in range(16):
firstName = input("Enter First Name:")
lastName = input("Enter Last Name:")
handicap = input("Handicap:")
score = input("Score:")
file.write(str(firstName) + " " + str(lastName) + " " + str(handicap) + " " + str(score) + "\n")
file.close()
def readFile():
file = open('output.txt', 'r')
for line in file:
lineArray = line.split(" ")
if int(lineArray[-1]) < 80:
print(str(lineArray[0]) + " " + str(lineArray[1]) + " Under Par" )
elif int(lineArray[-1]) == 80:
print(str(lineArray[0]) + " " + str(lineArray[1]) + " Made Par")
else:
print(str(lineArray[0]) + " " + str(lineArray[1]) + " Over Par")
file.close()
writeFile()
readFile()
check the attachment :)
Answer:
ALL are system softwares
In Scheme, the form (symbol-length? 'James) will return: Group of answer choices 0 5 6 error message
Answer:
an error message
Explanation:
The return value is the value which is sent back by the function to a place in the code from where the [tex]\text{function}[/tex] was called from. Its main work is to return a value form the function.
In the context, the form of "(symbol-length? 'James)" in Scheme will return the value --- ' an error message'.