Should behavioral tracking be legal? Why or why not?

Answers

Answer 1

Answer:

I honestly don't see very many reasons on why it is bad because it's just showing you ads that you might actually want to see instead of some random ad about cats whenever you own a goldfish, but I feel like websites should ask for permission before they do it.

Answer 2

Answer:

     Behavioral Tracking should be legal. I don't see very many reasons as too why behavioral tracking is bad being shown as ads that might actually be useful, but websites should ask for permission before they do it.


Related Questions

Write Album's PrintSongsShorterThan() to print all the songs from the album shorter than the value of the parameter songDuration. Use Song's PrintSong() to print the songs.
#include
#include
#include
using namespace std;
class Song {
public:
void SetNameAndDuration(string songName, int songDuration) {
name = songName;
duration = songDuration;
}
void PrintSong() const {
cout << name << " - " << duration << endl;
}
string GetName() const { return name; }
int GetDuration() const { return duration; }
private:
string name;
int duration;
};

Answers

Answer:

Here is the function PrintSongsShorterThan() which prints all the songs from the album shorter than the value of the parameter songDuration.  

void Album::PrintSongsShorterThan(int songDuration) const {  //function that takes the songDuration as parameter  

unsigned int i;  

Song currSong;  

cout << "Songs shorter than " << songDuration << " seconds:" << endl;  

for(int i=0; i<albumSongs.size(); i++){    

currSong = albumSongs.at(i);    

if(currSong.GetDuration()<songDuration){    //checks if the song duration of the song from album is less than the value of songDuration  

currSong.PrintSong();     } } } //calls PrintSong method to print all the songs with less than the songDuration  

Explanation:

Lets say the songDuration is 210

I will explain the working of the for loop in the above function.

The loop has a variable i that is initialized to 0. The loop continues to execute until the value of i exceeds the albumSongs vector size. The albumSongs is a Song type vector and vector works just like a dynamic array to store sequences.  

At each iteration the for loop checks if the value of i is less than the size of albumSongs. If it is true then the statement inside the loop body execute. The at() is a vector function that is used to return a reference to the element at i-th position in the albumSongs.  

So the album song at the i-th index of albumSongs is assigned to the currSong. This currSong works as an instance. Next the if condition checks if that album song's duration is less than the specified value of songDuration. Here the method GetDuration() is used to return the value of duration of the song. If this condition evaluates to true then the printSong method is called using currSong object. The printSong() method has a statement cout << name << " - " << duration << endl; which prints/displays the name of the song with its duration.

The musicAlbum is the Album object to access the PrintSongsShorterThan(210) The value passed to this method is 210 which means this is the value of the songDuration.  

As we know that the parameter of PrintSongsShorterThan method is songDuration. So the duration of each song in albumSongs vector is checked by this function and if the song duration is less than 210 then the name of the song along with its duration is displayed on the output screen.  

For example if the album name is Anonymous and the songs name along with their duration are:  

ABC 400  

XYZ 123  

CDE 300    

GHI 200

KLM 100  

Then the above program displays the following output when the user types "quit" after entering the above information.  

Anonymous                                                  

Songs shorter than 210 seconds:                                                                         XYZ - 123                                                                                                              

GHI - 200                                                                                                              

KLM - 100  

Notice that the song name ABC and CDE are not displayed because they exceed the songDuration i.e. 210.

5.During a recent network attack, a hacker used rainbow tables to guess network passwords. Which type of attack occurred

Answers

Answer:

Rainbow table attack

Explanation:

A rainbow table attack is a type of network attack or hacking where the hacker tries to utilize a rainbow hash table to crack the passwords in a database system. A rainbow table itself is a hash function used in cryptography for saving important data in a database. Especially passwords.

In this process, sensitive data are hashed two or multiple times with the same key or with different keys so as to avoid rainbow table attack. In a rainbow table attack, the hacker simply compares the hash of the original password against hashes stored in the rainbow table and when they find a match, they then identify the password used to create the hash.

when will you need to use a tuple data structure rather than a list of data structure​

Answers

Answer:

They can always be easily promoted to named tuples. Likewise, if the collection is going to be iterated over, I prefer a list. If it's just a container to hold multiple objects as one, I prefer a tuple. The first thing you need to decide is whether the data structure needs to be mutable or not

