Answer:
Dog.java:
Dog{
//Declare instance variables
private String name;
private int age;
//Create the constructor with two parameters, and initialize the instance variables
public Dog(String name, int age){
this.name = name;
this.age = age;
}
//get methods
public String getName(){
return name;
}
public int getAge(){
return age;
}
//set methods
public void setName(String name){
this.name = name;
}
public void setAge(int age){
this.age = age;
}
//calculateAgeInPersonYears() method to calculate the age in person years by multiplying the age by 7
public int calculateAgeInPersonYears(){
return 7 * getAge();
}
//toString method to return the description of the dog
public String toString(){
return "Name: " + getName() + ", Age: " + getAge() + ", Age in Person Years: " + calculateAgeInPersonYears();
}
}
Kennel.java:
public class Kennel
{
public static void main(String[] args) {
//Create two dog objects using the constructor
Dog dog1 = new Dog("Dog1", 2);
Dog dog2 = new Dog("Dog2", 5);
//Print their information using the toString method
System.out.println(dog1.toString());
System.out.println(dog2.toString());
//Update the first dog's name using setName method
dog1.setName("Doggy");
System.out.println(dog1.toString());
//Update the second dog's age using setAge method
dog2.setAge(1);
System.out.println(dog2.toString());
}
}
Explanation:
*The code is in Java.
You may see the explanations as comments in the code
What is the fastest way to copy the format from one cell to multiple other cells?
Double-click on the Format Painter.
Single-click on the Format Painter.
Use Copy and Paste commands.
Use Cut and Paste commands.
Double clicking on the format pointer is the fastest way to copy the format from one cell to multiple other cells. Thus, the correct option is A.
What is Format pointer?The format pointer holds a value which represents the memory address of an available data item in the file. If the data item from the file becomes unavailable. For example, because it is in a program which has been canceled then the pointer format is considered to hold a value which is incompatible with the format options.
Use the Format Painter to quickly apply the same formatting, such as the color, font style and size, or border style, to multiple pieces of text or graphics in the data item. With the help of format painter, a person can copy all of the formatting from one object and apply it to another object think of it as copying and pasting for formatting.
Therefore, the correct option is A.
Learn more about Format painter here:
https://brainly.com/question/29563254
#SPJ2
Arnie is planning an action shot and wants the camera to move smoothly alongside his running characters. He is working on a tight budget and can’t afford expensive equipment. What alternatives could you suggest?
Mount the camera on a wagon, wheelchair, or vehicle and move it next to the characters.
Rearrange your script so you don’t need to capture the motion in that way.
Try running next to the characters while keeping the camera balanced.
See if you can simulate the running with virtual reality.
What is a key consideration when evaluating platforms?
Answer:
The continuous performance of reliability data integrity will lead to the benefit and profit of the platform's regular structure changes. Cleanliness in the platform whereas addresses the straightforward structure of task performance and adequate data integrity.
A musician has recorded some initial ideas for new songs which she wishes to share with her bandmates. As these are initial ideas she is not too concerned about the quality of the audio files she will send, but does wish the size of the files to be as small as possible so they can be easily downloaded by her bandmates, including using mobile data. Which of the following should she do to meet these requirements? Select two answers.
Save the audio using a high sampling rate.
Save the audio using a low sampling rate.
Save the audio using a low bit depth.
Save the audio using a low amplitude (volume).
Answer:
1.save the audio using a low sampling rate
2.save the audio using a low bit depth
Explanation:
1. if the quality of the audio is low then the size of the audio will also be low and which will make the size of the data to be less and also easier to download
grade 11 essay about the year 2020
Answer:
This 2020 have a new normal class because of CO VID-19 Disease have more students and teachers patient the teachers is preparing a module to her/his student and the student is answering are not learning lesson because of the COV ID-19 the whole word enduring to that pandemic and all fronliners is the hero in this pandemic because all frontliners is helping the people to we heal and to healed that virus.
Explanation:
When gathering the information needed to create a database, the attributes the database must contain to store all the information an organization needs for its activities are _______ requirements.
Answer:
Access and security requirements
It must ask the user to input the tuition for this year. Suppose the tuition for a university is 10000$ this year and increases 5% every year. In one year, the tuition will be 10500$. Write a Java program that displays the tuition in 10 years, and the total cost of four years’ worth of tuition after the tenth years
Answer:
Answered below
Explanation:
//Program in Java
int percentIncrease = 0.05;
Scanner scan = new Scanner(System.in);
System.out.print("Enter tuition: ");
int tuition = scan.nextInt();
double tenYearIncrease = (percentIncrease * 10) * tuition;
double tenYearsTotal = tuition + tenYearIncrease;
//Tuition in ten years
System.out.print(tenYearsTotal);
//Total four years after
double newTuition = tenYearsTotal;
double fourYearsIncrease = (percentIncrease * 4) * newTuition;
double fourYearsTotal = newTuition + fourYearsIncrease;
System.out.print(fourYearsTotal);
The virus which activated on a specific data and time is called
Question 2 (6 points)
The business philosophy describes the business's education, training, strengths, weaknesses, and personal development.
True
False
Question 3
Answer:
False
Explanation:
Answer:
false
Explanation:
1. How important is e-mail communication to you? Why?
Answer:
Communicating by email is almost instantaneous, which enhances communications by quickly disseminating information and providing fast response to customer inquiries. It also allows for quicker problem-solving and more streamlined business processes.
With contention:_______.
a. computers wait until the circuit is free before they send data
b. the server or front end processor works consecutively through a list of clients to determine who should have access to the media
c. the front end processor must wait for a response from the polled client or terminal
d. one computer starts the poll and passes it to the next computer on the multipoint circuit
e. there is never a chance for collision, or two computers trying to send data at the same time
Answer:
a. computers wait until the circuit is free before they send data.
Explanation:
In Computer science, controlled access (X-ON/X-OFF) is typically the opposite of contention.
Controlled access is mainly used by computer networks that are being managed by a host mainframe computer system. X-ON is ready to receive while X-OFF isn't ready to receive.
With contention, computers wait until the circuit is free before they send data. It generally prevents collision between computer systems.
When text is used as a Hyperlink, it is usually underlined and appears as a different color.
Question 3 options:
True
False
The computer scientists Richard Conway and David Gries once wrote: The absence of error messages during translation of a computer program is only a necessary and not a sufficient condition for reasonable [program] correctness. Rewrite this statement without using the words necessary or sufficient.
Answer:
A computer program is not reasonably correct if it has no error messages during translation.
Explanation:
First, we need to understand what the statement means, and we also need to identify the keywords.
The statement means that, when a program does not show up error during translation; this does not mean that the program is correct
Having said that:
We can replace some keywords as follows:
absence of error messages := no error messages
Tyrone Shoelaces has invested a huge amount of money into the stock market and doesnât trust just anyone to give him buying and selling information. Before he will buy a certain stock, he must get input from three sources. His first source is Pain Webster, a famous stock broker. His second source is Meg A. Cash, a self-made millionaire in the stock market, and his third source is Madame LaZora, world-famous psychic. After several months of receiving advice from all three, he has come to the following conclusions:
a) Buy if Pain and Meg both say yes and the psychic says no.
b) Buy if the psychic says yes.
c) Donât buy otherwise.
Construct a truth table and find the minimized Boolean function to implement the logic telling Tyrone when to buy.
Solution :
The truth table is :
Pain Meg Psych Buy
[tex]$0$[/tex] [tex]$0$[/tex] [tex]$0$[/tex] [tex]$0$[/tex]
[tex]$0$[/tex] [tex]$0$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
[tex]$0$[/tex] [tex]$1$[/tex] [tex]$0$[/tex] [tex]$0$[/tex]
[tex]$0$[/tex] [tex]$1$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
[tex]$1$[/tex] [tex]$0$[/tex] [tex]$0$[/tex] [tex]$0$[/tex]
[tex]$1$[/tex] [tex]$0$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
[tex]$1$[/tex] [tex]$1$[/tex] [tex]$0$[/tex] [tex]$1$[/tex]
[tex]$1$[/tex] [tex]$1$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
The Boolean function :
[tex]$\text{F(Pain, \ Meg, \ Psych)}$[/tex] = [tex]$\overline {\text{PainMeg}}\text{Psych}+\overline{\text{Pain}}\text{MegPsych}+\text{Pain}\overline{\text{Meg}}\text{Psych}+\text{PainMeg}\overline{\text{Psych}}$[/tex][tex]$+\text{PainMegPsych}$[/tex]
Meg and Psych
[tex]$00$[/tex] 01 [tex]$11$[/tex] 10
Pain 0 1 1
[tex]$1$[/tex] [tex]$1$[/tex] 1 [tex]$1$[/tex]
Therefore,
[tex]$\text{F(Pain, \ Meg, \ Psych)}$[/tex] = Psych + PainMeg
9. Which of the following is the
leading use of computer?
Complete Question:
What is the leading use of computers?
Group of answer choices.
a. web surfing.
b. email, texting, and social networking.
c. e-shopping.
d. word processing.
e. management of finances.
Answer:
b. email, texting, and social networking.
Explanation:
Communication can be defined as a process which typically involves the transfer of information from one person (sender) to another (recipient), through the use of semiotics, symbols and signs that are mutually understood by both parties. One of the most widely used communication channel or medium is an e-mail (electronic mail).
An e-mail is an acronym for electronic mail and it is a software application or program designed to let users send texts and multimedia messages over the internet.
Also, social media platforms (social network) serves as an effective communication channel for the dissemination of information in real-time from one person to another person within or in a different location. Both email and social networking involves texting and are mainly done on computer.
Hence, the leading use of computer is email, texting, and social networking.
define a computer, state its 3 main activities with examples of the functions of each of those activities
Answer:
The four main functions of a computer are to:
- take data and instructions from a user
-process the data according to the instructions
- and display or store the processed data.
These functions are also referred as the input function, the procedure function, the output function, and the storage function.
Explanation:
Libby’s keyboard is not working properly, but she wants to select options and commands from the screen itself. Which peripheral device should she use?
A.
voice recognition
B.
microphone
C.
mouse
D.
compact disk
Use devices that comply with _____________ standards to reduce energy consumption.
Energy Star
Energy Plus
Power Pro
Data Center
Power Star
Answer:
energy star
Explanation:
I just got it correct
The correct option is A. Use devices that comply with Energy Star standards to reduce energy consumption.
How much energy does ENERGY STAR save?Depending on the comparable model, Energy Star appliances can help you save anywhere between 10% and 50% of the energy needed. If you are replacing an older appliance, you can save even more. The Department of Energy and the Environmental Protection Agency jointly administers the Energy Star program.
Through the use of energy-efficient goods and practices, it seeks to assist consumers, businesses, and industry in making savings and safeguarding the environment. The Energy star badge identifies high-performing, economical houses, buildings, and products.
Thus, the Use of Energy Star-certified equipment to cut down on energy use; is option A.
Learn more about Energy Star here:
https://brainly.com/question/27093872
#SPJ2
If the maximum range of projectile is x. show that the maximum height reached by the same projectile is x/4.
Explanation:
Given that,
The maximum range of a projectile is x.
Maximum range occurs when the angle of projection is 45°. Using formula for maximum range.
[tex]R=\dfrac{v^2}{g}[/tex]
According to the question,
[tex]x=\dfrac{v^2}{g}[/tex] ...(1)
Maximum height,
[tex]h=\dfrac{v^2}{2g}[/tex]
From equation (1).
[tex]h=\dfrac{x}{2}[/tex]
Hence, this is the required solution.
hy please help me do this
Answer:
1 True
2 False
3 False
4 True
5 True
6 True
7 True
8 False
Explanation:
8 robot's are not perfect they make mistakes too
solve x + 4 / x - 3 = 4 , step by step explanation will mark as brainliest
Answer:
I didn't get the exact answer..but hope this help
hy plzz help me friends
Answer:
Ok so RAM is Random-Access-Memory.
RAM can store data just like in a hard drive - hdd or solid state drive - ssd
but the thing is that ram is really fast and data is only stored when RAM chips get power. On power loss your all data will be lost too.
ROM thanslates to Read-Only-Memory - so data in ROM chips can't be modifyed computer can just read the data but not write.
Read-only memory is useful for storing software that is rarely changed during the life of the system, also known as firmware.
Have a great day.
Explanation:
Answer:
Ram which stands for random access memory, and Rom which stands for read only memory are both present in your computer. Ram is volatile memory that temporarily stores the files you are working on. Rom is non-volatile memory that permanently stores instructions for your computer
Where can the Field Service Manual containing Critical Callout, Disassembly and Reassembly instructions be found?
Answer:
Somewhere
Explanation:
In matlab how would this specific code be written and how could I ask the user to enter a vector of coefficients for the polynomial model. Verify that the entry has an even number of elements (an odd number of elements would mean an even order polynomial). If an invalid vector is entered, prompt the user to re-enter the vector until an acceptable vector is entered. If the user does not enter an acceptable vector after 5 attempts (including the first prompt), display a warning and remove the last element of the last vector entered. (For example, if the last user input is [1 2 3 4 5], the vector becomes [1 2 3 4]).
my code
[1,2,3,4];
Answer:
Explanation:
that is correct 1234
Pitch an idea for an app that would help with sustainability (examples could be recycling, food waste or energy). What features would it have, how would one of these features work and how would it positively impact the user of the app
you could do something like homeless help, it would be able to find homeless ppl if they signed up and get them a partner to help them with there life
Explanation:
You are given an array of arrays a. Your task is to group the arrays a[i] by their mean values, so that arrays with equal mean values are in the same group, and arrays with different mean values are in different groups. Each group should contain a set of indices (i, j, etc), such that the corresponding arrays (a[i], a[j], etc) all have the same mean. Return the set of groups as an array of arrays, where the indices within each group are sorted in ascending order, and the groups are sorted in ascending order of their minimum element.
Example
For
a = [[3, 3, 4, 2],
[4, 4],
[4, 0, 3, 3],
[2, 3],
[3, 3, 3]]
the output should be
meanGroups(a) = [[0, 4],
[1],
[2, 3]]
mean(a[0]) = (3 + 3 + 4 + 2) / 4 = 3;
mean(a[1]) = (4 + 4) / 2 = 4;
mean(a[2]) = (4 + 0 + 3 + 3) / 4 = 2.5;
mean(a[3]) = (2 + 3) / 2 = 2.5;
mean(a[4]) = (3 + 3 + 3) / 3 = 3.
There are three groups of means: those with mean 2.5, 3, and 4. And they form the following groups:
Arrays with indices 0and 4 form a group with mean 3;
Array with index 1 forms a group with mean 4;
Arrays with indices 2and 3 form a group with mean 2.5.
Note that neither
meanGroups(a) = [[0, 4],
[2, 3],
[1]]
nor
meanGroups(a) = [[0, 4],
[1],
[3, 2]]
will be considered as a correct answer:
In the first case, the minimal element in the array at index 2 is 1, and it is less then the minimal element in the array at index 1, which is 2.
In the second case, the array at index 2 is not sorted in ascending order.
For
a = [[-5, 2, 3],
[0, 0],
[0],
[-100, 100]]
the output should be
meanGroups(a) = [[0, 1, 2, 3]]
The mean values of all of the arrays are 0, so all of them are in the same group.
Input/Output
Answer:
import numpy as np
a = [[3, 3, 4, 2], [4, 4], [4, 0, 3, 3], [2, 3], [3, 3, 3]]
mean_holder = [np.array(i).mean() for i in a]
mean_groups= [[i for i,x in enumerate(mean_holder) if x==v] for v in mean_holder]
mean_g = []
for i in mean_groups:
if i not in mean_g:
mean_g.append(i)
print(mean_holder)
print(mean_g)
Explanation:
The python's Numpy package is used to convert the lists in the a-list into arrays and the means are taken and grouped by index
Assume in the for loop header, the range function has the three arguments: range (1, 10, 3), if you were to print out the value of the variable
in the for loop header, what will be printed out? List the values and separate them with a comma.
Answer:
1, 4, 7
Explanation:
The instruction in the question can be represented as:
for i in range(1,10,3):
print i
What the above code does is that:
It starts printing the value of i from 1
Increment by 3
Then stop printing at 9 (i.e.. 10 - 1)
So: The sequence is as follows
Print 1
Add 3, to give 4
Print 4
Add 3, to give 7
Print 7
Add 3, to give 10 (10 > 10 - 1).
So, it stops execution.
Write a Python program (rainfall.py) to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. Then for each year, the program should ask twelve times, once for each month, for inches of rainfall for that month. At the end, , the program should display the number of months, the total inches of rainfall, and the average rainfall per month for the entire period.
Your program should contain two functions:
(1) rainfall(year): This function takes in a year (integer) as a parameter, and returns two values (totalMonths and totalRainfall). In this function, you need to use nested loop. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iteration of the inner loop will ask the user for inches (float) of rainfall for that month. After all iterations, the function should return the number of months (totalMonths) and the total inches of rainfall (totalRainfall). (Submit for 4 points)
(2) __main__: In the main, you do the following: (Submit for 6 points)
a. Prompt the user to input the number of years. Reprompt the user if the number of years is 0 or less. Hint: use a while loop.
b. Call rainfall(year) and pass to it the value entered above.
c. Calculate the average based on the returned values from rainfall function.
d. Display the number of months, the total inches of rainfall, and the average rainfall per month for the entire period.
Answer:
def rainfall(year):
totalMonths = totalRainfall = 0
for y in range(year):
for month in range(12):
rainfall = float(input(f"Enter inches of rainfall for month #{month+1}: "))
totalRainfall += rainfall
totalMonths = year * 12
return totalMonths, totalRainfall
def __main__():
while True:
year = int(input("Enter the number of years: "))
if year > 0:
break
numberOfMonths, totalRainfall = rainfall(year)
averageRainFall = totalRainfall / numberOfMonths
print(f"\nTotal number of months: {numberOfMonths}")
print(f"The total inches of rainfall: {totalRainfall}")
print(f"The average rainfall per month for the entire period: {averageRainFall}")
if __name__ == '__main__':
__main__()
Explanation:
Create a function named rainfall that takes year as a parameter
Inside the function:
Create a nested for loop. The outer loop iterates for each year (The range is from 0 to year-1) and the inner loop iterates for each month of that year (The range is from 0 to 11). Inside the inner loop, ask the user to enter the rainfall for that month. Add the rainfall to the totalRainfall (cumulative sum)
When the loops are done, calculate the totalMonths, multiply year by 12
Return the totalMonths and totalRainfall
Inside the main:
Create a while loop that asks user to enter the number of years while it is greater than 0
Call the rainfall function, passing the year as parameter. Set the numberOfMonths and totalRainfall using the rainfall function
Calculate the averageRainFall, divide totalRainfall by numberOfMonths
Print the results
can someone write the answers pls :(?
Answer:
A: job sharing.
B: part-time working.
C: flexible hours.
D: compressed hours.
A: Payroll workers, Typing pool workers, Car production workers, Checkout operators, Bank workers
B: Website designers, Computer programmers, Delivery drivers in retail stores, Computer maintenance staff, Robot maintenance staff.
3: Can lead to unhealthy eating due to dependency on ready meals, Can lead to laziness, Lack of fitness/exercise, Manual household skills are lost.
4: Microprocessor controlled devices do much of the housework, Do not need to do many things manually, Do not need to be in the house when food is cooking, Do not need to be in the house when clothes are being washed, Can leave their home to go shopping/work at any time of the day, Greater social interaction/more family time, More time to go out/more leisure time/more time to do other things/work, Are able to do other leisure activities when convenient to them, Can encourage a healthy lifestyle because of smart fridges analysing food constituents, Do not have to leave home to get fit
Explanation:
I tried really hard to solve these. I hope this answers your questions. can you make me the brainliest, that all I ask since I answered it for you. Pleasure solving these. C:
What is not a type of text format that will automatically be converted by Outlook into a hyperlink?
O email address
O web address
O UNC path
O All will be automatically converted.
Answer:
UNC path seems to be the answer
Answer:
UNC path
Explanation: