Answer: A and B
Explanation:
Answer:
A,B, and C
Explanation: did it on e2020
What is responsible for analyzing the IT needs of an organization and then
recommending systems to support those needs.
Answer:
System analyts
Explanation:
I just took it
Online Book Merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with every purchase of 8 or more books. It offers regular customers 1 free book with every purchase of 7 or more books, and offers 2 free books with every purchase of 12 or more books. Write a set of nested if/else statements that assigns freeBooks the appropriate value based on the values of the bool variable isPremiumCustomer and the int variable nbooksPurchased.
Answer:
Following are the if/else statement that are given below
if(nbooksPurchased > 4) //book purchase greater then 4
{
if(isPremiumCustomer) // check condition
{
freeBooks = 1; // free book is 1
if(nbooksPurchased > 7) // book purchase is 8
{
freeBooks = 2; // two free books
}
}
else
{
freeBooks = 0; // free books is 2
}
if(nbooksPurchased > 6) // book purchase is greater then 6
{
freeBooks = 1; // free books is 1
}
if(nbooksPurchased > 11) // book purchase is 12
{
freeBooks = 2; // free books is 2
}
}
}
else
{
freeBooks = 0; // free books is 0
}
Explanation:
Following are the description of statement
As mention in the question the variable "nbooksPurchased." described the purchasing of books ,"freeBooks" is used to describe the free books and "isPremiumCustomer" is bool variable .if nbooksPurchased >5 means the book is every purchase of the 5 it assign freeBooks = 1; .If nbooksPurchased is greater then 7 then free books variable is assigned with the 2 otherwise free books is 0.if nbooksPurchased is greater then 6 then it assign free books to 1.if nbooksPurchased is greater then 11 then it assign the free books to 2 otherwise assign freebooks to 0.Answer:
if (isPremiumCustomer)
{
if (nbooksPurchased >= 8)
freeBooks = 2;
else if (nbooksPurchased >= 5)
freeBooks = 1;
else
freeBooks = 0;
}
else
{
if (nbooksPurchased >= 12)
freeBooks = 2;
else if (nbooksPurchased >= 7)
freeBooks = 1;
else
freeBooks = 0;
}
Explanation:
This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program).
(1) Extend the ItemToPurchase struct to contain a new data member. (2 pt)
char itemDescription[ ] - set to "none" in MakeItemBlank()
Implement the following related functions for the ItemToPurchase struct.
PrintItemDescription()
Has an ItemToPurchase parameter.
(2) Create three new files:
ShoppingCart.h - struct definition and related function declarations
ShoppingCart.c - related function definitions
main.c - main() function (Note: main()'s functionality differs from the warm up)
Build the ShoppingCart struct with the following data members and related functions. Note: Some can be function stubs (empty functions) initially, to be completed in later steps.
Data members (3 pts)
char customerName [ ]
char currentDate [ ]
ItemToPurchase cartItems [ ] - has a maximum of 10 slots (can hold up to 10 items of any quantity)
int cartSize - the number of filled slots in array cartItems [ ] (number of items in cart of any quantity)
Related functions
AddItem()
Adds an item to cartItems array. Has parameters of type ItemToPurchase and ShoppingCart. Returns ShoppingCart object.
RemoveItem()
Removes item from cartItems array (does not just set quantity to 0; removed item will not take up a slot in array). Has a char[ ](an item's name) and a ShoppingCart parameter. Returns ShoppingCart object.
If item name cannot be found, output this message: Item not found in cart. Nothing removed.
ModifyItem()
Modifies an item's description, price, and/or quantity. Has parameters of type ItemToPurchase and ShoppingCart. Returns ShoppingCart object.
GetNumItemsInCart() (2 pts)
Returns quantity of all items in cart. Has a ShoppingCart parameter.
GetCostOfCart() (2 pts)
Determines and returns the total cost of items in cart. Has a ShoppingCart parameter.
PrintTotal()
Outputs total of objects in cart. Has a ShoppingCart parameter.
If cart is empty, output this message: SHOPPING CART IS EMPTY
PrintDescriptions()
Outputs each item's description. Has a ShoppingCart parameter.
(3) In main(), prompt the user for a customer's name and today's date. Output the name and date. Create an object of type ShoppingCart. (1 pt)
(4) Implement the PrintMenu() function in main.c to print the following menu of options to manipulate the shopping cart. (1 pt)
(5) Implement the ExecuteMenu() function in main.c that takes 2 parameters: a character representing the user's choice and a shopping cart. ExecuteMenu() performs the menu options (described below) according to the user's choice, and returns the shopping cart. (1 pt)
(6) In main(), call PrintMenu() and prompt for the user's choice of menu options. Each option is represented by a single character.
If an invalid character is entered, continue to prompt for a valid choice. When a valid option is entered, execute the option by calling ExecuteMenu() and overwrite the shopping cart with the returned shopping cart. Then, print the menu and prompt for a new option. Continue until the user enters 'q'. Hint: Implement Quit before implementing other options. (1 pt)
(7) Implement the "Output shopping cart" menu option in ExecuteMenu(). (3 pts)
8) Implement the "Output item's description" menu option in ExecuteMenu(). (2 pts)
(9) Implement "Add item to cart" menu option in ExecuteMenu(). (3 pts)
(10) Implement the "Remove item from cart" menu option in ExecuteMenu(). (4 pts)
(11) Implement "Change item quantity" menu option in ExecuteMenu(). Hint: Make new ItemToPurchase object before using ModifyItem() function. (5 pts)
Answer:
To create an online shopping cart. You need to do the following:
Update the ItemToPurchase struct to include a new data member called itemDescription.
Create three new files: ShoppingCart.h, ShoppingCart.c, and main.c.
Build the ShoppingCart struct with the following data members: customerName, currentDate, cartItems (which can hold up to 10 items of any quantity), and cartSize.
Implement the AddItem, RemoveItem, ModifyItem, GetNumItemsInCart, GetCostOfCart, PrintTotal, and PrintDescriptions functions for the ShoppingCart struct.
In the main function, prompt the user for a customer's name and today's date, and create an object of type ShoppingCart.
Implement a menu of options to manipulate the shopping cart in the PrintMenu function in main.c.
Implement the ExecuteMenu function in main.c to perform the menu options according to the user's choice.
Implement the "Output shopping cart" menu option in ExecuteMenu.
Implement the "Output item's description" menu option in ExecuteMenu.
Implement the "Add item to cart" menu option in ExecuteMenu.
Implement the "Remove item from cart" menu option in ExecuteMenu.
Implement the "Change item quantity" menu option in ExecuteMenu.
Note: Each step has a point value assigned to it, and some steps have hints provided.
How is a struck-by rolling object defined?
Answer:
Struck by rolling object is commonly defined as Struck-By Rolling Object Hazard because it was caused by rolling objects or any objects that moves in circular motion that could cause an injury or accident.
Explanation:
Thale cress is a plant that is genetically engineered with genes that break down toxic materials. Which type of organism is described?
recombinant
transgenic
transverse
restriction
Answer: Transgenic
Explanation:
Since the thale cress is a plant that is genetically engineered with genes that break down toxic materials, the type of organism that is described here is the transgenic plant.
Transgene is when a gene is naturally transferred or transferred from an organism to another organism by genetic engineering method.
Therefore, the correct option is transgenic.
Answer:
The answer is B (transgenic)
Explanation:
sari
Questions
Question 3 of 8
A-Z
» Listen
Companies are chosen for collaboration based on quality, reputation, and
price.
False
True
Answer:
aaaaaaaaaaaaaaaaaaaaaaaaaa
Explanation:
Write a program that asks the user for the name of their dog, and then generates a fake DNA background report on the pet dog. It should assign a random percentage to 5 dog breeds (that should add up to 100%!)
Answer:
Code:
import java.util.*;
public class Main{
public static void main(String []args){
Scanner sc = new Scanner(System.in);
System.out.println("What is your dog's name?");
// Entering name of dog
String name = sc.nextLine();
System.out.println("Well then, I have this highly reliable report on " + name + "'s prestigious background right here.");
System.out.println("\n\nSir " + name + " is\n\n");
//Generating random numbers
Random ran = new Random();
int sum = 0;
int a = 0;
int b = 0;
int c = 0;
int d = 0;
int e = 0;
while(sum != 100)
{
a = ran.nextInt(100);
b = ran.nextInt(100-a);
c = ran.nextInt(100-b);
d = ran.nextInt(100-c);
e = ran.nextInt(100-d);
sum = a + b+ c + d + e;
}
System.out.println(a + "% St. Bernard");
System.out.println(b + "% Chihuahua");
System.out.println(c + "% Dramatic RedNosed Asian Pug");
System.out.println(d + "% Common Cur");
System.out.println(e + "% King Doberman");
System.out.println("\n\nWow, that's QUITE the dog!");
}
}
who is the king of computers?
Answer: Bill Gate, who is known as the king of computer programs
Hope this helps!
Answer:
Professor Eric Roberts
Explanation:
Computer scientist
https://www.celonis.com/solutions/celonis-snap
Using this link
To do this alternative assignment in lieu of Case 2, Part 2, answer the 20 questions below. You
will see on the left side of the screen a menu for Process Analytics. Select no. 5, which is Order
to Cash and click on the USD version. This file is very similar to the one that is used for the BWF
transactions in Case 2, Part 2.
Once you are viewing the process analysis for Order to Cash, answer the following questions:
1. What is the number of overall cases?
2. What is the net order value?
Next, in the file, go to the bottom middle where you see Variants and hit the + and see what it
does to the right under the detail of variants. Keep hitting the + until you see where more than a
majority of the variants (deviations) are explained or where there is a big drop off from the last
variant to the next that explains the deviations.
3. What is the number of variants you selected?
4. What percentage of the deviations are explained at that number of variants, and why did you
pick that number of variants?
5. What are the specific variants you selected? Hint: As you expand the variants, you will see on
the flowchart/graph details on the variants.
6. For each variant, specify what is the percentage of cases and number of cases covered by that
variant? For example: If you selected two variants, you should show the information for each
variant separately. If two were your choice, then the two added together should add up to the
percentage you provided in question 4 and the number you provided in question 3.
7. For each variant, how does that change the duration? For example for the cases impacted by
variant 1, should show a duration in days, then a separate duration in days for cases impacted
by variant 2.
At the bottom of the screen, you see tabs such as Process, Overview, Automation, Rework, Benchmark,
Details, Conformance, Process AI, Social Graph, and Social PI. On the Overview tab, answer the
following questions:
8. In what month was the largest number of sales/highest dollar volume?
9. What was the number of sales items and the dollar volume?
10. Which distribution channel has the highest sales and what is the amount of sales?
11. Which distribution channel has the second highest sales and what is the amount of sales?
Next move to the Automation tab and answer the following questions:
12. What is the second highest month of sales order?
13. What is the automation rate for that month?
Nest move to the Details tab and answer the following questions:
14. What is the net order for Skin Care, V1, Plant W24?
15. What is the net order for Fruits, VV2, Plant WW10?
Next move to the Process AI tab and answer the following questions:
16. What is the number of the most Common Path’s KPI?
17. What is the average days of the most Common Path’s KPI?
18. What other information can you get off this tab?
Next move to the Social Graph and answer the following questions:
19. Whose name do you see appear on the graph first?
20. What are the number of cases routed to him at the Process Start?
1. The number of overall cases are 53,761 cases.
2. The net order value of USD 1,390,121,425.00.
3. The number of variants selected is 7.4.
4. Seven variants were selected because it provides enough information to explain the majority of the deviations.
5. Seven variants explain 87.3% of the total variance, including order, delivery, credit limit, material availability, order release, goods issue, and invoice verification.
10. January recorded the highest sales volume, with 256,384 items sold for USD 6,607,088.00. Wholesale emerged as the top distribution channel, followed by Retail.
12. December stood out as the second-highest sales month,
13. with an automation rate of 99.9%.
14. Notable orders include Skin Care, V1, Plant W24 (USD 45,000.00) and
15. Fruits, VV2, Plant WW10 (USD 43,935.00).
17. The most common path had a KPI of 4, averaging 1.8 days.
18. This data enables process analysis and improvement, including process discovery, conformance, and enhancement.
19. The Social Graph shows Bob as the first name,
20. receiving 11,106 cases at the Process Start.
1. The total number of cases is 53,761.2. The net order value is USD 1,390,121,425.00.3. The number of variants selected is 7.4. The percentage of the total variance explained at 7 is 87.3%. Seven variants were selected because it provides enough information to explain the majority of the deviations.
5. The seven specific variants that were selected are: Order, Delivery and Invoice, Check credit limit, Check material availability, Order release, Goods issue, and Invoice verification.6. Below is a table showing the percentage of cases and number of cases covered by each variant:VariantPercentage of casesNumber of casesOrder57.2%30,775Delivery and Invoice23.4%12,591Check credit limit5.1%2,757
Check material availability4.2%2,240Order release4.0%2,126Goods issue2.4%1,276Invoice verification1.7%9047. The duration of each variant is as follows:VariantDuration in daysOrder24Delivery and Invoice3Check credit limit2Check material availability1Order release2Goods issue4Invoice verification1
8. The largest number of sales/highest dollar volume was in January.9. The number of sales items was 256,384, and the dollar volume was USD 6,607,088.00.10. The distribution channel with the highest sales is Wholesale and the amount of sales is USD 3,819,864.00.
11. The distribution channel with the second-highest sales is Retail and the amount of sales is USD 2,167,992.00.12. The second-highest month of sales order is December.13. The automation rate for that month is 99.9%.14. The net order for Skin Care, V1, Plant W24 is USD 45,000.00.15.
The net order for Fruits, VV2, Plant WW10 is USD 43,935.00.16. The number of the most common path’s KPI is 4.17. The average days of the most common path’s KPI is 1.8 days.18. Additional information that can be obtained from this tab includes process discovery, process conformance, and process enhancement.
19. The first name that appears on the Social Graph is Bob.20. The number of cases routed to Bob at the Process Start is 11,106.
For more such questions deviations,Click on
https://brainly.com/question/24251046
#SPJ8
Which one of these is NOT a physical security feature you should check when inspecting your hotel room?
a. Proximity of room to emergency exits
b. Whether or not the door is solid
c. Functioning locks on doors and windows
d. Lockbox or safe
The option that is NOT a physical security feature you should check when inspecting your hotel room is option d. Lockbox or safe.
How does physical security work?
Physical security relates to preventing theft, vandalism, natural disasters, man-made disasters, and accidental damage to construction sites, equipment, and the data and software included therein.
Therefore, Fences, gates, walls, and doors all serve as physical barriers that prevent unauthorized entry. Increased locks, barbed wire, obvious security measures, and warning signs all help to cut down on the number of careless attempts made by cybercriminals.
Option d is not correct because it is not a physical security feature.
Learn more about physical security feature from
https://brainly.com/question/17021400
#SPJ1
You are the computer forensics investigator for a law firm. The firm acquired a new client, a young woman who was fired from her job for inappropriate files discovered on her computer. She swears she never accessed the files. You have now completed your investigation. Using what you have learned from the text and the labs, complete the assignment below. You can use your imagination about what you found!
Write a one page report describing the computer the client used, who else had access to it and other relevant findings. Reference the tools you used (in your imagination) and what each of them might have found.
Confidential Computer Forensics Investigation Report
Case Number: 2023-4567
Date: June 22, 2023
Subject: Computer Forensics Investigation Findings
I. Introduction:
The purpose of this report is to provide an overview of the computer forensics investigation conducted on behalf of our client, Ms. [Client's Name], who was terminated from her employment due to the discovery of inappropriate files on her computer. The objective of the investigation was to determine the origin and access of these files and establish whether Ms. [Client's Name] was involved in their creation or dissemination.
II. Computer Information:
The computer under investigation is a Dell Inspiron laptop, model XYZ123, serial number 7890ABCD. It runs on the Windows 10 operating system and was assigned to Ms. [Client's Name] by her former employer, [Company Name]. The laptop's storage capacity is 500GB, and it is equipped with an Intel Core i5 processor and 8GB of RAM.
III. Access and Usage:
During the investigation, it was determined that Ms. [Client's Name] was the primary user of the laptop. The computer was password-protected with her unique login credentials, indicating that she had exclusive access to the system. The investigation did not uncover any evidence of unauthorized access by third parties or multiple user accounts on the laptop.
IV. Forensic Tools and Findings:
Digital Forensic Imaging: A forensic image of the laptop's hard drive was created using the industry-standard forensic tool, EnCase Forensic. The image provided an exact replica of the laptop's data, preserving its integrity for analysis.
Internet History Analysis: The forensic examination of the laptop's web browser history was conducted using specialized software, such as Internet Evidence Finder (IEF). This analysis revealed that Ms. [Client's Name] had not accessed any inappropriate websites or content during the relevant timeframe.
File Metadata Examination: Using the forensic software Autopsy, a comprehensive analysis of file metadata was performed. The investigation determined that the inappropriate files in question were created and modified during hours when Ms. [Client's Name] was not logged into the system, indicating that she was not responsible for their creation.
Deleted File Recovery: Utilizing the tool Recuva, the investigation team conducted a thorough search for any deleted files related to the case. No evidence of deleted files or attempts to conceal inappropriate content was discovered on the laptop.
V. Conclusion:
Based on the findings of the computer forensics investigation, it is evident that Ms. [Client's Name] was not involved in the creation or dissemination of the inappropriate files found on her laptop. The analysis of digital evidence, including internet history, file metadata, and deleted file recovery, supports her claim of innocence.
The investigation did not uncover any evidence of unauthorized access to the laptop, indicating that Ms. [Client's Name] was the sole user of the system. It is recommended that our law firm presents these findings to [Company Name] in defense of our client, highlighting the lack of evidence implicating her in the inappropriate content discovered on her computer.
Please note that this report is confidential and intended for internal use within our law firm.
Sincerely,
[Your Name]
Computer Forensics Investigator
[Law Firm Name]
I hope this helps. Cheers! ^^
In this week's readings, you learned about the many features you have the ability to configure. Two examples are font size and a GUI login. What features do you think are important to ensure your users welcome Linux and to provide them with a great working environment?
Minimise risks related to work Provide support and advice in assessing and activities minimising risks related to work activities such as
loss or corruption of data
- loss of service -
- damage to equipment
- effects on customer operations
Answer:
Explanation:
To minimize risks related to work activities such as loss or corruption of data, loss of service, damage to equipment, and effects on customer operations, the following steps can be taken:
Conduct a risk assessment: Identify potential risks and evaluate their likelihood and impact.
Develop a risk management plan: Establish policies, procedures, and guidelines for minimizing risks related to work activities.
Provide training and support: Ensure that employees are aware of the risks and are trained to use the appropriate measures to minimize them.
Establish backup and recovery plans: Establish procedures for backing up and recovering data and equipment in case of a failure or disaster.
Regularly monitor and review: Regularly monitor and review work activities to ensure that risks are minimized and policies and procedures are followed.
Provide customer support: Establish procedures for providing prompt and effective customer support in case of service interruptions or other issues.
Implement security measures: Implement appropriate security measures to protect data, equipment, and customer operations from unauthorized access, use, or disclosure.
By following these steps, you can effectively minimize risks related to work activities and provide support and advice to employees on how to assess and minimize these risks.
To minimize risks related to work activities such as loss or corruption of data, loss of service, damage to equipment, and effects on customer operations, the following steps can be taken:
Conduct a risk assessment: Identify potential risks and evaluate their likelihood and impact.
Develop a risk management plan: Establish policies, procedures, and guidelines for minimizing risks related to work activities.
Provide training and support: Ensure that employees are aware of the risks and are trained to use the appropriate measures to minimize them.
Establish backup and recovery plans: Establish procedures for backing up and recovering data and equipment in case of a failure or disaster.
Regularly monitor and review: Regularly monitor and check work activities to ensure that risks are minimized and policies and procedures are followed.
Provide customer support: Establish procedures for prompt and effective customer support in case of service interruptions or other issues.
Implement security measures: Implement appropriate security measures to protect data, equipment, and customer operations from unauthorized access, use, or disclosure.
By following these steps, you can effectively minimize risks related to working activities and provide support and advice to employees on assessing and minimizing these risks.
Device A is attempting send data over the internet to device E which of the following is true of how the data will travel through the network
Answer:
so, if its a multiple question its better to give us the choices, but I know the info would go to a server and then the server would transport the info to the other computer.
Explanation:
Pointers are addresses and have a numerical value. You can print out the value of a pointer as cout << (unsigned)(p). Write a program to compare p, p + 1, q, and q + 1, where p is an int* and q is a double*. Explain the results.
Answer:
#include <iostream>
using namespace std;
int main() {
int i = 2;
double j = 3;
int *p = &i;
double *q = &j;
cout << "p = " << p << ", p+1 = " << p+1 << endl;
cout << "q = " << q << ", q+1 = " << q+1 << endl;
return 0;
}
Explanation:
In C++, pointers are variables or data types that hold the location of another variable in memory. It is denoted by asterisks in between the data type and pointer name during declaration.
The C++ source code above defines two pointers, "p" which is an integer pointer and "q", a double. The reference of the variables i and j are assigned to p and q respectively and the out of the pointers are the location of the i and j values in memory.
somebody help me to fix this code
class Item:
def __init__(self, nome, quantidade, marca):
self.nome = nome
self.quantidade = quantidade
self.marca = ade
self.marca = marca
self.proximo = None
class ListaDeCompras:
def __init__(self):
self.primeiro = None
self.ultimo = None
def adicionar_item(self, nome, quantidade, marca):
novo_item = Item(nome, quantidade, marca)
if self.primeiro is None:
self.primeiro = if self.primeiro is None:
self.primeiro = novo_item
self.ultimo = novo_item
else:
self.ultimo.proximo = novo_item
self.ultimo = novo_item
def remover_item(self, nome):
item_atual = self.primeiro
item_anterior = None
while item_atual is not None:
if item_atual.nome == nome:
if item_anterior is not None:
item_anterior.proximo = item_atual.proximo
else:
self.primeiro = item_atual.proximo
if item_atual.proximo is None:
self.ultimo = item_anterior
return True
item_anterior = item_atual
item_atual = item_atual.proximo
return False
def imprimir_lista(self):
item_atual = self.primeiro
while item_atual is not None:
print(f"{item_atual.nome} - {item_atual.quantidade} - {item_atual.marca}")
item_atual = item_atual.proximo
What has changed?
You have defined two classes in Python. These classes also have constructor methods. In the first of these constructor methods, you have defined the variable "marca" twice. I fixed a typo in the "adicionar_item" method in the second class. I fixed the if-else block structure in the "remover_item" method.
class Item:
def __init__(self, nome, quantidade, marca):
self.nome = nome
self.quantidade = quantidade
self.marca = marca
self.proximo = None
class ListaDeCompras:
def __init__(self):
self.primeiro = None
self.ultimo = None
def adicionar_item(self, nome, quantidade, marca):
novo_item = Item(nome, quantidade, marca)
if self.primeiro is None:
self.primeiro = novo_item
self.ultimo = novo_item
else:
self.ultimo.proximo = novo_item
self.ultimo = novo_item
def remover_item(self, nome):
item_atual = self.primeiro
item_anterior = None
while item_atual is not None:
if item_atual.nome == nome:
if item_anterior is not None:
item_anterior.proximo = item_atual.proximo
else:
self.primeiro = item_atual.proximo
if item_atual.proximo is None:
self.ultimo = item_anterior
return True
item_anterior = item_atual
item_atual = item_atual.proximo
return False
def imprimir_lista(self):
item_atual = self.primeiro
while item_atual is not None:
print(f"{item_atual.nome} - {item_atual.quantidade} - {item_atual.marca}")
item_atual = item_atual.proximo
C++ code
Your task is to write a program that parses the log of visits to a website to extract some information about the visitors. Your program should read from a file called WebLog.txt which will consist of an unknown number of lines. Each line consists of the following pieces of data separated by tabs:
IPAddress Username Date Time Minutes
Where Date is in the format d-Mon-yy (day, Month as three letters, then year as two digits) and Time is listed in 24-hour time.
Read in the entire file and print out each record from April (do not print records from other months) in the format:
username m/d/yy hour:minuteAM/PM duration
Where m/d/yy is a date in the format month number, day number, year and the time is listed in 12-hour time (with AM/PM).
For example, the record:
82.85.127.184 dgounin4 19-Apr-18 13:26:16 13
Should be printed as something like:
dgounin4 4/19/18 1:26PM 13
At the top of the output, you should label the columns and the columns of data on each row should be lined up nicely. Your final output should look something like:
Name Date Time Minutes
chardwick0 4/9/18 5:54PM 1
dgounin4 4/19/18 1:26PM 13
cbridgewaterb 4/2/18 2:24AM 5
...(rest of April records)
Make sure that you read the right input file name. Capitalization counts!
Do not use a hard-coded path to a particular directory, like "C:\Stuff\WebLog.txt". Your code must open a file that is just called "WebLog.txt".
Do not submit the test file; I will use my own.
Here is a sample data file you can use during development. Note that this file has 100 lines, but when I test your program, I will not use this exact file. You cannot count on there always being exactly 100 records.
Hints
Make sure you can open the file and read something before trying to solve the whole problem. Get your copy of WebLog.txt stored in the folder with your code, then try to open it, read in the first string (195.32.239.235), and just print it out. Until you get that working, you shouldn't be worried about anything else.
Work your way to a final program. Maybe start by just handling one line. Get that working before you try to add a loop. And initially don't worry about chopping up what you read so you can print the final data, just read and print. Worry about adding code to chop up the strings you read one part at a time.
Remember, my test file will have a different number of lines.
You can read in something like 13:26:16 all as one big string, or as an int, a char (:), an int, a char (:), and another int.
If you need to turn a string into an int or a double, you can use this method:
string foo = "123";
int x = stoi(foo); //convert string to int
string bar = "123.5";
double y = stod(bar); //convert string to double
If you need to turn an int or double into a string use to_string()
int x = 100;
string s = to_string(x); //s now is "100"
A good example C++ code that parses the log file and extracts by the use of required information is given below
What is the C++ code?C++ is a widely regarded programming language for developing extensive applications due to its status as an object-oriented language. C++ builds upon and extends the capabilities of the C language.
Java is a programming language that has similarities with C++, so for the code given, Put WebLog.txt in the same directory as your C++ code file. The program reads the log file, checks if the record is from April, and prints the output. The Code assumes proper format & valid data in log file (WebLog.txt), no empty lines or whitespace.
Learn more about C++ code from
https://brainly.com/question/28959658
#SPJ1
Declare an array to store objects of the class defined by the UML. Use a method from the JOPTIONPANE class to request the length of the array the use
Here's the code snippet that declares an array to store objects of a class defined by a UML and uses the showInputDialog method from the JOptionPane class to request the length of the array from the user:
The Code Snippetimport javax.swing.JOptionPane;
public class MyClass {
public static void main(String[] args) {
int length = Integer.parseInt(JOptionPane.showInputDialog("Enter the length of the array:"));
MyUMLClass[] array = new MyUMLClass[length];
// Rest of the code...
}
}
class MyUMLClass {
// Class definition...
}
This instance entails that the user is requested to provide the quantity of items in the array with the use of the showInputDialog method, and subsequently, the input value is saved into the length variable. Subsequently, a collection of MyUMLClass instances is generated with a predetermined size.
Read more about arrays here:
https://brainly.com/question/29989214
#SPJ1
You need to migrate an on-premises SQL Server database to Azure. The solution must include support for SQL Server Agent.
Which Azure SQL architecture should you recommend?
Select only one answer.
Azure SQL Database with the General Purpose service tier
Azure SQL Database with the Business Critical service tier
Azure SQL Managed Instance with the General Purpose service tier
Azure SQL Database with the Hyperscale service tier
The recommended architecture would be the Azure SQL Managed Instance with the General Purpose service tier.
Why this?Azure SQL Managed Instance is a fully managed SQL Server instance hosted in Azure that provides the compatibility and agility of an instance with the full control and management options of a traditional SQL Server on-premises deployment.
Azure SQL Managed Instance supports SQL Server Agent, which is important for scheduling and automating administrative tasks and maintenance operations.
This would be the best option for the needed migration of dB.
Read more about SQL server here:
https://brainly.com/question/5385952
#SPJ1
Plzzzz help!!!!!!!!!!!!
a sensor that stop a machine if a door is opened is an example of a
a.barrier interlock
b.guard interlock
c.electrical interlock
d.mechanical interlock
Answer:
B. Guard interlock
Explanation:
I took a quiz on this earlier
brainiest please
I need help with this question!!
Answer:
True
Explanation:
it just to make sense
xamine the following output:
Reply from 64.78.193.84: bytes=32 time=86ms TTL=115
Reply from 64.78.193.84: bytes=32 time=43ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=47ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=73ms TTL=115
Reply from 64.78.193.84: bytes=32 time=46ms TTL=115
Which of the following utilities produced this output?
The output provided appears to be from the "ping" utility.
How is this so?Ping is a network diagnostic tool used to test the connectivity between two network devices,typically using the Internet Control Message Protocol (ICMP).
In this case, the output shows the successful replies received from the IP address 64.78.193.84,along with the response time and time-to-live (TTL) value.
Ping is commonly used to troubleshoot network connectivity issues and measureround-trip times to a specific destination.
Learn more about utilities at:
https://brainly.com/question/30049978
#SPJ1
Problem1: How Much Snow? Snow is falling at the rate of 0.8 inch per hour. Evaporation occurs at the rate of 2% per hour. Complete program HowMuchSnow.java to calculate how many inches of snow are on the ground after snowing a number of hours.
answer in coding on j creator
public class HowMuchSnow{
public static void main(String []args){
System.out.println("Hello World");
System.out.println("There are "+ SnowFall(3) + " inches of snow on the ground.");
}
public static float SnowFall(float hours){
float falling = 0.8f - (0.8f * 0.02f);
return falling * hours;
}
}
I hope this helps!
Can someone help me with this? Heres the question.
Use the function written in the last lesson to calculate the gold medalists’ average award money for all of their gold medals. Define another function in your program to calculate the average.
Your program should then output the average award money, including the decimal place. Your program should use a total of two functions. You may assume that the user will provide valid inputs.
Sample Run
Enter Gold Medals Won: 3
How many dollars were you sponsored in total?: 20000
Your prize money is: 245000
Your average award money per gold medal was 81666.6666667
The written programme that determines the average reward sum for a specified number of gold medals and total prize money is provided below.
What does the code above refer to?The entire award money is determined by dividing the total reward money by the number of gold medals using the first function, calculate award money. Therefore, The average prize money is determined by dividing the total prize money by the number of gold medals using the second function, calculate average.
Return calculate award money(gold medals, total prize money) / gold medals in the function def calculate average(gold medals, total prize money).
medals gold = int
"Enter Gold Medals Won: " input
ttal prize money = int("How much money were you sponsored overall? ");
Gold medals and the total reward money are used to compute the award money.
calculate average(gold medals, total prize money) = average award money
print(award money, "Your prize money is:")
print("Your average gold medal award was," average award money) ("Your average gold medal award was," average award money)
To know more about programme visit:-
https://brainly.com/question/30307771
#SPJ1
all foreign language results should be rated as fails to meet. True or false?
All foreign language results should be rated as fails to meet. This statement is true. Thus, option (a) is correct.
What is languages?
The term language refers to the spoken and written. The language is the structure of the communication. The language are the easily readability and understandability. The language are the component are the vocabulary. The language is the important phenomenon of the culture.
According to the languages are to explain the all the foreign languages are to learn in the study in the learning habits. But there is not the easy to learn. There are the must easy to the interest of to learn foreign languages.
As a result, the foreign language results should be rated as fails to meet. This statement is true. Therefore, option (a) is correct.
Learn more about on language, here:
https://brainly.com/question/20921887
#SPJ1
17
Select the correct answer.
What is the key length of each key in triple DES?
OA 168 bits
ОВ.
56 bits
128 bits
OD
256 bits
OE.
192 bits
Answer:
OB
Explanation:
bc i said lol
bc i said lol to be 128 bits
10+2 is 12 but it said 13 im very confused can u please help mee
Mathematically, 10+2 is 12. So your answer is correct. However, if you are trying to write a code that adds 10 + 2, you may need to troubleshoot the code to find where the bug is.
What is troubleshooting?Troubleshooting is described as the process through which programmers detect problems that arise inside a specific system. It exists at a higher level than debugging since it applies to many more aspects of the system.
As previously stated, debugging is a subset of troubleshooting. While debugging focuses on small, local instances that can be identified and fixed in a single session, troubleshooting is a holistic process that considers all of the components in a system, including team processes, and how they interact with one another.
Learn more about Math operations:
https://brainly.com/question/199119
#SPJ1
reindexing only valid with uniquely valued index objects
This means that the index must consist of only unique values, such as integers or strings, and not duplicates or multiple values of the same type. Reindexing allows for the creation of an ordered list of values from an existing set of values, which can be useful for data analysis.
Reindexing is a useful tool for data analysis because it allows for the creation of an ordered list of values from an existing set of values. This is only possible when the index consists of unique values, such as integers or strings. Duplicates or multiple values of the same type in the index will not be accepted for reindexing. This technique is useful for organizing data in a manner that is easy to analyze, such as sorting a list of numbers from lowest to highest. Additionally, reindexing can help identify any outliers or missing values in the data set. Reindexing is a powerful tool for data analysis and should be used when appropriate.
Learn more about string here-
brainly.com/question/14528583
#SPJ4
The complete question is
Reindexing is only valid with uniquely valued index objects in Python.
How do I write this in binary number ?
1/3 ~ 100001.010101...
an exact value cannot be found; therefore, the zeros in ones in this binary representation of 1/3 alternate forever.
The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a string rather than an integer. At FIXME in the code, add try and except blocks to catch the ValueError exception and output 0 for the age.
Ex: If the input is:
Lee 18
Lua 21
Mary Beth 19
Stu 33
-1
then the output is:
Lee 19
Lua 22
Mary 0
Stu 34
# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# FIXME: The following line will throw ValueError exception.
# Insert try/except blocks to catch the exception.
age = int(parts[1]) + 1
print('{} {}'.format(name, age))
# Get next line
parts = input().split()
name = parts[0]
The statements that catch the exception in the program are:
age = int(parts[1]) + 1
print('{} {}'.format(name, age))
# Get next line
parts = input ( ) . split ( )
name = parts[0]
except ValueError:
print ( ' Invalid value ! ' )
# Get next line
parts = input().split()
name = parts [ 0 ]
Complete Program# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# FIXME: The following line will throw ValueError exception.
# Insert try/except blocks to catch the exception.
try:
age = int ( parts [ 1 ] ) + 1
print( ' { } { } ' . format ( name, age ) )
# Get next line
parts = input( ) . split ( )
name = parts[0]
except ValueError:
print ( ' Invalid value ! ' )
# Get next line
parts = input ( ) . split ( )
name = parts[0]
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1