Which part(s) of CAIN is realized through the use of message digest functions and hashes?

Answers

Answer:

Integrity

Explanation:

In CAIN, integrity is realized through the use of message digest functions and hashes.

Integrity in CAIN simply means securing a message on transit without it being tampered. To accomplish and achieve integrity, hash functions are used. These hash functions receive arbitrary length message and bring out a fixed sized message digest.

The message digest and hash function maps input data of arbitrary length to an output fixed data length. Hashing is used to guarantee integrity.

Do computers perform disk optimization utilizing the same software

Answers

Answer:

All computers perform disk optimization utilizing the same software.

1.16 LAB: Input: Welcome message Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If the input is Pat, the output is:

Answers

Answer:

Following are the program to this question:

val=input("")#defining val variable that inputs value

print('Hello',val,', we welcome you...')#defining print method, that print input value with the message

Output:

Pat

Hello Pat , we welcome you...

Explanation:

In the above given, python code a "val" variable, and the print that is inbuilt method is declared, inside the "val" variable the input method is used, which is used to input the value from the user side.

In the next line, the print method has declared, which is used to print the value with the message.

Merge arrays A and B into array C using merge sort algorithm. Give final sorted numbers of C using colored numbers without showing intermediate steps. For example, your answer can be [1, 3, 3, 5, 7, 7, 9, 9, 13, 25] or [1, 3, 3, 5, 7, 7, 9,9, 13, 25), or another variation. void merge(int all, int aux[], int lo, int mid, int hi) / for (int k = lo; k<= hi; k++) aux [k] a[k]; int i lo, j = mid+1; for (int k lo; k<-hi; k++) if (i > mid) ak) else if (1 > hi) a[k] else if (small (aux(j), aux[1])) a[k] else ak aux[j++); aux (i++); aux [j++); /*++ aux (i++]; 1 j++

Answers

Answer:

Explanation:

Given code:-

#include<iostream>

using namespace std; //namespace

#define RED "\033[31m" /* Red */

#define BLUE "\033[34m" /* Blue */ //color definition

#define WHITE "\033[37m" /* White */

void mergeArrays(int arr1[], int arr2[], int n1, int n2, int arr3[])

//merger sort

{

int i = 0, j = 0, k = 0;

while (i<n1 && j <n2) //iterate over both array

{

if (arr1[i] < arr2[j]) //iff array 1 element is larger

{

arr3[k] = arr1[i]; //assign to a3

k++;

i++;

}

else

{

arr3[k] = arr2[j]; //else assign array 2 to a3

j++;

k++;

}

}

//say the array turns out to br of different sizes

//let us copy the remaining elemnt to array 3

while (i < n1)

{

arr3[k] = arr1[i];

i++;

k++;

}

while (j < n2)

{

arr3[k] = arr2[j];

k++;

j++;

}

}

int main(){

int A[4] = {3,5,7,9}; //array 1 assignment

int a_size = 4;

int b_size = 6;

int B[6] = {1,3,7,9,13,25}; //array 2 assignment

int C[10]; //array 3 declearation

int a_count = 0;

int b_count = 0; //counter for both array index

mergeArrays(A,B,a_size,b_size,C); //merger function applied;

cout<<WHITE<<"A: ";

for(int i = 0; i<4; i++){

cout<<RED<<A[i]<<" ";

}

cout<<endl<<WHITE<<"B: ";

for(int i = 0; i<6; i++){

cout<<BLUE<<B[i]<<" ";

}

cout<<endl<<WHITE<<"C: ";

for(int i = 0; i<10; i++){ //iterate over C

if(C[i] == A[a_count] && a_count < a_size){

cout<<RED<<C[i]<<" ";

// if element is common in array 1 print in red

a_count++;

}

else if (C[i] == B[b_count] && b_count < b_size){

//say element was similar in array 2,  print in blue

cout<<BLUE<<C[i]<<" ";

b_count++;

}

}

cout<<endl;

}

Many clustering algorithms that automatically determine the number of clusters claim that this is an advantage. List two situations in which this is not the case

Answers

Answer: to  vibe the rest

Explanation:

witch of the following might cause you to flash the Bios/UEFi​

