Answer:
a query that shows all customers, whether or not they placed an order
Explanation:
EDG 21
The project downloaded contains a package (folder) named Q1 within the src folder. Inside Q1 is a Java class named Questions. The purpose of Question 1 is to examine your understanding of loops and branching conditions. You should implement all of your code for this question in the main method of the Questioni class. While significant detail is provided below to be sure you undertand what is required, please note that the amount of code required to solve this question (Parts a-c) is less than 10 lines (total). In the Question1 class, you are given a line of code that generates a random number between 0 and 1. Math.random(): //generates number between 0 and 1 val
You are to create a loop which, in each iteration, generates a new random value, assigns it to val using the line provided and checks to see if that val is greater than 0.5. If val is greater than 0.5, a variable named counter should be incremented. The loop should continue this process (generate random value, check if it is greater than 0.5) until a total of three random numbers generated are greater than 0.5 (values do not have to be consecutive). You should also use the variable named numIterations, which is included for you, to track how many iterations of your loop were required for you to generate three random numbers greater than 0.5. A printin() statement is included for you that displays the value of numlterations. As an example of how the program should behave, if the following sequence of random numbers are randomly generated from your loop
0.3, 0.7,0.2, 0.6,0.9
then numIterations would equal 5 (the third value greater than 0.5 occured on the fifth iteration).
If
0.6, 0.8, 0.75
was the random sequence of numbers generated by your loop, then numlterations would equal 3 (the third value greater than 0.5 occured on the third iteration).
These are two examples to illustrate the scenario given in Question 1. Since at each iteration of your loop the number generated is random, the value of numIterations that your program observes may be any value greater than or equal to 3. Note that your program does not need to print out each of the random values that it generates. The steps to solve Question 2 are broken down as follows.
a. Implement a branching condition that increases the variable counter by 1 if val is larger than 0.5 1
b. Add a loop around the code created in Part a that continues until counter equals 3.
c. Use the variable numlterations to count how many times your loop iterates.
Answer:
ok where do i put anwaer?
Explanation:
n
What options are available in the Lookup Wizard? Check all that apply.
label the field
sort the records
filter the records
o adjust the column width
O adjust the header height
reduce the number of columns
Je
set where to get lookup field values
Answer:
Label the field
sort records
adjust the column width
set where to get lookup fields
Explanation:
Which security measure provides protection from IP spoofing?
A ______ provides protection from IP spoofing.
PLEASE HELP I need to finish 2 assignments to pass this school year pleasee im giving my only 30 points please
Answer:
An SSL also provides protection from IP spoofing.
PLEASE HELP ME ASAP!!!!
You have configured a LAN with 25 workstations, three network printers, and two servers. The workstations and printers will have dynamically assigned IP addresses, and the printers always need to have the same IP address assigned. The servers will have static IP addresses. What should you install on one of the servers, and what are some of the configuration options
Answer:
install and configure on the server DHCP (Dynamic Host Configuration Protocol)
Explanation:
In this scenario, you should install and configure on the server DHCP (Dynamic Host Configuration Protocol), this protocol automatically assigns each individual PC a unique IP address and DNS server information. This protocol has various configuration options such as being able to set a range for the IP addresses so that they can be used by different devices in the system. It also allows you to directly set the subnet and passage gateway so that all of the workstations can quickly communicate with one another and quickly be targeted by the administration.
Write a program that lets the user enter the total rainfall for each of 12 months into a vector of doubles. The program will also have a vector of 12 strings to hold the names of the months. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.
Answer:
Explanation:
#include<iostream>
#include<iomanip>
#include<vector>
using namespace std;
double getAverage(const vector<double> amounts)
{
double sum = 0.0;
for (int i = 0; i < amounts.size(); i++)
sum += amounts[i];
return(sum / (double)amounts.size());
}
int getMinimum(const vector<double> amounts)
{
double min = amounts[0];
int minIndex = 0;
for (int i = 0; i < amounts.size(); i++)
{
if (amounts[i] < min)
{
min = amounts[i];
minIndex = i;
}
}
return minIndex;
}
int getMaximum(const vector<double> amounts)
{
double max = amounts[0];
int maxIndex = 0;
for (int i = 0; i < amounts.size(); i++)
{
if (amounts[i] > max)
{
max = amounts[i];
maxIndex = i;
}
}
return maxIndex;
}
int main()
{
vector<string> months;
vector<double> rainfalls;
months.push_back("January");
months.push_back("February");
months.push_back("March");
months.push_back("April");
months.push_back("May");
months.push_back("June");
months.push_back("July");
months.push_back("August");
months.push_back("September");
months.push_back("October");
months.push_back("November");
months.push_back("December");
cout << "Input 12 rainfall amounts for each month:\n";
for (int i = 0; i < 12; i++)
{
double amt;
cin >> amt;
rainfalls.push_back(amt);
}
cout << "\nMONTHLY RAINFALL AMOUNTS\n";
cout << setprecision(2) << fixed << showpoint;
for (int i = 0; i < 12; i++)
cout << left << setw(11) << months[i] << right << setw(5) << rainfalls[i] << endl;
cout << "\nAVERAGE RAINFALL FOR THE YEAR\n" << "Average: " << getAverage(rainfalls) << endl;
int minIndex = getMinimum(rainfalls);
int maxIndex = getMaximum(rainfalls);
cout << "\nMONTH AND AMOUNT FOR MINIMUM RAINFALL FOR THE YEAR\n";
cout << months[minIndex] << " " << rainfalls[minIndex] << endl;
cout << "\nMONTH AND AMOUNT FOR MAXIMUM RAINFALL FOR THE YEAR\n";
cout << months[maxIndex] << " " << rainfalls[maxIndex] << endl;
return 0;
}
write a object oriented c++ program
Answer:
I don't know how to code C++
Explanation:
Write a function input_poly(ptr1) that reads in two polynomials at a time with coefficient and exponent from a file cp7_in.txt. The file will contain 2n polynomials, where n is an integer that is 10 or less. Space for the polynomial will be allocated in run time and there is no limit to the size of the polynomial, e..g the first two lines of the file is
Answer:
try this
Explanation:
#include<stdio.h>
#include<malloc.h>
typedef struct poly{ double coff;
int pow;
struct poly *link; }SL;
void create(SL **head)
{
*head=NULL;
}
//Insertion
void ins_beg(SL ** head, double c, int pw)
{
SL *ptr;
ptr=(SL *)malloc(sizeof(SL));
ptr->coff=c;
ptr->pow=pw;
ptr->link=*head;
*head=ptr;
}
void trav(SL **head)
{
SL *ptr;
ptr=*head;
printf("\n\t Cofficient Exponent\n");
while(ptr!=NULL)
{ printf("\t\t%3.2f \t%d\n",ptr->coff, ptr->pow);
ptr=ptr->link;
}
}
//addition of polynomial............
void mult(SL *pl1, SL *pl2, SL **res)
{
SL trav1, trav2, ptr, new1,*loc;
int x,y;
trav1=*pl1;
while(trav1!=NULL)
{
trav2=*pl2;
while(trav2!=NULL)
{
x=(trav1->coff)*(trav2->coff);
y=(trav1->pow)+(trav2->pow);
//printf("\t%d\t%d\n",x,y);
if(*res==NULL)
{
new1=(SL *)malloc(sizeof(SL));
new1->coff=x;
new1->pow=y;
new1->link=NULL;
*res=new1;
}
else
{
ptr=*res;
while((y<ptr->pow)&&(ptr->link!=NULL))
{
loc=ptr;
ptr=ptr->link;
}
if(y==ptr->pow)
ptr->coff=ptr->coff+x;
else
{
if(ptr->link!=NULL)
{
new1=(SL *)malloc(sizeof(SL));
new1->coff=x;
new1->pow=y;
loc->link=new1;
new1->link=ptr;
}
else
{
new1=(SL *)malloc(sizeof(SL));
new1->coff=x;
new1->pow=y;
ptr->link=new1;
new1->link=NULL;
}
}
}
trav2=trav2->link;
}
trav1=trav1->link;
}
}
//...addition..............
void add(SL *pl1, SL *pl2)
{
SL trav1, ptr, *new1,*loc; trav1=*pl1;
while(trav1!=NULL)
{
loc=ptr=*pl2;
while((trav1->pow<ptr->pow)&&(ptr->link!=NULL))
{
loc=ptr; ptr=ptr->link;
}
if(loc==ptr)
{
new1=(SL *)malloc(sizeof(SL));
new1->coff=trav1->coff;
new1->pow=trav1->pow;
new1->link=*pl2;
*pl2=new1;
}
else
if(trav1->pow==ptr->pow)
{
ptr->coff=ptr->coff+trav1->coff;
//ptr->pow=ptr->pow+trav1->pow;
}
else
if(ptr->link!=NULL)
{
new1=(SL *)malloc(sizeof(SL));
new1->coff=trav1->coff;
new1->pow=trav1->pow;
new1->link=ptr;
loc->link=new1;
}
else
{
new1=(SL *)malloc(sizeof(SL));
new1->coff=trav1->coff;
new1->pow=trav1->pow;
new1->link=NULL;
ptr->link=new1;
}
trav1=trav1->link;
}
}
int main()
{
SL first, sec, *res;
create(&first);
ins_beg(&first,10.25,0);
ins_beg(&first,4,1);
ins_beg(&first,5,2);
ins_beg(&first,4,4);
printf("\nFirst Polinomial:\n");
trav(&first);
create(&sec);
ins_beg(&sec,11,0);
ins_beg(&sec,6,1);
ins_beg(&sec,4,2);
ins_beg(&sec,3,3);
printf("\nSecond Polinomial:\n");
trav(&sec);
create(&res);
printf("\nMultiplication of two Polinomial:\n");
mult(&first,&sec,&res);
trav(&res);
printf("\nAddition of two Polinomial:\n");
add(&first,&sec);
trav(&sec);
//trav(&first);
return 0;
}
Answer quick plzzz I only have 2 hours
Answer:
option 2
Explanation:
Answer:
B. Kathy performs tasks common to the Engineering and Technology pathway and Sean and Joan perform tasks common to the Science and Math pathway.
why the internet is not considered a mass medium in Africa
Answer:
the reason why internet not considered as a mass medium is probably because most of the African are not educated and civilized, thereby making them not common to the usage of the internet.
Write an algorithm and flowchart to display H.C.F and L.C.M of given to numbers.
Answer:
Write an algorithm to input a natural number, n, and calculate the odd numbers equal or less than n. ... Design an algorithm and flowchart to input fifty numbers and calculate their sum. Algorithm: Step1: Start Step2: Initialize the count variable to zero Step3: Initialize the sum variable to zero Step4: Read a number say x Step 5: Add 1 to the number in the count variable Step6: Add the ..
Explanation:
Plz hurry it’s timed
1) Create a class called Villain. Specifically, a Villain has the following fields: .name (String)
a number of evil plans (int) In addition, a Villain has the following methods: • a constructor that accepts an argument for each of the fields . a copy constructor
an equals method, which checks/returns whether all the fields are the same
a toString method
2) Create a class called Crazy Villain, which inherits from Villain. Specifically, a Crazy Villain has the following additional fields:
a crazy laughter (String)
a crazy idea (String In addition, write code for the following Crazy Villain methods:
a constructor that accepts an argument for each of the fields
a toString method that overrides the Villain toString method, in order to include the additional fields You do not need to instantiate/demo Villain or Crazy Villain objects.
Answer:
Explanation:
The following code is written in Java and creates both of the classes as requested with their variables and methods as needed. The crazyVillain class extends the Villain class and implements and overrides the needed variables and methods. Due to technical reasons, I have added the code as a txt file below.
1.
A unique characteristic of the sports industry is that it seeks to attract markets that will
perform which action?
A. Demand mostly tangible products
B. Have consumers with artistic talent
c. include spectators and participants
D. Are concerned with environmental issues
Answer:
D. Are concerned with environmental issues is the answer
List any two programs that are required to play multimedia products
List any two programs that are required to create multimedia products
Answer:
the two programs to play multimedia products are;windows media player and VLC media player and the two programs to create multimedia products are;photoshop and PowerPoint
You have a larger file but do not need it right away. In this scenario, you have to change the way a file is used to make it what?
O open
o closed
compressed
O usable
Answer:
Compressed
Explanation:
I hope this helps!
Answer:
usable
Explanation:
open doesnt make any sense, neither does closed and compressed is wrong i chose it and got it wrong. Its usable
In a spreadsheet what does the following symbol mean?
$
Answer:
$ = dollar sign
Explanation:
In a spreadsheet, the $ symbol is the symbol of the dollar. The dollar is the currency of the United States.
What is currency?Currency is a form of payment for goods and services. In a nutshell, it is money in the form of paper and coins that is usually issued by a government and is generally accepted as a form of payment at face value.
Currency exchange rates differ between businesses because each one distorts the interbank rate to maximize profits. We encounter numerous competitors who post interbank rates internet as bait to attract new customers, but once the customers are onboard, they drastically change the rate, typically not in the customers' favor.
Therefore, the $ symbol represents the dollar in a spreadsheet. The US dollar is the country's currency.
To learn more about a dollar, refer to the below link:
https://brainly.com/question/23899116
#SPJ2
Please help me ASAP!
Answer:
security hacker
Explanation:
security hackers are people who hack software to check for vulnerabilities. most of the time security hackers are white hat hackers who work to perform penetration tests to see if a software is secure.
tell me if this is wrong :)
search for five ms excel terms
Answer:
work book, work sheet, cell, columns and rows
How should work be allocated to the team in a Scrum project?
Answer:
In a Scrum project, the work or the tasks are not allotted specifically. The Scrum Master is not allowed to assign tasks to the team members under any circumstance. Once the client provides the details regarding their requirements in detail, the tasks are distributed based on the expertise and skills of the employee.
Explanation:
Who first demonstrated the computer mouse?
O Microsoft
O Alan Turing
O Douglas Engelbart
O Apple, Inc.
FAST PLEASEEE THANK YOUUU
Answer:
C. Douglas Engelbart
Explanation:
Answer: C
Explanation:
How do u and justify a document
Write a program that reads in a text file, infile.txt, and prints out all the lines in the file to the screen until it encounters a line with fewer than 4 characters. Once it finds a short line (one with fewer than 4 characters), the program stops. Your program must use readline() to read one line at a time. For your testing you should create a file named infile.txt. Only upload your Python program, I will create my own infile.txt using break
Answer:
Explanation:
f=open("infile.txt","r")
flag=True
while(flag):
s=f.readline().strip()
if(len(s)>=4):
print(s)
else:
flag=False
1. Tracy is studying to become an esthetician. Give three reasons why she needs to have a thorough
understanding of facial machines.
4. Ito ay ang lugar kung saan nagtatagpo ang bawat column at
row.
A. cell
B. data
C. file tab
D. sheet tab
PATULONG PO PLS
Answer: A. Cell
Explanation:
A cell is the point on the worksheet that results from the intersection of a column and a row.
This is why cells can be identified by the column and row that they are the result of. For instance, a cell can be called "A12" which is also known as its "address". This means that it is a result of the intersection of "Column A" and "Row 12".
What are the difference between data and information?
Answer
The terms data and information can mean different things in different contexts, but the main differences between them are: Data is a collection of facts. Information is how you understand those facts in context. Data is unorganized, while information is structured or organized.
what is a web client
Answer:
A Web client typically refers to the Web browser in the user's machine or mobile device. It may also refer to extensions and helper applications that enhance the browser to support special services from the site.
hope this helps
have a good day :)
Explanation:
ghggggggggggggghbbbbbjhhhhhhhh
Answer:
Something wrong?
Explanation:
Which principle of layout design is shown below
PLEASE HELP ME ASAP ITS IMPORTANT