Here are some ways in which computers are important to mass communication:
Production of ContentBroadcasting and DistributionWhat is the Computer?Computers and mass media are closely related in the modern world. Mass communication, which involves the dissemination of information to a large audience through various media channels, such as television, radio, newspapers, magazines, and the internet, heavily relies on computer technology for its functioning.
Therefore, Here are some ways in which computers are important to mass communication:
Production of Content: Computers are widely used in the production of content for mass media, such as writing, editing, designing, and publishing. With the help of computer software, journalists, writers, and editors can create and edit text, images, and videos that are used in various media channels.
Broadcasting and Distribution: Computers are used in broadcasting and distribution of media content.
Read more about Computer here:
https://brainly.com/question/24540334
#SPJ1
With clear examples, describe how artificial intelligence is applied in fraud detection
Answer:
AI can be used to reject credit transactions or flag them for review. Like at Walmart
Explanation:
I work with AI, i know what i'm talking about.
Tracy has completed installing Windows 7 on a computer and is ready to install a printer. Tracy attaches the printer to the computer and a message pops up that a new device is being installed. When the process is done, she tries to locate the printer, but the printer is not available.
What can Tracy do to use the printer?
[] Install the driver from the manufacturer's website.
Correct. Microsoft does not embed drivers for all devices. If a device will not work with the Windows drivers, Tracy should check for third-party drivers at the manufacturer's website.
What is printer?A printer is a computer accessory which creates a permanent representation of text or graphics, typically on paper. Although the majority of output is understandable by humans, bar code printers are an example of a printer's wider application. 3D printers, inkjet printers, laser printers, and thermal printers are a few of the several types of printers. Charles Babbage created the first computer printer in the 19th century for his difference engine, but it wasn't until 2000 that his mechanical printer design was really implemented. In specifically, an electrostatic inking device and a method for electrostatically depositing ink on predetermined portions of a receiving media were the first printing mechanisms for applying a marking medium to a recording medium to be granted a patent, both by C. R. Winston in 1962.
To know more about printer visit:
https://brainly.com/question/28942240
#SPJ4
If x=50.7,y=25.3 and z is defined as integer z,calculate z=x+y
Answer:
Ans: 76
Explanation:
z=x+y
=50•7 + 25•3
=76#
As the complexity of a network increases, the possibility of security breaches decreases. is this true or false
As the complexity of a network increases, the possibility of security breaches decreases is a false statement.
What is the complexity of a network?Network complexity is known to be a term that connote the series of nodes and alternative paths that is said to often exist inside of a computer network.
A network is seen to be complex due to the nature of its functions as it is known to be often multipurpose in nature.
It is one that is seen as the different kinds of communication media, communications equipment, as well as the protocols, hardware and software applications that can be located in the network.
Therefore, As the complexity of a network increases, the possibility of security breaches decreases is a false statement.
Learn more about security breaches from
https://brainly.com/question/24956493
#SPJ1
In the ____ model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.
Answer:
peer to peer
Explanation:
i just know
In a peer-to-peer model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.
What do you mean by Computer Network?Computer Network may be defined as a type of system that significantly connects two or more computing devices with the intention of transmitting and sharing information with one another. In a more simple sense, there is an interconnection between computing devices.
In a peer-to-peer networking model, a group of computers are linked together with having equal responsibilities for the processing of data and information. Each computer is capable to initiate a command that has to be followed by the rest.
Therefore, in a peer-to-peer model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.
To learn more about the peer-to-peer model, refer to the link:
https://brainly.com/question/9315259
#SPJ2
Write the C++ program that, using specifically created functions for the geometric sequence with the quotient q entered by the user, will:
a.Calculate and print the first 100 elements
b.Calculate and print the sum of the first 100 elementsThe main loop of the program should providing the subsequent elements, printing results of calculations and terminating the program.
The C++ application that computes and outputs the first 100 elements.
class gfg {
public:
void printNos(unsigned int n) {
if(n > 0) {
printNos(n - 1);
cout << n << " "; }
return; }
};
int main() {
gfg g;
g.printNos(100);
return 0;
}
How do you compute the sum of 1 and 100?All natural numbers between 1 and 100 add up to 5050. In this range, there are 100 natural numbers in total. Thus, we obtain S=5050 by using this number in the formula: S = n/2[2a + (n 1) d].
How can 100 numbers in an array be printed?num[num] = num[num-1] +1; to round the previous number up by one before printing it. Now it prints perfectly. if (int a = 0; a > 100; a++) number[100] += number[a]; / add number[a] to result printf("%d\n",number[100]);
To know more about C++ program visit :-
https://brainly.com/question/27018455
#SPJ1
Which of the following is true of a constant? Choose all that apply
1) it cannot be changed by the program
2) it is data type
3) it is a procedure in a block of code
4)it can be changed by the program as it runs
The following statements are true of a constant:
it cannot be changed by the programit is a data typeTherefore, the correct options are 1) and 2).
What is a data type?A data type is a collection or grouping of data values in computer science and computer programming, often defined by a set of potential values, a set of allowable actions on these values, and/or a representation of these values as machine types.
Data types provide the semantics and storage properties of data components in the C programming language. They are stated as declarations for memory locations or variables in the language syntax. The types of operations or techniques of processing data pieces are also determined by data types.
Learn more about data type at:
https://brainly.com/question/30615321
#SPJ1
Note that common work styles are listed toward the top, and less common work styles are listed toward the bottom. According to O*NET, what are common work styles needed by Reporters and Correspondents?
According to O*NET, common work styles needed by reporters and correspondents include:
Attention to DetailDependability, etcWhat is Attention to Detail?Attention to Detail: Reporters and correspondents must be able to gather and report accurate information, paying attention to every detail.
Dependability: This profession requires reliability and dependability, as reporters and correspondents must meet strict deadlines and follow through on their assignments.
Initiative: Reporters and correspondents must be proactive in seeking out news stories and identifying potential sources for information.
Adaptability/Flexibility: The ability to adapt and be flexible in a fast-paced and ever-changing news environment is critical for success in this profession.
Persistence: Reporters and correspondents must be persistent in pursuing leads and sources, as well as in getting their stories published or aired.
Stress Tolerance: This profession can be stressful, with tight deadlines, long hours, and challenging assignments. Reporters and correspondents must be able to handle the pressure and stress of their work.
Integrity: Reporters and correspondents must maintain the highest ethical standards and report the truth, even in the face of potential obstacles or criticism.
Read more about reporters here:
https://brainly.com/question/27937774
#SPJ1
URGENT DON'T KNOW THE ANSWER PLS HELP!!
8.5 CODE PRACTICE
I'LL DO BRAINLIEST for whoever gets the right answer because I keep getting a 60%
Using Python code to input the codes as shown will produce the required output.
What is the code in Python?Using Python code, here is the input procedure:
taliquotes = [
"I have never let my schooling interfere with my education.",
"Get your facts first, and then you can distort them at such as you please.",
"If you tell the truth, you don't have to remember anything.",
"The secret of getting ahead is getting started.",
"Age is an issue of mind over matter. If you don't sing, it doesn't matter."
"History"
]
# Print the original list
print(taliquotes)
# Sort the list
taliquotes.sort()
# Print the sorted list
print(taliquotes)
# Insert the new quote
taliquotes.insert(4, "Courage is resistance to fear, mastery of fear, not absence of fear")
# Print the list with the new quote
print(taliquotes)
# Remove the first quote
taliquotes.pop(0)
# Print the final list
print(taliquotes)
This code will output:
['I have never let my schooling interfere with my education.', 'Get your facts first, and then you can distort them at such as you please.', "If you tell the truth, you don't have to remember anything.", 'The secret of getting ahead is getting started.', 'Age is an issue of mind over matter. If you don't sing, it doesn't matter.History']
['Age is an issue of mind over matter. If you don't sing, it doesn't matter.History', 'Courage is resistance to fear, mastery of fear, not absence of fear', 'Get your facts first, and then you can distort them at such as you please.', 'I have never let my schooling interfere with my education.', "If you tell the truth, you don't have to remember anything.", 'The secret of getting ahead is getting started.']
['Age is an issue of mind over matter. If you don't sing, it doesn't matter.History', 'Courage is resistance to fear, mastery of fear, not absence of fear', 'Get your facts first, and then you can distort them at such as you please.', 'I have never let my schooling interfere with my education.', "If you tell the truth, you don't have to remember anything.", 'The secret of getting ahead is getting started.']
['Courage is resistance to fear, mastery of fear, not absence of fear', 'Get your facts first, and then you can distort them at such as you please.', "If you tell the truth, you don't have to remember anything.", 'The secret of getting ahead is getting started.', 'Age is an issue of mind over matter. If you don't sing, it doesn't matter.History']
Learn more about Python at: https://brainly.com/question/26497128
#SPJ1
You are given an array of integers, each with an unknown number of digits. You are also told the total number of digits of all the integers in the array is n. Provide an algorithm that will sort the array in O(n) time no matter how the digits are distributed among the elements in the array. (e.g. there might be one element with n digits, or n/2 elements with 2 digits, or the elements might be of all different lengths, etc. Be sure to justify in detail the run time of your algorithm.
Answer:
Explanation:
Since all of the items in the array would be integers sorting them would not be a problem regardless of the difference in integers. O(n) time would be impossible unless the array is already sorted, otherwise, the best runtime we can hope for would be such a method like the one below with a runtime of O(n^2)
static void sortingMethod(int arr[], int n)
{
int x, y, temp;
boolean swapped;
for (x = 0; x < n - 1; x++)
{
swapped = false;
for (y = 0; y < n - x - 1; y++)
{
if (arr[y] > arr[y + 1])
{
temp = arr[y];
arr[y] = arr[y + 1];
arr[y + 1] = temp;
swapped = true;
}
}
if (swapped == false)
break;
}
}
I have been getting this error code every time I try and run windows update. It occurs with the 2020-10 Microsoft Edge update, the 2020-10 Update for Windows 10 Version 1909 for x64-based systems (KB4023057) and for 2020-12 Cumulative Update for Windows 10 Version 1909 for x64-based Systems (KB4592449). Other updates that have subsequently become available have worked fine. I've followed all the troubleshooting guidance provided e.g.:
https://support.microsoft.com/en-us/topic/fix-windows-update-errors-351b09cf-ca34-1865-8b57-85c193ca3a6a
I've looked external to here and other solutions suggest running manual updates and typically involve running various commands or batch files e.g.
https://thegeekpage.com/how-to-fix-windows-update-error-code-0x800f0805-in-windows-10/
or
https://www.howtoedge.com/fix-update-error-0x800f0805-in-windows-10/#:~:text=Windows%20Update%20Error%200x800f0805%20is,cause%20further%20damage%20if%20ignored.&text=The%20changes%20couldn't%20be,your%20computer%20and%20try%20again.
I haven't tried these yet.
How do I resolve this issue?
To resolve the error code you are experiencing when trying to run Windows Update, you can try the following steps:
1. Run Windows Update Troubleshooter:
- Press the Windows key and type "Troubleshoot settings" in the search bar.
- Click on "Troubleshoot settings" and then select "Additional troubleshooters".
- Click on "Windows Update" and then "Run the troubleshooter". Follow the on-screen instructions.
2. Reset Windows Update components:
- Press the Windows key + X and choose "Windows PowerShell (Admin)" from the menu.
- In PowerShell, type the following commands one by one, and press Enter after each command:
```
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
```
- Next, type these commands to rename the SoftwareDistribution and Catroot2 folders:
```
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
```
- Finally, restart the stopped services with these commands:
```
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
```
- Close PowerShell and restart your computer.
3. Install the updates manually:
Visit the Microsoft Update Catalog (https://www.catalog.update.microsoft.com/) and search for the specific update codes (e.g., "KB4023057" or "KB4592449"). Download the correct version for your system (x64-based) and install them manually.
After trying these steps, you should be able to resolve the issue with Windows Update. If the problem persists, you may consider contacting Microsoft support for further assistance.
In order to fix the error code that occurs during windows update, follow the steps given below:Ensure the device is connected to the internet:Make sure that the device is connected to the internet before you start the update process.Manual updates installation:Run manual updates installation. In order to do that, follow the steps given below:Open Settings and click on Update & SecurityClick on the Check for updates button on the right-hand side of the screenInstall the updates that are available on the screen manuallyRepair the corrupted Windows update files:Windows Update services should be stopped first.Open the command prompt as an administrator and type in the following commands:net stop bitsnet stop wuauservnet stop appidsvcnet stop cryptsvcType these commands and then press Enter after each of them.In the search bar, type services.msc, and then press Enter.Find the Windows Update services that are not running and start them again.Update the device drivers:The next step would be to update the device drivers. Follow the steps given below to update the device drivers:Press the Windows Key + X on the keyboardSelect Device Manager from the optionsIn the window that opens up, find the device driver that needs to be updatedRight-click on the device driverClick on Update driverWait for the update to finishThese are some of the solutions that can help you in fixing the Windows update error code.
To know more about code click here
brainly.com/question/26632484
#SPJ11
what is the index for "Ahmed" in the list ["James", "Omar", "Ahmed", "Lee", "Mia]
Answer:
Assuming zero based indexing
James - 0
Omar - 1
Ahmed - 2
Which of the following tools can be used to see if a target has any online IoT devices without proper security?
Shodan tools can be used to see if a target has any online IoT devices without proper security.
What is Shodan Tool?Shodan (Sentient Hyper-Optimized Data Access Network) is a search engine designed to map and collect information about Internet-connected devices and systems. Shodan is sometimes called a search engine for the Internet of Things (IoT). Shodan is mostly used by hackers and pentesters
What is Shodan?Shodan (Sentient Hyper-Optimized Data Access Network) is a search engine for internet-connected devices. Designed and developed by web developer John Matherly, this search engine crawls the entire Internet, parses his banners that serve IoT devices, and creates an index for future searches.
Learn more about Lot devices:
brainly.com/question/14087456
#SPJ4
The top left corner of the Excel UI contains commands that are frequently used and is customizable. What is the name
of this area?
O window controls
O status bar
O ribbon
O Quick Access toolbar
Answer:
Explanation:
The "Office" button is located in the upper left corner of the window. Clicking the button displays a menu of basic commands for working with files, a list of recent documents, and a command for configuring application settings (for example, Excel Options).
In much of the world, SI units are used in everyday life and not just in science. Why would it make sense for people in the United States to use SI units in everyday life, too?
Answer:
The use of SI is a way to standardize all measurements.
Explanation:
The use of SI is a way to standardize all measurements. In this way, people all over the world can communicate the data without any confusion. This allows them to exchange quantitative information when it comes to business and science in an effective and convenient way.
In Python, when converting a string value into a numeric value that is a positive or negative whole number, the int() function is used.
True
False
Answer:
True
Explanation:
The Int Variable can handle Positive and Negative Numbers, it just can't handle decimal numbers.
The statement "In Python, when converting a string value into a numeric value that is a positive or negative whole number, the int() function is used" is true.
What is python?Python is a popular computer programming language used to create software and websites, automate processes, and analyze data. Python is a general-purpose language, which means it may be used to make many various types of applications and isn't tailored for any particular issues.
Python is a great programming language for experienced developers as well. It's one of the most widely used programming languages in the world, maybe as a result of how simple it is for novices to learn. Python is one of the most approachable programming languages due of its simple syntax and lack of complexity.
Therefore, the statement is true.
To learn more about python, refer to the link:
https://brainly.com/question/18502436
#SPJ5
what changes might you make to a circuit in order to slow the flow of electrical energy?
Answer: The resistor uses the energy of the electrons around the wire and slows down the flow of electrons.
Explanation:
describe usage about hand geometry biometric?
Biometrics for hand geometry recognition are less obvious than those for fingerprint or face recognition. Despite this, it is nevertheless applicable in numerous time/attendance and physical access applications.
What is Hand geometry biometric?The concept that each person's hand geometry is distinct is the foundation of hand geometry recognition biometrics.
There is no documented proof that a person's hand geometry is unique, but given the likelihood of anatomical structure variance across a group of people, hand geometry can be regarded as a physiological trait of humans that can be used to distinguish one person from another.
David Sidlauskas first proposed the idea of hand geometry recognition in 1985, the year after the world's first hand geometry recognition device was commercially released.
Therefore, Biometrics for hand geometry recognition are less obvious than those for fingerprint or face recognition. Despite this, it is nevertheless applicable in numerous time/attendance and physical access applications.
To learn more about Hand geometry biometric, refer to the link:
https://brainly.com/question/12906978
#SPJ9
An index of all the files stored on the computer is/are the??
Answer:
File Allocation Table (FAT)
Explanation:
You are the new head of a medium-sized company providing services focused on investments and financial applications for individual and corporate clients:
The company's headquarters has an IT park with 60 terminals (desktops), which have Windows OS and the MS-Office package, but you do not have control of licensing this, since the previous boss did not provide this documentation.
In addition to these computers, there are 5 printers, which have connectivity functionality to the computer network. It should be noted that this same computer network has Wi-Fi connectivity for employees, outsourced workers and customers, who have common access to the same single contracted Internet link, that is, everyone has the same access privileges.
All equipment is interconnected in the same network, either wired or via Wi-Fi, including the 3 local servers, one for the Database, another for the Application and a third used as a file server for all employees .
The e-mails are maintained by a Provider, as well as the company's website and virtual store, where customers can consult their investments and carry out real financial applications or simulations.
Three large systems are installed on these servers, one ERP for the main business, the second for human resources management and the CRM is also installed there.
This company has an average of 90 employees, who work directly and indirectly, and 80 work exclusively directly, that is, they are direct employees of this company.
External consultants and outsourced professionals have their own or company notebooks to connect to the network.
In addition, this company recently had a series of misfortunes with its data, as the previous boss subtracted more than half of the customers to another company that he individually owned, without the need for profit sharing. In addition to the fact that the company was invaded by thieves, who subtracted some equipment. And yet, some company employees chose to leave their company to work with their “former boss”.
QUESTION: WHAT WOULD BE YOUR MAIN ACTIONS WHEN TAKING OVER THE LEADERSHIP OF THIS COMPANY?
Business leadership is the ability of an organization's management to define and achieve hard goals, move swiftly and decisively when necessary, outperform the competition, and motivate employees to perform to the best of their abilities.
Thus, In contrast to quantitative measures, which are frequently tracked and much simpler to compare between organizations, it can be challenging to put a value on leadership or other qualitative qualities of a company.
As in the tone a firm's management sets or the culture of the organization that management produces, leadership can also refer to a more all-encompassing approach.
Setting and attaining goals, taking on the competition, and finding quick and effective solutions to issues are all aspects of leadership. Leadership may also be defined as the corporate culture that a company's management establishes.
Thus, Business leadership is the ability of an organization's management to define and achieve hard goals, move swiftly and decisively when necessary, outperform the competition, and motivate employees to perform to the best of their abilities.
Learn more about Leadership, refer to the link:
https://brainly.com/question/32010814
#SPJ1
Excel
Please explain why we use charts and what charts help us to identify.
Please explain why it is important to select the correct data when creating a chart.
1) We use chart for Visual representation, Data analysis, Effective communication and Decision-making.
2. It is important to select the correct data when creating a chart Accuracy, Credibility, Clarity and Relevance.
Why is necessary to select the correct data in chart creation?Accuracy: Selecting the right data ensures that the chart accurately represents the information you want to convey. Incorrect data can lead to misleading or incorrect conclusions.
Relevance: Choosing the appropriate data ensures that your chart focuses on the relevant variables and relationships, making it more useful for analysis and decision-making.
Clarity: Including unnecessary or irrelevant data can clutter the chart and make it difficult to interpret. Selecting the correct data helps to maintain clarity and simplicity in the chart's presentation.
Credibility: Using accurate and relevant data in your charts helps to establish credibility and trust with your audience, as it demonstrates a thorough understanding of the subject matter and attention to detail.
Find more exercises related to charts;
https://brainly.com/question/26501836
#SPJ1
What does influence mean in this passage i-Ready
In the context of i-Ready, "influence" refers to the impact or effect that a particular factor or element has on something else. It suggests that the factor or element has the ability to shape or change the outcome or behavior of a given situation or entity.
In the i-Ready program, the term "influence" could be used to describe how various components or aspects of the program affect students' learning outcomes.
For example, the curriculum, instructional methods, and assessments implemented in i-Ready may have an influence on students' academic performance and growth.
The program's adaptive nature, tailored to individual student needs, may influence their progress by providing appropriate challenges and support.
Furthermore, i-Ready may aim to have an influence on teachers' instructional practices by providing data and insights into students' strengths and areas for improvement.
This can help educators make informed decisions and adjust their teaching strategies to better meet their students' needs.
In summary, in the context of i-Ready, "influence" refers to the effect or impact that different elements of the program have on students' learning outcomes and teachers' instructional practices. It signifies the power of these components to shape and mold the educational experiences and achievements of students.
For more such questions element,Click on
https://brainly.com/question/28565733
#SPJ8
Round 2,834 to the nearest hundred.
Answer:
it's 2,800
Explanation:
i hope this helps
Answer:
Explanation:
2 834 ≈ 2 800
There are two different ways to insert content from one application to another—embedding and —————-
There are two different ways to insert content from one application to another—embedding and linking.
Embedding refers to the process of incorporating content from one application directly into another, creating a self-contained object within the destination application. When content is embedded, it becomes an integral part of the destination document or file.
The embedded content maintains its original format and functionality, allowing users to interact with it as they would within its original application.
For example, embedding a spreadsheet into a presentation allows the audience to view and manipulate the spreadsheet directly without leaving the presentation.
On the other hand, linking involves creating a connection between the source content and the destination application. Instead of embedding the actual content, a link is established that points to the original file or source.
When the linked content is accessed in the destination application, it retrieves and displays the most up-to-date version of the source content. For instance, linking a chart from a spreadsheet to a word document ensures that any changes made to the chart in the spreadsheet are automatically reflected in the linked chart within the document.
Both embedding and linking have their advantages and considerations. Embedding provides a self-contained experience, ensuring that the content remains accessible even if the source file is modified or deleted. However, embedded content can increase file size and may lead to compatibility issues between applications.
Linking, on the other hand, allows for dynamic updates and efficient use of file space, but it relies on the availability and proper organization of the source files.
Ultimately, the choice between embedding and linking depends on factors such as the nature of the content, the desired level of interactivity, the need for real-time updates, and the intended use of the destination document or application.
For more questions on content
https://brainly.com/question/18331458
#SPJ11
A simple machine produces 25 joules of output work for every 50 joules of input work. What is the efficiency of this machine?.
Answer:
The efficiency of the machine is 50%
Explanation:
The efficiency of a machine is defined as the ratio of the output work to the input work, expressed as a percentage. Therefore, we can calculate the efficiency of the given machine using the formula:
Efficiency = (Output Work / Input Work) x 100%
We are given that the machine produces 25 joules of output work for every 50 joules of input work. Therefore, the efficiency of the machine is:
Efficiency = (25 / 50) x 100% = 0.5 x 100% = 50%
So the efficiency of this machine is 50%. This means that only half of the input work is converted into useful output work, while the other half is lost as heat, friction, or other forms of energy loss.
Write a RainFall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following:
the total rainfall for the year
the average monthly rainfall
the month with the most rain
the month with the least rain
Demonstrate the class in a complete program.
Input Validation: Do not accept negative numbers for monthly rainfall figures.
import java.io.*;
import java.util.*;
public class Rainfall
{
Scanner in = new Scanner(System.in);
private int month = 12;
private double total = 0;
private double average;
private double standard_deviation;
private double largest;
private double smallest;
private double months[];
public Rainfall()
{
months = new double[12];
}
public void setMonths()
{
for(int n=1; n <= month; n++)
{
System.out.println("Enter the rainfall (in inches) for month #" + n + ":" );
months[n-1] = in.nextInt();
}
}
public double getTotal()
{
total = 0;
for(int i = 0; i < 12; i++)
{
total = total + months[i];
}
System.out.println("The total rainfall for the year is" + total);
return total;
}
public double getAverage()
{
average = total/12;
System.out.println("The average monthly rainfall is" + average);
return average;
}
public double getLargest()
{
double largest = 0;
int largeind = 0;
for(int i = 0; i < 12; i++)
{
if (months[i] > largest)
{
largest = months[i];
largeind = i;
}
}
System.out.println("The largest amout of rainfall was" + largest +
"inches in month" + (largeind + 1));
return largest;
}
public double getSmallest()
{
double smallest = Double.MAX_VALUE;
int smallind = 0;
for(int n = 0; n < month; n++)
{
if (months[n] < smallest)
{
smallest = months[n];
smallind = n;
}
}
System.out.println("The smallest amout of rainfall was" + smallest +
"inches in month " + (smallind + 1));
return smallest;
}
public static void main(String[] args)
{
Rainfall r = new Rainfall();
r.setMonths();
System.out.println("Total" + r.getTotal());
System.out.println("Smallest" + r.getSmallest());
System.out.println("Largest" + r.getLargest());
System.out.println("Average" + r.getAverage());
}
}
Answer:
Explanation:
The code provided worked for the most part, it had some gramatical errors in when printing out the information as well as repeated values. I fixed and reorganized the printed information so that it is well formatted. The only thing that was missing from the code was the input validation to make sure that no negative values were passed. I added this within the getMonths() method so that it repeats the question until the user inputs a valid value. The program was tested and the output can be seen in the attached image below.
import java.io.*;
import java.util.*;
class Rainfall
{
Scanner in = new Scanner(System.in);
private int month = 12;
private double total = 0;
private double average;
private double standard_deviation;
private double largest;
private double smallest;
private double months[];
public Rainfall()
{
months = new double[12];
}
public void setMonths()
{
for(int n=1; n <= month; n++)
{
int answer = 0;
while (true) {
System.out.println("Enter the rainfall (in inches) for month #" + n + ":" );
answer = in.nextInt();
if (answer > 0) {
months[n-1] = answer;
break;
}
}
}
}
public void getTotal()
{
total = 0;
for(int i = 0; i < 12; i++)
{
total = total + months[i];
}
System.out.println("The total rainfall for the year is " + total);
}
public void getAverage()
{
average = total/12;
System.out.println("The average monthly rainfall is " + average);
}
public void getLargest()
{
double largest = 0;
int largeind = 0;
for(int i = 0; i < 12; i++)
{
if (months[i] > largest)
{
largest = months[i];
largeind = i;
}
}
System.out.println("The largest amount of rainfall was " + largest +
" inches in month " + (largeind + 1));
}
public void getSmallest()
{
double smallest = Double.MAX_VALUE;
int smallind = 0;
for(int n = 0; n < month; n++)
{
if (months[n] < smallest)
{
smallest = months[n];
smallind = n;
}
}
System.out.println("The smallest amount of rainfall was " + smallest +
" inches in month " + (smallind + 1));
}
public static void main(String[] args)
{
Rainfall r = new Rainfall();
r.setMonths();
r.getTotal();
r.getSmallest();
r.getLargest();
r.getAverage();
}
}
Create a python program that allows the user to continuously enter numbers until the user enters 0. Output the sum of the numbers
Answer:
m = 0
summ = 0
n=int(input('Enter a number, 0 to end: '))
while n != 0:
summ = summ + n
m = m + 1
n=int(input('Enter a number, 0 to end: '))
print('You entered',m,'numbers and the sum of the numbers you entered is', summ)
Explanation:
m is used to count the numbers entered, summ is used to store the summation of the numbers, n is used to store the number entered. When a number is entered, it is checked if the number is not equal to 0 using a while loop. If the condition is True, the loop body is executed, which adds the number entered to sum which has an initial value of 0, this is repeated until zero (0) is entered which terminates the loop and prints out the summation of the entered number.
For this assignment, you will code one song in EarSketch, each incorporating the following Python commands:
You must use some form of randomization in your songs, using the randint() function.
You must use a conditional statement in your songs, using an if, else, elif statement.
You must use both of the EarSketch functions fitMedia() and setEffect() for an effect in your script (such as a fade or distortion).
You must use string operations (concatenation or splicing) to create your own beat, using the EarSketch function makeBeat().
You must use for loops to add repetition to your code
Each song must be at least 16 measures long.
Each song should have at least three tracks.
Each song should include different elements unique to a music genre (different beats, instruments, or sound clips that would allow a listener to tell songs apart from one another).
Answer:
edit your question and send a screenshot of the question
Explanation:
The security administrator for Corp.com. You are explaining to your CIO the value of credentialed scanning over non-credentialed scanning. In credentialed scanning, policy compliance plugins give you which advantage?
In credentialed scanning, policy compliance plugins give you an advantage known as option C: Customized auditing.
What does auditing serve to accomplish?The goal of an audit is to determine if the financial report's information, taken as a whole, accurately depicts the organization's financial situation as of a particular date. For instance, is the balance sheet accurately recording the organization's assets and liabilities?
Therefore since the goal of such a tailored audit, aside from cost and time savings, so, it is to present an objective overall picture of your supplier's organization in all pertinent disciplines, allowing you to better target risk areas and allocate control resources where they are most needed.
Learn more about Customized auditing from
https://brainly.com/question/7890421
#SPJ1
See full question below
The security administrator for Corp.com. You are explaining to your CIO the value of credentialed scanning over non-credentialed scanning. In credentialed scanning, policy compliance plugins give you which advantage?
More accurate results
Safer scanning
Customized auditing
Active scanning
Create an ArrayList of Countries
- Create a class called Country.java.
- Instance variables include name (String), capital (String), and population (an int representing the population of the capital)
- Write a 3-arg constructor
- Write 3 accessor methods
- Write a toString method that returns the state/value of all instance variables.
- Test out your class:
- Step 1: Create an ArrayList of five countries.
- Step 2: Print out your ArrayList.
- Step 3: Remove one of the countries.
- Step 4: Print out your ArrayList again.
- Step 5: Create a new country and insert it in the middle of your ArrayList.
- Step 7: Print out your ArrayList again.
- Step 8: Change your last country to the country you removed in Step 3.
- Step 9: Print out your ArrayList again.
Answer:
Step 1: Create an ArrayList of five countries by creating Country objects and adding them to the ArrayList.
Step 2: Print out your ArrayList by looping through it and printing out each Country object's toString() method.
Step 3: Remove one of the countries from the ArrayList by using the remove() method and passing in the index of the object you wish to remove.
Step 4: Print out your ArrayList again by looping through it and printing out each Country object's toString() method.
Step 5: Create a new country and insert it in the middle of your ArrayList by creating a Country object and using the add() method with the index of the position in the ArrayList.
Step 6: Print out your ArrayList again by looping through it and printing out each Country object's toString() method.
Step 7: Change your last country to the country you removed in Step 3 by first removing the last country from the ArrayList, creating a new Country object using the same parameters as the one you removed earlier, then using the add() method with the index of the last position in the ArrayList.
Step 8: Print out your ArrayList again by looping through it and printing out each Country object's toString() method.