Answers

Answer:

This bios is to perform the access the Ram, video settings and modify settings.

Explanation:

This bios is to contain the section is to explain the motherboard are known as the Bios and to access the modify setting to the processor.

Bios is to contain that basic input and output system of the component and system bios to the recent interface is contain to the boot .Bios system perform it test as the video card, USB drives, to the components way to the operating system.Bios is perform to the change the bios setting and upgrade the bios settings, to interact the motherboard.Bios is to consist  to the built storage device, cards to the assembled by the bios program.Bios is to perform hard drives to the higher capacity and the faster system optimizations.Bios system is performed to the automatically to configure the system and also referred to the some system.Bios are to comes on the personal computer  system to the run into software to power on, this used in input/ output process.Bios is to provide the abstract layer system and display the interface to program on operating system.Bios is contain are the stored in a flash memory to remove the chip from that mother board system.

Training a model using labeled data and using this model to predict the labels for new data is known as ____________.

Answers

Answer:

supervised learning

Explanation:

This process is known as supervised learning. This refers to the machine learning task of learning a function that maps an input to an output based on example input-output pairs. In other words, by teaching it a single process it is able to repeat and predict the same process or predict the output based on the inputs that are being implemented by referring to the initially learned function.

You are hired to create a simple Dictionary application. Your dictionary can take a search key from users then returns value(s) associated with the key. - Please explain how you would implement your dictionary. - Please state clearly which data structure(s) you will use and explain your decision. - Please explain how you communicate between the data structures and between a data structure and an interface.

Answers

Answer:

The application should have a form user interface to submit input, the input is used to query a database, if the input matches a row in the database, the value is displayed in the application.

Explanation:

The data structure in the database for the dictionary application should be a dictionary, with the input from the user as the key and the returned data as the value of the dictionary.

The dictionary application should have a user interface form that submits a query to the database and dictionary data structure returns its value to the application to the user screen.

An attack in which the attacker attempts to impersonate the user by using his or her session token is known as:

Answers

Answer:

Session hijacking

Explanation:

Session hijacking : Session hijacking is an attack where a user session is taken over by an attacker. A session starts when you log into a service, for example your banking application, and ends when you log out.

The 6 steps for PowerPoint competency from the TED talk in the module "How to Avoid Death by PowerPoint."?

Answers

Answer:

1. Do some presentation preparation work

2. Set the right tone and end on a high note.

3. Create sleek and stylish slides.

4. Get your audience to focus.

5. Its all about you.

Explanation:

1. Do some presentation preparation work:

A good presentation begins, not with slides, but with a pencil and paper. Research your audience’s background, interests and capabilities. What do they already know, for instance, and what can they learn from you?

2. Set the right tone and end on a high note:

You have no more than 30 seconds to secure your audience’s attention. So, what attention-grabbing opener will you use?

Visual communications expert Curtis Newbold suggests “a fascinating quote; an alarming or surprising statistic; asking your audience a question; telling a relevant and funny joke… an imaginary scenario; or a demonstration''.

3. Create sleek and stylish slides:

Once you have your story down, you can start to design your slides.  

Before you do, it’s important to think about the practicalities. Will they, for instance, be displayed Widescreen with a 16:9 ratio? Or Standard with 4:3? This might seem like a small detail, but it can make a huge difference in terms of visual impact.

4.  Get your audience to focus:

The most important thing is to grab your audience’s attention straight away – and then maintain it! You want your audience to go away having learned something. So, make it as easy as possible for people to grasp your message “from the off”!

5.  Its all about you:

Finally, remember that, ultimately, it’s you that the audience should be paying attention to, not your slides!

PowerPoint can be used to create great visual aids, but the success of your presentation is determined by the way you deliver them. So, tell your story with a confident, compelling physical presence, and master it by rehearsing it 10 to 15 times.

Which of the following are true statements about collisions in hashing? Linear probing can cause secondary collisions. Higher space utilization tends to cause more collisions.

Answers

Answer:

hello the options to your question is incomplete below are the options

A.   Linear probing causes secondary collisions.

B.   Higher space utilization tends to cause more collisions.

C.    Chained entries will be ordered by key.

D.   (a) and (b).

E.    All of the above.

answer : (a) and (b) --- D

Explanation:

The true statements about collisions in hashing are ;Linear probing causes secondary collisions and Higher space utilization tends to cause more collisions.

collisions in hashing is when two data sets whom are distinctively different have the same hash value or checksum. the collision in hashing can be resolved by checking  the hash table for an open slot to keep the data set that caused the collision.

Processors for most mobile devices run at a slower speed than a processor in a desktop PC.
A. True
B. False

Answers

Hope this helps you! :)

The ans is A which is TRUE

(Was a tricky ques for some but... u gotta learn it!)

PLS MARK AS BRAINLIEST!

Processors for most mobile devices run at a slower speed than a processor in a desktop PC, therefore, the statement is true.

The Processor is simply known as the heart of the computer. It enables the computer to be able to execute its command.

It should be noted that the processors for most mobile devices run at a slower speed than a processor in a desktop PC.

It should be noted that mobile devices are smaller than computers. There is a lot of heat that is generated by the running mobile processor in mobile phones and this limits the speed of the mobile phones.

In conclusion, once there's a limitation of the speed, there's a slower performance of the mobile phone.

Read related link on:

https://brainly.com/question/614196

Given the ever-changing cloud services, it is tough to know how to design a sustainable cloud strategy.
a) true
b) false

Answers

Answer:

True

Explanation:

Due to the ever-changing cloud services, designing a sustainable cloud strategy is tough. Some factors that makes it look tough:

1. Choosing suitable cloud platforms that will be sustainable over a long period of time.

2. Availability of a cloud design specialist and experts: Getting a cloud specialist who can work out a sustainable design is tough itself.

Every corporate organization must take adequate caution when choosen a cloud design. This is to enable them have something sustainable as a result of the ever-changing cloud services.

GIVING BRANLIEST!!!

John wants to assign a value to the favorite animal variable: favoriteAnimal = Koala but gets an error message. What does he need to fix for the code to work?

Add a space between the words in the variable name.

Create a shorter variable name.

Delete the symbol in the string.

Put quotations around the string.

Answers

Answer:

put quotations around the string

Explanation:

the animal name, koala, is of data type string and it should be enclosed in " "

delete the symbol

just put it into a processor like python idle

A technician mistakenly uninstalled an application that is crucial for the productivity of the user.
Which of the following utilities will allow the technician to correct this issue?
A. System Restore
B. System Configuration
C. Component Services
D. Computer Management

Answers

i think the answer is a

The utility that allows the technician to correct this issue is system restoration. The correct option is A.

What does a system restore?

System Restore is a tool for safeguarding and repairing computer software. System Restore creates Restore Points by taking a “snapshot” of some system files and the Windows registry.

Type recovery into the Control Panel search box. Choose Recovery > System Restore. Select Next in the Restore system files and settings window. Select the desired restore point from the list of results, and then click Scan for affected programs.

The Restore Process copies data from a source (one or more Archive files) to a destination (one or more tables in a database). A Restore Process consists of two phases. First, identify one or more Archive Files containing the data to be recovered and choose the desired data.

Therefore, the correct option is A. System Restore.

To learn more about system restoration, refer to the link:

https://brainly.com/question/27960518

#SPJ5

Packet ________ is a form of protection for your computer that looks at each packet that comes into your computer network. screening scanning examination viewing

Answers

Answer:

screening

Explanation:

Packet screening also known as packet filtering wall is a package that works at the network layer of the OSI model. It screens IP addresses and packet options and its firewall option allows it to block or allow access into the computer, based on what it has detected.

To achieve this, it can employ the dynamic-packet filtering where ports are opened when it is really necessary and then closed. Static-packet filtering in which rules are set manually and the  stateful-paket filtering where packets have to move through some sequence.

How do diverse regulatory practices impede the integration process in a global information system (GIS)

Answers

Answer:

Following are the explanation to this question:

Explanation:

In the various regulatory procedures were also simply corporate initiatives, as well as their analytical application by using the open standards users could even solve its problematic situation. It may not work forever, and it is some type of temporary fix.  

All such activities include the state or country-related problems only with the Global Information System results. Or in various countries police forces are different. All these price differences thus help the development of incorporation into one of GIS.

