Answer:
Printer is a output device.
Explanation
It takes the input from the user and gives the output in the form of a texted document. It is called hard copy of our document. Printer is Output and Scanner is input Devices.
#Write a function called "angry_file_finder" that accepts a #filename as a parameter. The function should open the file, #read it, and return True if the file contains "!" on every #line. Otherwise the function should return False. # #Hint: there are lots of ways to do this. We'd suggest using #either the readline() or readlines() methods. readline() #returns the next line in the file; readlines() returns a #list of all the lines in the file. #Write your function here!
Answer:
I am writing a Python function:
def angry_file_finder(filename): #function definition, this function takes file name as parameter
with open(filename, "r") as read: #open() method is used to open the file in read mode using object read
lines = read.readlines() #read lines return a list of all lines in the file
for line in lines: #loops through each line of the file
if not '!' in line: #if the line does not contains exclamation mark
return False # returns False if a line contains no !
return True # returns true if the line contains exclamation mark
print(angry_file_finder("file.txt")) call angry_file_finder method by passing a text file name to it
Explanation:
The method angry_file_finder method takes a file name as parameter. Opens that file in read mode using open() method with "r". Then it reads all the lines of the file using readline() method. The for loop iterates through these lines and check if "!" is present in the lines or not. If a line in the text file contains "!" character then function returns true else returns false.
There is a better way to write this method without using readlines() method.
def angry_file_finder(filename):
with open(filename, "r") as file:
for line in file:
if '!' not in line:
return False
return True
print(angry_file_finder("file.txt"))
Above method opens the file in read mode and just uses a for loop to iterate through each line of the file to check for ! character. The if condition in the for loop checks if ! is not present in a line of the text file. If it is not present in the line then function returns False else it returns True. This is a more efficient way to find a character in a file.
Matt is working with the business analysts to create new goals for his corporation. He does not agree with the way they make decisions in his company and is facing an issue of ______ with his work.
Matt is facing an issue of misalignment or disagreement with his work.
How can this be explained?Matt is facing considerable work-related difficulties due to a fundamental mismatch in decision-making within his company. He is in a conflicting position with the corporate analysts who are accountable for establishing fresh objectives for the company. The root of this argument could be attributed to variances in viewpoints, beliefs, or methods of reaching conclusions.
Matt is experiencing frustration as a result of facing challenges when it comes to collaborating effectively with the analysts due to their differing views. The problem of being misaligned not only affects his capability of making valuable contributions to goal-setting but also presents a more sweeping obstacle to the organization's cohesiveness and overall effectiveness.
Read miore about work problems here:
https://brainly.com/question/15447610
#SPJ1
Why might you want to consider organizational scope in setting up a network?
A) to determine the physical layout of network components
b) to determine the
communication medium that transports the data
C) to determine who gets to access certain parts of the network
D) to determine the scale and reach of the network
Answer:
D) to determine the scale and reach of network
Explanation:
Variable Labels:
Examine the following variable names for formatting errors.
If it is not usable, correct it. If there are no errors, write good.
10. studentName
11. Student Address
12.110 Room
13. parentContact
14. Teachers_name
Answer:
10. 13. and 14. Correct
11. Incorrect
12. Incorrect.
Explanation:
The programming language is not stated. However, in most programming languages; the rule for naming variables include:
Spacing not allowedUnderscore is allowedVariable names cannot start with numbersUsing the above rules, we can state which is correct and which is not.
10. 13. and 14. Correct
11. Incorrect
Reason: Spacing not allowed
Correct form: StudentAddress
12. Incorrect.
Reason: Numbers can't start variable names
Correct form: Room110
In Java Please
4.24 LAB: Print string in reverse
Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text.
Ex: If the input is:
Hello there
Hey
done
the output is:
ereht olleH
yeH
The program that takes in a line of text as input, and outputs that line of text in reverse is given
The Programimport java.util.Scanner;
public class ReverseString {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String line;
do {
line = input.nextLine();
if (!line.equalsIgnoreCase("done") && !line.equalsIgnoreCase("d")) {
String reversed = reverseString(line);
System.out.println(reversed);
}
} while (!line.equalsIgnoreCase("done") && !line.equalsIgnoreCase("d"));
}
public static String reverseString(String text) {
StringBuilder reversedText = new StringBuilder();
for (int i = text.length() - 1; i >= 0; i--) {
reversedText.append(text.charAt(i));
}
return reversedText.toString();
}
}
Read more about programs here:
https://brainly.com/question/30783869
#SPJ1
is a colon (:) and semicolon (;) important in CSS declaration?
Answer:
YES
Explanation:
this is very important
For my c++ class I need to complete this assignment. I've been stuck on it for a few hours now and was wondering if anyone could help me out by giving me some hints or whatever.
You work for an exchange bank. At the end of the day a teller needs to be able to add up the value of all of the foreign currency they have. A typical interaction with the computer program should look like this:
How many Euros do you have?
245.59
How many Mexican Pesos do you have?
4678
How many Chinese Yen do you have?
5432
The total value in US dollars is: $1378.73
Think about how to break this problem into simple steps. You need to ask how much the teller has of each currency, then make the conversion to US dollars and finally add the dollar amounts into a total.
Here is a sketch of the solution.
double currencyAmount;
double total;
// get the amount for the first currency
total += currencyAmount;
// get the amount for the second currency
total += currencyAmount;
// get the amount for the third currency
total += currencyAmount;
// output the total
Notice the use of the += operator, this is a shortcut that means the same thing as total = total + currencyAmount. It is usful for accumulating a total like we are doing here.
Submit only the .cpp file containing the code. Don't forget the code requirements for this class:
Good style: Use good naming conventions, for example use lower camel case variable names.
Usability: Always prompt the user for input so they know what to do and provide meaningful output messages.
Documentation: Add a comments that document what each part of your code does.
Testing: Don't submit your solution until you have tested it. The code must compile, execute and produce the correct output for any input.
Answer:
246,45 Euro
Explanation:
A simple algorithm that would help you convert the individual currencies is given below:
Step 1: Find the exchange rate for Euros, Mexican Pesos, and Chinese Yen to the United States Dollar
Step 2: Convert the values of each currency to the United States Dollar
Step 3: Add the values of all
Step 4: Express your answer in United States Dollars
Step 5: End process.
What is an Algorithm?This refers to the process or set of rules to be followed in calculations or other problem-solving operations, to find a value.
Read more about algorithm here:
https://brainly.com/question/24953880
#SPJ1
a) In order to execute a program, instructions must be transferred from memory along a bus to the CPU. If the bus has 8 data lines, at most one 8 bit byte can be transferred at a time. How many memory accesses would be needed in this case to transfer a 32 bit instruction from memory to the CPU?
Answer: 4 memory accesses
.........We should now focus on the 8 bit byte and how many can it transfer at a time. Notice how I bolded that word so we no know that we should fivide the 32 bit instruction divided by the 8 bit byte which would be 4 memory acesses
Help me with this digital Circuit please
A subset of electronics called digital circuits or digital electronics uses digital signals to carry out a variety of tasks and satisfy a range of needs.
Thus, These circuits receive input signals in digital form, which are expressed in binary form as 0s and 1s. Logical gates that carry out logical operations, including as AND, OR, NOT, NANAD, NOR, and XOR gates, are used in the construction of these circuits.
This format enables the circuit to change between states for exact output. The fundamental purpose of digital circuit systems is to address the shortcomings of analog systems, which are slower and may produce inaccurate output data.
On a single integrated circuit (IC), a number of logic gates are used to create a digital circuit. Any digital circuit's input consists of "0's" and "1's" in binary form. After processing raw digital data, a precise value is produced.
Thus, A subset of electronics called digital circuits or digital electronics uses digital signals to carry out a variety of tasks and satisfy a range of needs.
Learn more about Digital circuit, refer to the link:
https://brainly.com/question/24628790
#SPJ1
In order to average together values that match two different conditions in different ranges, an excel user should use the ____ function.
Answer: Excel Average functions
Explanation: it gets the work done.
Answer:
excel average
Explanation:
What is one myth a typist might believe about looking at their hands?
Question 1 options:
A I type slower when I look at my hands.
B I make more mistakes when I look at my hands.
C It's easier to type if you don't look down.
D My hands are too big.
One myth a typist might believe about looking at their hands is that C. It's easier to type if you don't look down.
Why do typists believe this myth ?While it is true that touch typing (typing without looking at the keyboard) can improve typing speed and accuracy over time, some typists may still find it helpful to look at their hands, especially when learning to type or when typing on an unfamiliar keyboard.
In fact, some typists may actually type slower or make more mistakes if they do not look at their hands, especially if they are still learning to type or if they are typing on a keyboard with a different layout than what they are used to.
Find out more on typists at https://brainly.com/question/29790868
#SPJ1
What are the purposes of a good web page design? The purpose of a good web page design is to make it and .
Answer:
responsiveness and intuitive
Explanation:
The two main purposes of a good web page design is responsiveness and intuitive. A webpage needs to be designed in such a way that the individual using it can easily find what they are looking for and understand what each function in the webpage does without having to ask for help or go through an extensive tutorial. They need to be able to use the website for the first time and immediately be able to use it as if they have used it countless times before. The webpage also needs to be designed with responsiveness in mind. So much so that the webpage runs fluently, loads images fast, and scales to the size of the monitor correctly. As a rule the webpage should not take longer than 2 seconds to load.
An internet filter is firewall software used to block a users access to specific internet content. An internet filter can be installed on which three of the following
An internet filter can be installed on a variety of devices, including:Computers: Internet filters can be installed on individual computers, whether they are desktops, laptops, or tablets.
This allows users to control their own access to certain websites or types of content.Routers: Some routers have built-in internet filtering capabilities, which allow network administrators to control access to specific websites or types of content for all devices connected to the network.Mobile devices: Internet filters can also be installed on smartphones and other mobile devices, which can be particularly useful for parents who want to restrict their children's access to certain types of content while using their mobile devices. internet filters can be installed on a range of devices, depending on the specific needs of the user or organization. By blocking access to certain websites or types of content, internet filters can help to protect users from harmful or inappropriate content, and promote responsible internet use.
To learn more about laptops click the link below:
brainly.com/question/30551024
#SPJ1
which one is exit controllefd loop ?
1.while loop
2. for loop
3. do loop
4. none
Answer:
2 is the ans
Explanation:
bye bye, gonna go to studyy
Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five-day week and the hours worked in a 252-day work year. The program outputs all the results.
Answer:
i think its 2131
Explanation:
c
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
A memory hierarchy is composed of an upper level and a lower level. Assume a CPU with 1ns clock cycle time. Data is requested by the processor. 8 out of 10 requests find the data in the upper level and return the data in 0.3ns. The remaining requests require 0.7 ns to return the data. Determine the corresponding values for the upper level memory.
Hit rate =
Miss rate =
Hit time =
Miss penalty =
AMAT =
Answer:
Hit rate = 80%
Miss rate = 20%
Hit time = 0.3 ns
Miss penalty = 0.4 ns
AMAT ≈ 3.875 ns
Explanation:
8 out of 10 = 0.3ns. to return data ( also finds data in the upper level )
2 out of 10 = 0.7 ns to return data
a) Hit rate in upper level memory
= 8/10 * 100 = 80%
b) Miss rate
= 2/ 10 * 100 = 20%
c) Hit time in the upper level memory
Hit time = 0.3 ns
d) Miss penalty
This is the time taken by the missed requests to return their own data
= 0.7 ns - 0.3 ns = 0.4 ns
e) AMAT ( average memory access time )
Hit rate = 80% , Hit time = 0.3ns
miss rate = 20% Miss time = 0.7 ns
hence AMAT = (0.3 / 0.8 ) + (0.7 / 0.2 )
≈ 3.875 ns
Type the correct answer in the box. Spell all words correctly.
In a content file, Rick wants to add information that gives directions about how the content will be used. He also wants it to be easily differentiable from the content. Which language should Rick use for this?
Rick can use the _____
language to give directions about the content.
Answer: markup
Explanation:
Markup is used to give directions about the arrangement of an image/text.
Answer:
Rick can use the markup language to give directions about the content.
Explanation:
I got it right on the test for Edmentum.
Which component of data-driven business values does adding new features fall into?
Answer:
What Does Data-Driven Mean?
Taking risks in business often pays off, but this does not mean that companies should pursue opportunities blindly. Enter the data-driven approach. What does data-driven mean? Data-driven describes a strategic process of leveraging insights from data to identify new business opportunities, better serve customers, grow sales, improve operations and more. It allows organizations to use evidence-based data to make decisions and plan carefully to pursue business objectives.
A data-driven decision is based on empirical evidence, enabling leaders to take informed actions that result in positive business outcomes. The opposite of a data-driven process is to make decisions based solely on speculation. For data-driven business leaders, listening to their gut may be part of their decision-making process, but they only take specific actions based on what the data reveals.
Business leaders in data-driven organizations understand the benefits of relying on data insights to make wise business moves. As MicroStrategy reports based on results from a McKinsey Global Institute study, data-driven businesses are 20-plus times more likely to acquire new customers and six times more likely to keep them. Those leaders, however, must be able to rely on knowledgeable data professionals and technology tools that can uncover the value in the data. Data professionals can also provide insights into the best ways to collect, store, analyze and protect valuable business data.
Explanation:
If Maya wants to access a view that would control multiple slides within a presentation, which view should she utilize? Master view Color view Slide Sorter view Normal view
Answer:
Slide Shorter View
Explanation:
If Maya wants to access a view that would control multiple slides within a presentation, which view should she utilize Slide Shorter View.
What is Slide shorter view?View of the Slide Sorter from the task bar displays the Slide View button in PowerPoint, either from the View tab on the ribbon or at the bottom of the slide window.
The Slide Sorter view (below) shows thumbnails of each slide in your presentation in a horizontally stacked order. If you need to rearrange your slides, the slide show view comes in handy.
You can simply click and drag your slides to a new spot or add sections to categorize your slides into useful groupings.
Therefore, If Maya wants to access a view that would control multiple slides within a presentation, which view should she utilize Slide Shorter View.
To learn more about Slide shorter view, refer to the link:
https://brainly.com/question/13736919
#SPJ6
does Anyone here knows introduction programming..
Answer:
Programming is writing computer code to create a program, to solve a problem. Programs are created to implement algorithms . Algorithms can be represented as pseudocode or a flowchart , and programming is the translation of these into a computer program.
1 pts Question 9 is what we use to communicate day to day.
10 investigative questions about the impact of instant messaging in the business world
Has the widespread use of instant messaging in the workplace changed teammate interaction and communication What effect does instant messaging have on workers' output.
Why is a communications plan necessary for any business?Your communications are guided by a messaging strategy. Every message is in line with what your customers want. A successful messaging strategy should have a specific objective, stand out from the competitors, cater to the needs of a particular audience, and tell the brand's story at every stage of the customer journey.
Which types of written business messages are most frequently utilized at work?The most common forms of written business communication are letters and memos. Letters are frequently used to communicate official business information to stakeholders outside of the company.
To know more about output visit:-
https://brainly.com/question/18133242
#SPJ1
1. If the document is something that is produced frequently, is there a template readily available which you could fill in with a minimum of effort? 2. If so, which template fits with company and industry requirements? 3. If a template is available, does it need to be tweaked to make it conform to your needs? 4. If a template is not available, can one be created and saved for future use? 5. Who needs to approve the template before it becomes a standard tool for the business? 6. What software should be used to create the template? Should it be proprietary software or free software?
If the document is produced frequently, it is likely that there is a template readily available that can be used as a starting point for creating the document.
What is template?A template is a pre-designed document or file that can be used to start new documents with a similar structure or format.
Templates, which provide a standardized framework for organizing and presenting information, can be used to save time and ensure consistency across documents.
To ensure that the template meets company and industry requirements, it's important to review and compare the template with the relevant standards, guidelines, and regulations.
If a template is available, it may need to be tweaked to make it conform to specific needs or preferences.
This can involve making changes to formatting, structure, or content to better reflect the specific requirements of the document.
If a suitable template is not available, it may be necessary to create one from scratch. Once created, the template can be saved and reused as needed for future documents.
Approval for a template may depend on the specific policies and procedures of the organization.
Thus, there are many software options available for creating templates, including proprietary software such as Microsoft Word or Adobe InDesign, as well as free software such as Docs or OpenOffice.
For more details regarding template, visit:
https://brainly.com/question/13566912
#SPJ9
Using the Impress program, you can add multimedia files, including audio, image, and video files, to the presentation
by using
the Insert menu.
the Media menu.
the Edit menu.
the Add menu.
Mark this and return
Answer:
A. The Insert Menu
Explanation:
:)
Answer:
Edit menu
Explanation:
Explain why there are more general-purpose registers than special purpose registers.
Answer:
Explanation:
General purpose registers are used by programmer to store data whereas the special purpose registers are used by CPU for temporary storage of the data for calculations and other purposes.
Conditional formatting allows spreadsheet users to
turn cell protection functions on and off.
calculate the average number of people at sporting events.
highlight test scores of below 90% in a grade book.
add additional formatting options to a menu.
It C. highlight test scores of below 90% in a grade book.
Answer:
CExplanation:
highlight test scores of below 90% in a grade book.
Answer:
C. highlight test scores of below 90% in a grade book.
Explanation:
:)
Which of the following would a cyber criminal most likely do once they gained access to a user id and password
Answer:
do something wrong as you
what is mass communication
Hey there!
When you see the word “mass communication” think of an article written on the newspaper or a person interaction on a social media platform. You’re talking to a variety of LARGE groups but not physically there in their appearance, right? (This is an EXAMPLE.... NOT an ANSWER)
Here’s SOME examples
- Political debate campaigns
- Journalism (you could find some in articles / newspapers passages)
- Social Media Platforms
- A company PROMOTING their brand as a COMMERCIAL on the television/radio
Without further a do... let’s answer your question….......
Basically “mass communication”
is the undertaking of media coordination which produce and carries out messages with HUGE crowds/public audiences and by what the message process striven by their audience ☑️
Good luck on your assignment and enjoy your day!
~LoveYourselfFirst:)
a personal statement should be submitted
Answer:
Prospective employers and universities may ask for a personal statement that details your qualifications for a position or degree program. Writing a compelling personal statement is an excellent way to highlight your skills and goals to an employer or university.
Yes, submitting a personal statement is often required or advised when applying for specific academic programs, scholarships, or jobs.
A person's background, experience, objectives and motivations can all be expressed in a personal statement, which is a written declaration. This gives the applicant a chance to highlight personal successes, abilities and characteristics that make them an excellent contender for the position they are pursuing.
A well-written personal statement can help tell a compelling story and make a good impression on the hiring manager or committee. It is important to follow closely any instructions or prompts given and to adjust individual details to the particular needs of the application.
Learn more about personal statement, here:
https://brainly.com/question/3660905
#SPJ1