In the C programming language, the putchar() function is used to write a character to standard output or the screen.
To obtain or read a character via keyboard input, use the getchar() function. The description and syntax for the file handling function mentioned above are provided below. Moving to a specified location in a file requires additional functionalities from random access processing. The fseek() function enables you to jump directly to any specific byte in a file opened by fopen and treat a file like an array (). The current location in a file is returned as a long value by the ftell() function.
#include <stdio.h>
#include <ctype.h>
int main()
{
char c;
printf("Enter some character. Enter $ to exit...\n");
while (c != '$');
{
c = getchar();
printf("\n Entered character is: ");
putchar(c);
printf("\n")
}
return 0;
}
Learn more about programming here-
https://brainly.com/question/11023419
#SPJ4
erp is beneficial because it transforms transactional data into information that can be used to support decision making.
ERP is beneficial because it transforms transactional data into information that can be used to support decision making. [TRUE]
What is ERPERP (Enterprise Resource Planning) is an information system model that enables organizations to automate and integrate their main business processes. ERP breaks the deadlock of various traditional functional barriers within the organization by facilitating sharing/various data, multiple information flows, and introducing/channeling common business practices among all users in the organization.
ERP system implementation can be a massive undertaking that can take up to several years. Due to the complexity and size of ERP systems, only a minority of organizations are willing or able to deploy multiple physical and financial resources and take the risk of developing an ERP system in-house. Therefore, basically all ERP systems are commercial products. Products that are considered and recognized as leaders in the market are SAP, Oracle, Baan, J.D. Edwards & Co., and PeopleSoft Inc.
ERP packages are sold to various client organizations in the form of modules that support standard processes.
Some common ERP modules include:
Asset Management Financial Accounting (Fico or finance) Human Resources (HR) Industry-Specific Solutions Plant Maintenance Production Planning Quality Management Sales and Distribution Inventory ManagementLearn more about ERP at https://brainly.com/question/13945630.
#SPJ4
Write the definition of a class Counter containing:
An instance variable counter of type int , initialized to 0.
A method called increment that adds one to the instance variable counter. It does not accept parameters or return a value .
A method called getValue that doesn't accept any parameters . It returns the value of the instance variable counter.
public class Counter{
private int counter = 0;
public void increment(){
counter++;
}
public int getValue(){
return counter;
}
}
Here is a possible implementation of a Counter class:
public class Counter {
private int counter = 0;
public void increment() {
counter++;
}
public int getValue() {
return counter;
}
}
The Counter class has an instance variable counter of type int that is initialized to 0. The increment method adds 1 to the counter variable, while the getValue method returns the current value of counter. These methods are used to keep track of a count and provide a way to access the current count.
Learn more about Counter class, here https://brainly.com/question/14853897
#SPJ4
gloria is concerned that her online banking transactions could be intercepted if she uses public wifi. which of the following could she use to prevent access to her online transactions?
In order to keep her online transactions private, she could utilize a VPN. Virtual Private Network, or VPN for short, is the ability to create a secure network connection when utilizing public networks.
Which of the following measures would safeguard data the best in the event the laptop was stolen or lost?The best defense against unauthorized access to information on your laptop or notebook computer is to use a whole-disk encryption application. These programs utilize robust encryption techniques to safeguard the hard disk of your device while yet giving you quick access to your data.
What Internet protocol encrypts data before it is transmitted?Communications are secured using HTTPS, which employs an encryption protocol. Although it was previously known as Secure Sockets Layer, the protocol is now called Transport Layer Security (TLS) (SSL).
To know more about VPN visit :-
https://brainly.com/question/15711083
#SPJ4
Write a single statement that prints outsideTemperature with 2 decimals. End with newline. Sample output with input 103.46432:
103.46
import java.util.Scanner;
public class OutsideTemperatureFormatting {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
double outsideTemperature;
outsideTemperature = scnr.nextDouble();
/* Your solution goes here */
103.46}}
A Java class called Scanner is used to get input of primitive types like int, double, etc. and strings. Although it is the simplest technique for reading input in a Java application, it is not particularly effective if you need an input method for situations where speed is a factor, such as in competitive programming.
Here is how to construct Scanner objects when we import the package. / Take a reading from the input stream Scanner sc2 = new Scanner(File file); / read input from a string Scanner sc1 = new Scanner(InputStream input); / read input from files new Scanner(String str); Scanner sc3; use-case package you must either include a Java Scanner import line at the beginning of your class or when you call the Scanner. A Java Scanner import is advised to keep your code legible and concise. util. both the classes an applet needs to interact with its applet environment and the classes required to construct an applet are provided. Contains every class for designing user interfaces and for drawing and painting visuals.
To learn more Java about click the link below:
brainly.com/question/12978370
#SPJ4
a(n) contains data from various key business processes and stores the data in a single comprehensive data repository, usable by other parts of the business.
The enterprise system gathers information from many crucial business activities and maintains it in a solitary thorough data repository where it may be accessed by other divisions of the company.
Company processes are collections of logically connected tasks carried out to achieve a certain business goal. Business processes also describe the distinctive ways that management and organizations coordinate these operations. The company's knowledge management program is overseen by the chief knowledge officer (CKO), a senior executive. The CKO assists in developing plans for projects and tools that seek for fresh knowledge sources or make better use of already available knowledge in organizational and management procedures.
Learn more about information here-
https://brainly.com/question/15709585
#SPJ4
now, suppose that we have observations with . recall . compute the maximum likelihood estimate (mle). (enter numerical answers accurate up to at least 3 decimal places.)
Maximum likelihood estimation (MLE) is a statistical technique for estimating the parameters of a probability distribution that has been assumed given some observed data. This is accomplished by maximizing a likelihood function to make the observed data as probable as possible given the assumed statistical model.
Why is estimate using maximum likelihood used?
Finding the set of parameters (theta) that maximize the likelihood function, or produce the highest likelihood value, is the goal of maximum likelihood estimation. The conditional probability determined by the likelihood function can be broken down.
What characteristics distinguish the maximum likelihood estimator?
The maximum likelihood estimator is reliable, effective, and normally distributed for large samples. It satisfies an invariance property in small samples, is a function of sufficient statistics, and in some cases—but not always—is objective and distinct.
To know more about Parallel speedup visit;
https://brainly.com/question/28964634
#SPJ4
the entire office floor at a company is receiving new multi-functional phones at each office. these phones have the capability of sending and receiving regular telephone calls, text messages, and videos. management wants to prevent as much clutter as possible so every desk looks tidy. which of the following configurations should a network administrator implement to accommodate management's vision? (select all that apply.)
Finding the deflection of a three-layer beam is one of several practical issues that involve third-order differential equations.
describing minute charge variations while taking into account the radiation's braking effect, a steam turbine, automatic control, etc (see [1,2] and the references cited therein). Particularly in [1,2,3,4,5], the authors have found asymptotic estimates for third-order linear and nonlinear differential equation solutions specified in the range [0,+]. In these research, it was presupposed that either a linear equation's coefficients are bounded functions or the equation's nonlinear terms are governed by its linear part. In this study, we examine the possibility that the functions r, p, and q can experience strong growth close to infinity.
Learn more about research here-
https://brainly.com/question/13164167
#SPJ4
you want to configure a windows server 2016 system to connect to an iscsi target defined on a different server system. you also need to define iscsi security settings, including chap and ipsec.
An iSCSI target that has been defined someplace on the SAN fabric is where the ISCSI initiator runs. Additionally, you can use this tool to specify CHAP and IPsec security settings for iSCSI.
In Windows Server 2016, how can I establish an iSCSI virtual disk?Choose File and Storage Services from the left pane of Server Manager. Pick iSCSI. Tasks > New iSCSI Virtual Disk can be found on the iSCSI VIRTUAL DISKS panel. Make certain CorpiSCSI is chosen under Server.
How should I set up the Microsoft iSCSI initiator service?Launch the iSCSI initiator from the Control Panel (or run iscsicpl.exe ). Set the automatic startup type for the Microsoft iSCSI Initiator Service in the Service Management console (services.msc) or use this command.
To know more about IPsec visit :-
https://brainly.com/question/29487470
#SPJ4
The following are two different images that are encoded using the same algorithm. The images are each in a 5 by 5 grid of pixels where each pixel is black, white, red, green or blue.
The image on the left gets encoded and compressed down to 21 digits while the image on the right gets compressed down to 25 digits. Although the same algorithm was used to encode and compress these images, why are the end results a different length?
a. The algorithm was probably used improperly in the image on the right, causing it to be a longer length than it should have been.
b. Because this is a lossy compression, sometimes information is lost during the compression.
c. The amount of size reduction from compression depends on the amount of redundancy in the original data.
d. The image on the right uses more colored squares and therefore requires more digits to represent the pixels.
Because the degree of redundancy in the original data affects how much space is saved through compression, the final results will vary in length.
What is the pixel definition in a nutshell?The smallest part of a digital display is a pixel. A images or video that is displayed on a device's screen could contain millions of pixels or more. The red, green, and blue (RGB) colors are produced by each of the subpixels that make up a pixel and are displayed in a variety of intensities.
Do more pixels necessarily mean better quality?Images with higher resolutions have clearer, sharper appearances and more pixels per inch (PPI), or pixel information. Less pixels make up low-resolution photographs, and if they do, they tend to be larger.
To know more about images visit:-
https://brainly.com/question/29808174
#SPJ4
in the activity selection problem, if a new activity is added to the input activity set, which has the earliest finishing time among all activities. compare with the solution of the original problem, which of the following are true?
When the list is not sorted, this issue has an O(n log n) complexity. O will be the complexity when the sorted list is provided (n).
What is the problem of activity selection?The goal is to identify a solution set that can execute the most non-conflicting activities possible in a given time frame, assuming that only one human or machine is available for execution. Let's assume that you have n activities with start and finish times. The activity selection problem is a combinatorial optimization problem that involves choosing non-conflicting tasks to complete within a specific amount of time from a set of tasks that are each identified by a start time (si) and finish time (fi).When the list is not sorted, this issue has an O(n log n) complexity. O will be the complexity when the sorted list is provided (n).To learn more about activity selection problem, refer to:
https://brainly.com/question/24278800
#SPJ4
regarding the service level in game-2. suppose we refer to the service level during the game as sl1, and the service level at the very last 50 days when you cannot make any changes as sl2. group of answer choices sl1 is usually greater than sl2 sl1 is usually less than sl2 sl1 is equal to sl2 cannot be determined we were not concerned with the service level in game 2
Regarding the service level in game-2. suppose we refer to the service level during the game as sl1, and the service level at the very last 50 days when you cannot make any changes as sl2, sl1 is equal to sl2
What Exactly Is a Service Level?The criteria used to assess a certain service are known as its service level. Most service-based companies employ the concept of service level. When standards are not satisfied, the service level outlines the type of service to expect as well as remedies.A key element of any vendor agreement is the service level. All components of the specific service offered as well as the terms of service availability are included in the service level. The type of service offered, the amount of work, the calibre of the work, and the service provider all affect the precise measurement of service levels.The interested parties can better grasp the degree of service quality with the use of service level measurement. All parties to the agreement are safeguarded by the presence of a service-level agreement. Service level assists in measuring specific goals and, in turn, indirectly aids in goal achievement.To learn more about service quality refer
https://brainly.com/question/8206279
#SPJ4
which of the following forms of authentication involves a ca to verify a computer or user's identity? a. digital certificate b. preshared key c.biometric d.kerberos
The users identity is digital certificate. A certification authority (CA) verifies a certificate applicant's authenticity.
What is meant by digital certificate?A digital certificate, which authenticates the identity of a website, person, group, organization, user, device, or server, is an electronic file connected to a pair of cryptographic keys. It is also known as an identification certificate or a public key certificate.Client certificates or digital IDs are used to link one user to another, a user to a machine, or a machine to another machine. Emails are a typical example where the sender digitally signs the message and the recipient confirms the signature. A digital certificate is a paperless record issued by a Certificate Authority (CA). It indicates the identify associated with the key, such as the name of an organization, and contains the public key for a digital signature.To learn more about digital certificate refer to:
https://brainly.com/question/17011621
#SPJ4
the technology field has become rather elite, only hiring those with extreme talent in game design and internet security.
It is false that the technology field has become rather elite, only hiring those with extreme talent in game design and internet security.
Because there is a much larger skill pool than there are open positions, it is much harder to obtain work as a game designer than it is in the field of web development.
Gaming seems to be the Fort Knox of software development, despite the fact that some people handle it. You'll need a broad skill set and an awareness of your client's demands to succeed.
While in Internet security a specific set of abilities must be learned over time and with effort. Some of the individuals are self-taught, demonstrating the ability needed to thrive even though they lack any specialized certifications.
For HR departments, who are accustomed to choosing candidates based on their possession of particular qualifications that information security personnel might not possess, this might be confounding. Even if someone has years of industry experience, their application may still be rejected by HR if they don't see what they view as the necessary qualifications.
To learn more about game design click here:
brainly.com/question/25943536
#SPJ4
Using the SUMIF Function Enter a formula in cell D12 that uses the SUMIF function to determine the total sales for Region 1. Use the sales range name to refer to the cells in the Sales column and the Region range name to refer to the cells in the Region column.
According to the question, The formula detemining the sales of region 1 using SUMIF function is as follows:
=SUMIFS(D5:D10,A5:A10,1) So, Output is $1,240,000.
A mathematical formula is =SUMIFS. Numbers are calculated, which in this instance are those in column D.
=SUMIFS(D5:D10,
To put it another way, you want the formula to add the integers in that column if they satisfy the requirements. Your first argument, which the function needs to execute, is that cell range.
When you wish to find data that satisfies two conditions, the next step is to enter the first condition. To do this, you tell the function where the data is located (A5:A10) and what the condition is, which is "1". Keep in mind to use commas to separate the various arguments.
Insert a closing parenthesis at the end of the SUMIF function formula
=SUMIFS(D5:D10,A5:A10,1) to get the answer of 1240000 by pressing the Enter key.
Learn more about SUMIF function here:
https://brainly.com/question/16170424
#SPJ4
you are designing an update to your client's wireless network. the existing wireless network uses 802.11b equipment; which your client complains runs too slowly. she wants to upgrade the network to run up to 600 mbps.
802.11n would be most advantageous for this client. Because 802.11b as well as 802.11g both use the 2.4 to 2.4835 GHz band, there will be interference with both the patient's wireless phone system.
Which 802.11 specification will in this scenario be most effective at completing the task?802.11n would be most advantageous for this client. Because 802.11b and 802.11g both use the 2.4 to 2.4835 GHz band, there will be interference with both the client's wireless phone system.
It uses the 2.4 GHz band and has 22 MHz channels. The direct-sequence spread spectrum, or DSSS, modulation method is used to spread the 802.11b signal across the entire bandwidth. The speedier and more compatible 802.11g standard is taking its place as the recommended one.
To learn more about Wireless phone refer to:
https://brainly.com/question/26442058
#SPJ4
You are working with the penguins dataset. You want to use the summarize() and mean() functions to find the mean value for the variable body_mass_g. You write the following code: penguins > drop_na () 8> group_by (species) %>8 Add the code chunk that lets you find the mean value for the variable body_mass_g. 1 1 Run Reset What is the mean body mass in g for the Adelie species? 5092.437 3706.164 4207.433 3733.088
The body mass ranges from 2700 g to 6300 g, with an average weight of 4207 g and a standard deviation of 802.2158.
A data set is an organized group of data items pertaining to a specific topic. A database is a grouping of connected data sets.
Data sets can either be tabular or not. Structured data that is arranged in rows and columns can be found in tabular data collections. Unstructured data included in brackets can be found in non-tabular data collections.
Data sets can also be divided into average groups based on the kind of information they include. Typical categories of data sets are:
Data that is expressed numerically rather than naturally in words.
Contains two different forms of connected data.
Three or more types of connected data are present in multivariate data.
Data variables that are categorical can only have one of two values.
Values in the data set are related to one another through correlation.
Know more about data set here:
https://brainly.com/question/22210584
#SPJ4
Write a GUI program that converts Celsius temperatures to Fahrenheit temperatures. The user should be able to enter a Celsius temperature, click a button, then see the equivalent Fahrenheit temperature. Use the following formula to make the conversion:F= (9/5)C+32F is the Fahrenheit temperature, and C is the Celsius temperature.
To write a GUI program that converts Celsius temperatures to Fahrenheit temperatures, check the given code below.
What is GUI program?An interactive visual component system for computer software is known as a GUI (graphical user interface). A GUI shows objects that represent the user's actionable options and convey information. In response to user interaction, the objects alter in size, color, or visibility.
Alan Kay, Douglas Engelbart, and a team of other researchers created the GUI for the first time at Xerox PARC in 1981. On January 19, 1983, Apple later released the Lisa computer with a GUI.
↓↓//CODE//↓↓
#importing tkinter to use GUI
from tkinter import *
#function to covert Celsius to Fahrenheit
def toFahrenheit():
#calculating Fahrenheit
res=(9/5)*float(e1.get())+32
#setting the result to the string myText
myText.set(res)
#function to covert Celsius to Fahrenheit
def toCelsius():
#calculating Celsius
res=(float(e2.get())-32)*(5/9)
#setting the result to the string myText
myText.set(res)
#inotializing window
root = Tk()
#creating a string variable to store the result
myText=StringVar();
#creating the first frame
firstframe = Frame(root)
firstframe.pack()
#creating the second frame
secondframe = Frame(root)
secondframe.pack( side = BOTTOM )
#creating 3 labels and placing them in the first frame
#Celsius label in row 0
Label(firstframe, text='Celsius').grid(row=0)
#Fahrenheit label in row 1
Label(firstframe, text='Fahrenheit').grid(row=1)
#Result label in row 2
Label(firstframe, text='Result:').grid(row=2)
#creating 2 text box to get celsius and fahrenheit from the user
e1 = Entry(firstframe)
e2 = Entry(firstframe)
#e1 adjacent to label Celsius, so row 0 column 1
e1.grid(row=0, column=1)
#e2 adjacent to label Farhenheit, so row 1 column 1
e2.grid(row=1, column=1)
#creating a label to diplay the resut. Here the textvariable attribute gets the string from variable 'myText' and displays here
#answer label adjacent to label Result , so row 2 column 1
Label(firstframe,text="",textvariable=myText).grid(row=2,column=1)
#creating a Celsius to Fahrenheit button. When the button is clicked toFahrenheit function is called.
#command attribute is for on click event.
ctofbutton = Button(secondframe, text ='Celsius to Fahrenheit', command=toFahrenheit)
ctofbutton.pack()
#creating a Celsius to Fahrenheit button. When the button is clicked toCelsius function is called.
ftocbutton = Button(secondframe, text ='Fahrenheit to Celcius', command=toCelsius)
ftocbutton.pack()
#creating a Celsius to Exit button. root. destroy will exit the window
exitbutton = Button(secondframe, text ='Exit', fg ='red', command=root. destroy)
exitbutton.pack()
root.mainloop()
Learn more about GUI
https://brainly.com/question/22811693
#SPJ4
data collection takes place in which of the following activities? multiple choice processing. input. review. output.
Data collection takes place in Processing process.
Data collection
Data collection is the process of compiling precise data from numerous sources and evaluating it to identify trends, possibilities, and solutions to research problems, as well as to assess potential consequences.
The researchers must specify the data sources, data types, and methodologies used during data gathering. We'll quickly find that there are numerous approaches of gathering data. Data collecting is heavily utilised in the domains of study, business, and government.
As we'll discover later, the idea of data collection is nothing new, but times have changed. Today, there is a lot more data available in formats that were unheard of a century ago. The process of gathering data had to evolve and develop to stay up with modern technology.
To know more about Data collection, Check out:
https://brainly.com/question/29457263
#SPJ4
is the process of making systems operate without human intervention. group of answer choices automation knowledge management computer programming belief artificial intelligence (ai)
Making systems run without human intervention is known as automation. Artificial intelligence allows machines to learn from their mistakes, adjust to new inputs, and execute tasks that humans do (AI).
Artificial intelligence (AI) has a subfield called machine learning (ML) that allows computers to automatically learn from data and past experiences in order to identify patterns and forecast future events with the least amount of human involvement. Artificial intelligence is the ability of machines, particularly computer systems, to mimic human intellectual functions. Examples of particular AI applications include expert systems, machine learning, natural language processing, speech recognition, and machine vision. The majority of AI applications you hear about today, including self-driving cars, heavily rely on deep learning and natural language processing.
Learn more about function here-
https://brainly.com/question/28939774
#SPJ4
An application server
Group of answer choices
provides basic functionality for receiving and responding to requests from browsers.
provides the building blocks for creating dynamic web sites and web-based applications.
provides storage logic.
None of these.
In order for a transaction to be consistent:
Group of answer choices
it must run the same way all the time.
it must tell the truth.
it must run using the same amount of memory.
any database constraints that must be true before the transaction must also be true after the transaction.
Durability means that:
Group of answer choices
transactions can't be erased.
once a transaction is committed, no subsequent failure of the database can reverse the effect of the transaction.
transactions can withstand failure.
transactions never finish on time.
An application server is a type of server that is responsible for hosting and running applications. It typically provides the infrastructure and runtime environment for applications, as well as management and deployment tools for developers. An application server may support a variety of programming languages and frameworks, and is typically used for building and deploying complex, multi-tier applications.
Learn more about application server, here https://brainly.com/question/28425483
#SPJ4
include the attribute in a starting anchor tag to identify the webpage, email address, file, telephone number, or other content to access.
A quality, character, or characteristic attributed to someone or something is what Merriam-Webster defines as a "attribute."
What are attributes?The path of the image you want to embed is in the src attribute, which is necessary. Screen readers read this description to their users so they are aware of the meaning of the image; although it is not required, the alt attribute is very helpful for accessibility.
A quality, character, or characteristic attributed to someone or something is what Merriam-Webster defines as a "attribute."
Use the main element, which is located between the header and footer components, to house the major content of your website. An article, aside, header, footer, or nav element cannot be a descendant of the main element.
Therefore, the correct answer is the href attribute.
To learn more about attributes refer to:
https://brainly.com/question/29796715
#SPJ4
For which sorting algorithm is the following true: After I iterations, Data(0]. Data()-11 is Datal] DataIN-1] is unexamined. [1] Selection sort [2] Quick sort [3] Bubble sort [4] Heap sort [5] Insertion sort sorted
The sorting algorithm for which the following is true is selection sort: "After I iterations, Data[0] is sorted, Data[1] is Data[I]-1 is unexamined." Quick sort, bubble sort, heap sort, and insertion sort are all different sorting algorithms that do not operate in the same way as selection sort.
Selection sort is an algorithm that sorts an array by repeatedly selecting the minimum element from the unsorted portion of the array and placing it at the beginning of the unsorted portion. It works by iterating through the array, selecting the minimum element in each iteration, and placing it in the correct position. After each iteration, the sorted portion of the array grows by one element and the unsorted portion shrinks by one element.
Learn more about sorting algorithm, here https://brainly.com/question/13098446
#SPJ4
In the winter, municipal snowplows must plow both sides of city streets that are bidirectional
(two-way traffic) but they only make a single pass over unidirectional (one-way) streets. We can
represent city streets as the edges in a graph using nodes for intersections. Of course, it is a
requirement that every street be plowed appropriately (once in each direction for bidirectional
streets and only once in the proper direction for unidirectional streets). Write a program that
uses integers to represent nodes, and tuples (pairs of integers enclosed in parentheses, e.g., (4
7), to represent a street from node 4 to node 7, and a second tuple, (7 4) to represent the fact
that this is a bidirectional street). Assume that there is but a single snowplow and it must start
and return to node 1. Your program must read a collection of tuples from a file and then
produce driving instructions for the snowplow operator telling the sequence of intersections
(nodes) to visit so that all the streets are appropriately plowed. If it is impossible to perform a
correct plowing (some street would be left unplowed or some street would be plowed twice)
your program must report this fact. Your program should repeatedly read collections of tuples
and processes the information until an end-of-file is encountered. Your program will lose a
significant number of points if your algorithm fails to work properly for cities (graphs)
containing both bidirectional and unidirectional streets.
Your solution must include the data file that it uses for input. Remember NOT to use an
absolute path to access the data file – use a relative path. Be certain your data describes several
different city street situations so that your program can demonstrate that it meets all the
requirements.
Using the knowledge in computational language in python it is possible to write a code that represent city streets as the edges in a graph using nodes for intersections.
Writting the code:#include <cv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "caliberate.h"
#include <iostream>
#include <ctime>
#include <cmath>
using namespace std;
using namespace cv;
VideoCapture capture; //The capture class captures video either from harddisk(.avi) or from camera
Mat frameImg;
Mat g_image;
double dist(Point2i x1, Point2i x2)
{
return sqrt( pow((x1.x-x2.x),2) + pow((x1.y-x2.y),2) );
}
int main()
{
string fileName = "traffic.avi";
capture.open(fileName);
if( !capture.isOpened() )
{
cerr<<"video opening error\n"; waitKey(0); system("pause");
}
Mat frameImg_origSize; //image taken from camera feed in original size
namedWindow( "out" , CV_WINDOW_AUTOSIZE); //window to show output
namedWindow( "trackbar", CV_WINDOW_AUTOSIZE); //Trackbars to change value of parameters
resizeWindow( "trackbar", 300, 600); //Resizing trackbar window for proper view of all the parameters
capture>>frameImg_origSize;
if( frameImg_origSize.empty() ) { cout<<"something wrong"; }
resize(frameImg_origSize, frameImg, SMALL_SIZE, 0, 0, CV_INTER_AREA); //Resize original frame into smaller frame for faster calculations
g_image = Mat(SMALL_SIZE, CV_8UC1); g_image.setTo(0); //Gray image of frameImg
Mat roadImage = Mat(SMALL_SIZE, CV_8UC3); //Image of the road (without vehicles)
roadImage = findRoadImage();
calibPolygon(); //Polygon caliberation: Select four points of polygon (ROI) clockwise and press enter
Mat binImage = Mat(SMALL_SIZE,CV_8UC1); //white pixel = cars, black pixel = other than cars
Mat finalImage = Mat(SMALL_SIZE, CV_8UC3); //final image to show output
time_t T = time(0); //Current time
float fps = 0, lastCount = 0; //frames per second
int thresh_r = 43, thresh_g = 43, thresh_b = 49; //Threshold parameters for Red, Green, Blue colors
createTrackbar( "Red Threshold", "trackbar", &thresh_r, 255, 0 ); //Threshold for Red color
createTrackbar( "Green Threshold", "trackbar", &thresh_g, 255, 0 ); //Threshold for Green color
createTrackbar( "Blue Threshold", "trackbar", &thresh_b, 255, 0 ); //Threshold for Blue color
int dilate1=1, erode1=2, dilate2=5; //Dilate and Erode parameters
Mat imgA = Mat(SMALL_SIZE, CV_8SC3); //Used for opticalFlow
int win_size = 20; //parameter for opticalFlow
int corner_count = MAX_CORNERS; //no of points tracked in opticalFlow
vector<Point2i> cornersA, cornersB;
frameImg.copyTo(imgA);
int arrowGap = 5; //distance between consecutive tracking points (opticalFlow)
createTrackbar("dilate 1","trackbar", &dilate1, 15, 0);
createTrackbar("erode 1","trackbar", &erode1, 15, 0);
createTrackbar("dilate 2","trackbar", &dilate2, 15, 0);
See more about python at brainly.com/question/18502436
#SPJ1
Given the following beginning of a class definition for a superclass named clock, how many accessor and mutator methods will be needed to complete the class definition?
class clock:
def __init__(self, shape, color, price):
self._shape = shape
self.color = color
self.price = price
3 mutator, 3 accessor
In the given class definition, there are 3 attributes: shape, color, and price. To allow these attributes to be modified and accessed, you will need to define 3 mutator methods and 3 accessor methods. For example, you might define set_shape(), set_color(), and set_price() as mutator methods, and get_shape(), get_color(), and get_price() as accessor methods. It's also good practice to include a __str__() method in your class definition, which allows you to create a string representation of the object for printing or displaying to the user.
A mutator method is a method that allows you to change the value of an attribute, while an accessor method is a method that allows you to access the value of an attribute without changing it.
Learn more about mutator method, here https://brainly.com/question/13098886
#SPJ4
business intelligence (bi) uses scorecards and dashboards to support decision-making activities, whereas business analytics (ba) uses data mining tools and predictive modeling.
Data analytics and business analytics are included in business intelligence, however they are only used in little amounts throughout the process. BI assists users in making decisions based on data analysis.
Which method or instrument is employed when data is analysed for business intelligence purposes?Users can examine data from many data sources using OLAP techniques. This business intelligence system helps company users understand challenges and examine them from many angles.
What various forms of business intelligence are there?Spreadsheets, reporting/query software, data visualisation software, data mining tools, and online analytical processing are just a few examples of the many different types of BI tools and software available (OLAP).
To know more about Data analytics visit:-
https://brainly.com/question/29658373
#SPJ4
Jason is attending the CompTIA Partner's Summit convention this year. While at the conference, Jason will need to ensure his smartphone has enough battery power to last the entire day without having to recharge it since it is hard to find an available electrical outlet in the conference rooms. Jason needs to ensure his smartphone is always available for use in order to receive updates from his team back home, as well. Which of the following would you recommend Jason use to ensure he can use the phone all day without his smartphone running out of power?
answer choices
Use a wireless charging pad
Bring a power strip so that more than one person can use an electrical wall outlet
Set the smartphone to airplane mode
Use a smartphone case with a built-in battery
The internal battery will continue to charge your gadget. The built-in battery can power your smartphone up to six times and can recharge two devices simultaneously.
What is the meaning of built in battery?Your device will continue to charge thanks to the built-in battery. A built-in battery can power your smartphone up to six times and can recharge two devices simultaneously. It features a built-in battery so you can recharge your phone.
Vape mods, on the other hand, have external batteries. Therefore, while purchasing a mod, customers must also purchase an additional battery. The device's USB connector may be used to recharge the batteries, which are also simple to install.
The term "non-removable" battery is technically inaccurate because these built-in batteries can really be removed if necessary, but typically only by an authorized manufacturer with the proper tools.
Therefore, the answer is use a smartphone case with a built-in battery.
To learn more about built-in battery refer to:
https://brainly.com/question/7125266
#SPJ4
python cannot for this project you will write a class called mancala that allows two people to play a text-based version of the game (check the attached pdf file for the detailed rules).assign to literla
Mancala is a game of skill, calculation, and strategy rather than chance, despite its seeming simplicity. One of the world's oldest two-player board games, mancala is thought to have originated in antiquity.
Several mancala puzzles have been figured out. For Awari (draw), Kalah (depending on the instance), MiniMancala (draw), and Ohvalhu, the game-theoretic value is known (first-player win). The trivial games Micro-Wari and Nano-Wari have also undergone thorough analysis. Mancala is so old that its exact roots are uncertain, although the most trustworthy evidence points to Ghana or the Ancient Sudan as the locations where the game was first played 3,600 years ago. Since some old boards were discovered in temples, there has been some modest conjecture that it was also utilized as a ritual or divination instrument. Mancala is a strategic game that necessitates thought analysis. Counting seeds, planning actions, and foreseeing your opponent's moves are all necessary components of strategic play.
To learn more about Mancala click the link below:
brainly.com/question/11886672
#SPJ4
TRUE/FALSE. less-than-lethal technology is the perfect weapon available that will immediately stop unlawful resistance and will cause absolutely no harm to the receiver
This statement is False. Less-than-lethal technology is not a perfect weapon that will immediately stop unlawful resistance and cause no harm to the receiver.
Less-than-lethal technology is designed to reduce the severity of force and lessen the potential for injury or death, but it is not a perfect weapon that will immediately stop unlawful resistance and cause no harm to the receiver.
While less-than-lethal technology can be effective in some situations, it is not always the optimal solution and can, in some cases, still cause serious injury or even death. Therefore the above statement is not correct
For more questions like Less-than-lethal click the link below:
https://brainly.com/question/28259427
#SPJ4
How does remote working work?
Remote work refers to the practice of working from a location outside of a traditional office setting, often from home or a co-working space. With the advent of high-speed internet and video conferencing technology, it has become easier for individuals and organizations to collaborate remotely.
How does remote working work?Remote work refers have several ways that remote work can be implemented, depending on the needs and goals of the organization and the preferences of the individual worker. Some common ways that remote work is organized include:
Full-time remote work: In this arrangement, the worker is based remotely and works the same hours as if they were in an office.
Part-time remote work: In this arrangement, the worker splits their time between the office and a remote location.
Lastly, Flexible remote work: In this arrangement, the worker has the option to work from a remote location on a flexible schedule, with the understanding that they may need to be available during certain times for meetings or other collaborative activities.
Learn more about remote working from
https://brainly.com/question/27582546
#SPJ1
true or false: when tempo mapping in pro tools, the bpm does not change to follow marked bars in the audio.
This is a false statement in stating that when tempo mapping in Pro Tools, the BPM does not change to follow marked bars in the audio.
Tempo mapping is an essential part of Musical Instrument Digital Interface (MIDI) files that controls the speed of the audio or music. Often tempo mapping can mean a fixed tempo throughout the whole piece, which is a much simpler command. Some other times, a song transitions several times between different speeds, or tempos, requiring a more complex tempo map. The speed of an audion makes a huge impact on the feel of the overall mix, thus tempo mapping is a critical element of MIDI. While usning tempo mapping in Pro Tools, the Beat Per Minute (BPM) changes to follow market bars in audio.
You can learn more about MIDI at
https://brainly.com/question/14114316
#SPJ4