You are given an array of integers a. A new array b is generated by rearranging the elements of a in the following way:
b[0] is equal to a[0];
b[1] is equal to the last element of a;
b[2] is equal to a[1];
b[3] is equal to the second-last element of a;
and so on.
Your task is to determine whether the new array b is sorted in strictly ascending order or not.
Example
For a = [1, 3, 5, 6, 4, 2], the output should be alternatingSort(a) = true.
The new array b will look like [1, 2, 3, 4, 5, 6], which is in strictly ascending order, so the answer is true.
For a = [1, 4, 5, 6, 3], the output should be alternatingSort(a) = false.
The new array b will look like [1, 3, 4, 6, 5], which is not in strictly ascending order, so the answer is false.
Input/Output
[execution time limit] 3 seconds (java)
[input] array.integer a
The given array of integers.
Guaranteed constraints:
1 ≤ a.length ≤ 105,
-109 ≤ a[i] ≤ 109.
[output] boolean
A boolean representing whether the new array bwill be sorted in strictly ascending order or not.

Answers

Answer:

Explanation:

Take note to avoid Indentation mistake which would lead to error message.

So let us begin by;

import java.util.*; ------ using Java as our programming language

class Mutation {

public static boolean alternatingSort(int n , int[] a)

{

int []b = new int[n];

b[0]=a[0];

int j=1,k=0;

for(int i=1;i<n;i++)

{

if(i%2==1)

{

b[i]=a[n-j];

j++;

}

else

b[i]=a[++k];

}

for(int i=0;i<n;i++)

      {

      System.out.print(b[i]+" ");

      }

      System.out.print("\n");

for(int i=1;i<n;i++)

      {

      if(b[i]<=b[i-1])

      return false ;

      }

     

return true;

}

  public static void main (String[] args) {

      Scanner sc = new Scanner(System.in);

      int n= sc.nextInt();

      int []a = new int [n];

     

      for(int i=0;i<n;i++)

      a[i]=sc.nextInt();

      System.out.println(alternatingSort(n,a));

  }

}

This code should give you the desired result (output).

The program is an illustration of Arrays.

Arrays are variables that are used to hold multiple values using one variable name

The program in Java, where comments are used to explain each line is as follows:

import java.util.Scanner;

public class Main {

//This defines the alternatingSort function

public static boolean alternatingSort(int n , int[] a){

   //This creates an array b

   int b[] = new int[a.length];

   //This populates the first element of array b

   b[0]=a[0];

   //This initializes two counter variables

   int count1 =1,count2 = 0;

   //This iterates from 1 to n - 1

   for(int i=1;i<a.length;i++){

       //This populates array b for odd indices

       if(i%2==1){

           b[i]=a[n-count1];

           count1++;

       }

       //This populates array b for even indices

       else{

           b[i]=a[++count2];

       }

   }

   //This iterates from 0 to n - 1

   for(int i=0;i<a.length;i++){

       //This prints the elements of array b

       System.out.print(b[i]+" ");

   }

   //This prints a new line

   System.out.println();

   //This iterates from 1 to n - 1

   for(int i=1;i<a.length;i++){

       //This checks if the elements of array b are strictly in ascending order

       if(b[i]<=b[i-1]){

           return false ;

       }

     }

     return true;

}

//The main function begins hers

 public static void main (String[] args) {

     //This creates a Scanner object

     Scanner input = new Scanner(System.in);

     //This gets input for the length of the array

     int n= input.nextInt();

     //This creates the array a

     int a[] = new int [n];

     //The following iteration populates array a

     for(int i=0;i<n;i++){

         a[i]=input.nextInt();

     }

     //This calls the alternatingSort function

     System.out.println(alternatingSort(n,a));

 }

}

Read more about arrays at:

https://brainly.com/question/15683939

What technology followed the form of Analog equipment?

Answers

Answer:

The teleautograph

Explanation:

The precursor to the present day fax machine was the analogue the telautograph. The device sends recorded potentiometer recorded electrical impulses to a pen to which is attached stepping motors such that a graphic inscription made by a sender is reproducible by the receiving system station. The teleautograph was the first device that was able to make such a transmission to a sheet of paper in a stationary state. simulation.

Answer:

Explanation:

Digital information All kinds of everyday technology also works using digital rather than analog technology. Cellphones, for example, transmit and receive calls by converting the sounds of a person's voice into numbers and then sending the numbers from one place to another in the form of radio waves.

Code written by computer programmers is translated to binary code, so computers can understand the instructions. True or False

Answers

Answer:

True

Explanation:

High-level languages such as Java, C++, Ruby, Python, etc need to be translated into binary code so a computer can understand it, compile and execute them.

Machine language is the only language that is directly understood by the computer because it is written in binary code. But writing codes in Machine Language is tiring, tedious, and obsolete as no one really uses it anymore.

Answer:

True

Explanation:

FLVS intro to Programming honors

Which management function do leaders perform first when an organization begins a project?

OA. organizing

OB.directing

OC. controlling

OD. planning

Answers

Answer:

PLANING

Explanation:

They include: planning, organizing, leading, and controlling. You should think about the four functions as a process, where each step builds on the others. Managers must first plan, then organize according to that plan, lead others to work towards the plan, and finally evaluate the effectiveness of the plan.

How does enforce password history and minimum password age work together to keep a network environment secure?

Answers

Answer:

The Enforce Password History and Minimum Password Age works together by preventing a person from changing the password many times and using an old password.

Explanation:

Minimum Password Age works to stop a user from modifying an existing password numerous times so that it will bypass enforce password history and asked to reset the password.

The Enforce Password History policy works to prevent a user from making use of an old password by setting limits on the number of remembered passwords. This helps users from using old and easily guessed passwords which can leave them vulnerable to network attacks.

AddAll - Adds all the doubles in the string with each other. Note every double is separated by a semi-colon. AddAll("1.245;2.9")=>4.145 double AddAll(const char* str) struct Sale char Person[100]; double sale; double tax; struct SaleStatistic double average Sale; double totalSale; double totalTax; (4) AddAl - Adds all the doubles in the string with semi-colon. AddAll("1.245;2.9")=>4.145 double AddAll(const char* str) { ww struct Sale { char Person[100]; double sale; double tax; }; struct SaleStatistic -- double average Sale: double totalSale: double totalTax:

Answers

Answer: provided below

Explanation:

The code is provided below/

// the method to add all double value in the string

double AddAll(const char *str)

{

double total = 0;

vector<string> vec;

 

stringstream strStream(str);

 

while (strStream.good())

{

string substr;

getline(strStream, substr, ';');

vec.push_back(substr);

}

 

for (size_t i = 0; i < vec.size(); i++)

{

total = total + stod(vec[i]);

}

return total;

}

 

Program code with addition of the above for testing is provided thus

#include <iostream>

#include <sstream>

#include <vector>

using namespace std;

//addin all double value in syring

double AddAll(const char *str)

{

double total = 0;

vector<string> vec;

 

stringstream strStream(str);

 

while (strStream.good())

{

string substr;

getline(strStream, substr, ';');

vec.push_back(substr);

}

 

for (size_t i = 0; i < vec.size(); i++)

{

total = total + stod(vec[i]);

}

return total;

}

int main()

{

//method calling and display result

cout<<AddAll("1.245;2.9");

}

This gives output as:

4.145

RAID level ________ refers to disk arrays with striping at the level of blocks, but without any redundancy. A. 0 B. 1 C. 2 D. 3

Answers

Answer:

A. 0

Explanation:

RAID level zero refers to disk arrays with striping at the level of blocks, but without any redundancy.

RAID ZERO (disk striping) : This is the process of dividing a body of data into blocks and also spreading the data blocks across multiple storage devices, such as hard disks or solid-state drives (SSDs), in a redundant array of independent disks (RAID) group.

How to help it automation with python professional certificate?

Answers

Answer:

Following are the answer to this question:

Explanation:

As we know, that Python is based on Oop's language, it allows programmers to decide, whether method or classes satisfy the requirements.  

It's an obvious benefit, in which the system tests the functions, and prevent adverse effects, and clear the syntaxes, which makes them readable for such methods.All the framework uses the python language, that will be used to overcome most every coding task like Mobile apps, desktop apps, data analyses, scripting, automation of tasks, etc.

Define algorithm
Write a small algorithm

Answers

Answer:

an algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem, based on conducting a sequence of specified actions. A computer program can be viewed as an elaborate algorithm. In mathematics and computer science, an algorithm usually means a small procedure that solves a recurrent problem.

Answer:

a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.

Explanation:

Write a second constructor as indicated. Sample output:User1: Minutes: 0, Messages: 0User2: Minutes: 1000, Messages: 5000// ===== Code from file PhonePlan.java =====public class PhonePlan { private int freeMinutes; private int freeMessages; public PhonePlan() { freeMinutes = 0; freeMessages = 0; } // FIXME: Create a second constructor with numMinutes and numMessages parameters. /* Your solution goes here */ public void print() { System.out.println("Minutes: " + freeMinutes + ", Messages: " + freeMessages); return; }}// ===== end =====// ===== Code from file CallPhonePlan.java =====public class CallPhonePlan { public static void main (String [] args) { PhonePlan user1Plan = new PhonePlan(); // Calls default constructor PhonePlan user2Plan = new PhonePlan(1000, 5000); // Calls newly-created constructor System.out.print("User1: "); user1Plan.print(); System.out.print("User2: "); user2Plan.print(); return; }}// ===== end =====

Answers

Answer:

public PhonePlan(int numMinutes, int numMessages) {

        freeMinutes = numMinutes;

        freeMessages = numMessages;

    }

Explanation:

Create a constructor that takes two parameters, numMinutes and numMessages

Inside the constructor, set numMinutes to freeMinutes and numMessages to freeMessages.

With this constructor, we are able to create PhonePlan objects that take parameters and different options as seen in the output. We can set any values for minutes and messages in the constructor.

Answer:

PhonePlan::PhonePlan(int numMinutes, int numMessages) {

freeMinutes = numMinutes;

freeMessages = numMessages;

}

Explanation: For C++

PhonePlan::PhonePlan(int numMinutes, int numMessages) {

^^^^^^^^^^^^

you need that

freeMinutes = numMinutes;

freeMessages = numMessages;

}

Other Questions
Let's not do business with AVC Real Estate Company; they discount their commissions" is an example of what?a) Price fixingb) Boycottc) Market allocationd) Tying agreement 1 + 8x + 5 -4x = 2(x-3) - 2(x-2) At the city museum, child admission is 5.50 and adult admission is 8.8 . On Thursday, three times as many adult tickets as child tickets were sold, for a total sales of 663.60 . How many child tickets were sold that day? Connie is satisfied with her weight but would like to improve her eating habits.She typically has several slices of toast and a large coffee for breakfast,a turkey sandwich and chips or sausage pizza for lunch,and a pasta dish with baked chicken or pork chops for supper.She often has an evening snack of fat-free pudding or yogurt.She drinks unsweetened iced tea,regular colas,water,and an occasional glass of milk.-Connie has been evaluating her daily consumption of beverages to improve the overall quality of her diet.Which of the following beverages should Connie choose less often?A) regular sodaB) unsweetened iced teaC) waterD) low-fat milk Wilson visited his grandparents for the weekend. He noticed that his smartphone showed very weak signal strength. What could be a possible reason for the weak signal strength of his smartphone? A. The surrounding area is open in all directions. B. The cellular tower is far away from his grandparents home. C. The smartphone is low on battery. D. The antenna in his smartphone is only a receiver. An organism has the allele frequency of a =0.4 and b=0.3. What is the frequency for allele c? (A) c=0.3 (b) c=1.0 (c) c=0.4 (d) c=0.0 A narrow beam of white light is incident on a sheet of quartz. Thebeam disperses in the quartz, with red light (700nm)traveling at an angle of 26.3o with respect to thenormal and violet light (400nm) traveling at25.7o. The index of refraction of quartz for red lightis 1.45. What is the index of refraction of quartz for violetlight? A right circular cone of radius 6 inches, side length of 16 inches and height of h inches. Which is closest to the height of a cone that has a slant height of 16 inches and a radius of 6 inches? f 10 in. g 14.8 in. h 20 in. j 17.1 in. Which one of the following statements a about scientific hypothesis is FALSE? A scientific hypothesis is an educated guess about why something happens. In order to be useful, a scientific hypothesis must be testable in a way that is replicable by other scientists. The previously known outcome of an observation or experiment can be used as solid proof that a newly-created scientific hypothesis is absolutely true. A scientific hypothesis is an explanation for a natural phenomenon. Aisle 2 of a furniture store stocks 4-legged chairs, 4-legged tables, and 3-legged stools. If there are t tables, c chairs, and s stools, which expressions show the total number of furniture legs in aisle 2? American photographer Edward Steichen purchased the sculpture Bird in Space while in Paris, France. What occurred when he tried to return to the United States with the sculpture? Include as many details as possible in your response. Solve for kkk. \dfrac{k}4+ 3= 14 4 k +3=14 But I, with mournful tread, Walk the deck my Captain lies, Fallen cold and dead. What connotation does the poet use for the words in bold? (10 points) Misery Celebration Fury Romance 5. Moorcroft Companys budgeted sales and direct materials purchases are as follows:April May June Budgeted Sales $300,000 320,000 370,000 Budgeted D.M. Purchases $45,000 54,000 60,000 Moorcrofts sales are 40% cash and 60% credit. Credit sales are collected 30% in the month ofsale, 40% in the month following sale, and 26% in the second month following sale; 4% areuncollectible. Moorcrofts purchases are 50% cash and 50% on account. Purchases onaccount are paid 40% in the month following the purchase and 60% in the second monthfollowing the purchase.Instructions(a) Prepare a schedule of expected collections from customers for June.Copyright 2015 John Wiley & Sons, Inc.Weygandt, Accounting Principles, 12/e, Challenge Exercises (For Instructor Use Only)(b) Prepare a schedule of expected payments for direct materials for June.(c) Moorcrofts assistant controller suggested that Moorcroft hire a part time collector toencourage customers to pay more promptly and to reduce the amount of uncollectibleaccounts. Sales are still 40% cash and 60% credit but the assistant controller predictedthat this would cause credit sales to be collected 30% in the month of the sale, 50% inthe month following sale, and 18% in the second month following sale; 2% areuncollectible.Prepare a schedule of expected collections from customers for June.How did these changes impact cash collections? Would it be worthpaying the collector $1,000 per month?(d) The assistant controller also suggested that the company switch their purchases to 40%cash and 60% on account to help stretch out their cash payments. There is noadditional interest charge to do this and Moorcroft is still paying their bills on time. Thereis no change to the companys payment pattern.Prepare a schedule of expected payments for direct materials for June.How did these changes impact the cash payments for June? Copyright 2015 John Wiley & Sons, Inc.Weygandt, Accounting Principles, 12/e, Challenge Exercises (For Instructor Use Only) how does matter form different types of mixtures? Which two accounts are used to reconcile from "Cash Paid to Vendors" to Cost of Goods Sold? help me!1- He _______ comb his hair by himself. His mother combs it for him.a) could b) canc) couldn'td) can't2- My little brother ____ walk when he was six months old a) canb) can'tc) couldd) couldn't3- Tom is really athletic. He _____ run very fast.a) couldb) canc) can'td) couldn't4- Could Jennifer eat her soup ____? No, she couldn't. It _____ too chili.a) last night/ wasb) now/ werec) yesterday/ wasn'td) tomorrow/ isn't5- _____ Adam ski? No, he _____a) Can/ canb) Could/ couldc) Could/ cand) Can/ can't6- David couldn't sleep well _____ because he was alone at home.a) Nowb) last nightc) todayd) next week Explain the french society during 16th century Drag each tile to the correct box.Based on the context of each excerpt from F. Scott Fitzgerald's "Winter Dreams." choose the definition that most closely matches the denotationof the bolded word.childish sulkiness or bad-temperpractical, ordinaryto emphasizeAs she took her stance for a short mashie shot, Dexter looked at herclosely. She wore a blue gingham dress, rimmed at throat and shoulderswith a white edging that accentuated her tan.During dinner she slipped into a moody depression which gave Dexter afeeling of uneasiness. Whatever petulance she uttered in her throatyvoice worried him."You're not. I like you. But I've just had a terrible afternoon. There was aman I cared about, and this afternoon he told me out of a clear sky thathe was poor as a church-mouse. He'd never even hinted it before. Doesthis sound horribly mundane?" Help please!!!! Tyyy