every photo, vid, tweet... (c)
how to find gross pay using IF function in excel
Answer:
=IF(HoursWorked>40,HoursWorked*HourlyRate*1.5,HoursWorked*HourlyRate)
Create a class called Date that includes three instance variables-a month (type int), a day (type int) and a year (type int). Provide a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day and year separated by forward slashes (/). Add a main method to the class that demonstrates class Date's capabilities.
The class code is given below
lass Date:
def __init__(self, month, day, year):
self.month = month
self.day = day
self.year = year
def setMonth(self, month):
self.month = month
def setDay(self, day):
self.day = day
def setYear(self, year):
self.year = year
def getMonth(self):
return self.month
def getDay(self):
return self.day
def getYear(self):
return self.year
def displayDate(self):
print(self.month, '/', self.day, '/', self.year)
def main():
# create an object of Date class
date1 = Date(1, 15, 2021)
# display the date using the displayDate method
date1.displayDate()
# change the month using the setMonth method
date1.setMonth(2)
# display the date again
date1.displayDate()
if __name__ == "__main__":
main()
What is the class about?The above code will create a class called Date that includes three instance variables a month, a day and a year. It has a constructor that initializes the three instance variables and assumes that the values provided are correct.
It also has set and get methods for each instance variable and a method displayDate that displays the date in the format month/day/year.
Therefore, The main method demonstrates the use of the class by creating an object of the class and displaying the date, then changing the month and displaying the date again.
Learn more about class from
https://brainly.com/question/11842604
#SPJ1
in pycharm, write a program that prompts the user for their name and age. your program should then tell the user the year they were born. here is a sample execution of the program what is your name? Amanda how old are you? 15. This is what I have so far but I can't get pycharm to tell me the year I was born.
import datetime
name = input("What is your name? ")
age = input("How old are you? ")
year = datetime.datetime.now().year
print("Hello ' + name + ' you were born in " (year - age))
Let's address the few mistakes in your code so far. First, age is of type string and year is of type int. You're trying to subtract an int by a string and that doesn't work. Also, you have inconsistent quotes "Hello '. You should always use the same type of quote. The (year - age)) isn't properly formatted into the print statement. There is no plus adding it.
Here's my working code:
import datetime
name = input("What is your name? ")
age = int(input("How old are you? "))
year = datetime.datetime.now().year
print("Hello " + name + " you were born in " + str((year - age)))
I just fixed your code. Best of luck.
In python, date and time seem to be not its type of data, but the date and time named module can be imported for it to work with the time and date. So, the program and its description can be defined as follows:
Program Explanation:
Importing "datetime" package.Defining two-variable "name, age" in which we input value from user-end.Defining another variable "year" that holds current year value.In the next step, the print method has used that prints the user name with the born year.Program:
import datetime#import package datetime
name = input("What is your name? ")#defining a variable name that uses an inputs method to input string value
age = int(input("How old are you? "))#defining a variable age that uses an inputs method with the int to input value
year = datetime.datetime.now().year#defining a variable year that takes current value in it
print("Hello " + name + " you were born in " + str((year - age)))#defining a print method that print name value with born year
Output:
Please find the attached file.
Learn more:
brainly.com/question/19032453
InfoTrac is an aggregated database?
True
False
Answer: true
Explanation:
What does the keyword slice do? What are some practical uses of slice?
Answer:
Slice in javascript returns a copy of part of an array.
Explanation:
The prototype is slice(start, end), and the returned array contains copies of the elements of the original array, starting at index 'start', up to but excluding index 'end'.
Here is an example from the mozilla documentation:
const fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
const citrus = fruits.slice(1, 3);
// fruits contains ['Banana', 'Orange', 'Lemon', 'Apple', 'Mango']
// citrus contains ['Orange','Lemon']
You could use slice to limit the number of elements of a large array, or to implement pagination. Note that the copied array is a shallow copy, which means that if the elements are objects themselves, both the original and the copied array reference the same objects.
4. What information is in the payload section of the TCP segments?
The actual data being transferred, such as the content of a web page, an email message, or a file transfer, is contained in the payload part of the TCP segments.
The content of a TCP segment is what?A segment header and a data chunk make up a TCP segment. There are ten required fields and one optional extension field in the segment header (Options, pink background in table). The payload data for the application is carried in the data section, which comes after the header.
What is the TCP Wireshark payload size?In established mode, a packet's maximum payload size is 1448 bytes (1500 - 20 IP header - 32 TCP header).
To know more about data visit:-
https://brainly.com/question/29851366
#SPJ1
1.5 code practice question 3
Answer: What the hell is that 243 suppose to be
Explanation:uhg
Declare Integer values[SIZE] = 1, 2, 3, 4, Debugging Exercises 1. What is the error in the following pseudocode? // This program uses an array to display five names Constant Integer SIZE = 5 Declare String names [SIZE] = "Meg", "Jack", "Steve "Bill", "Lisa" Declare Integer index For index = 0 To SIZE Display names[index] End For
Answer:
In "Declare String names [SIZE] =", Meg and Jack are done correctly, however for Steve and Bill, there is no ending quote after Steve, and no comma separating the two. More of a common problem than one would think
it should look more like
Declare String names [SIZE] = "Meg", "Jack", "Steve", "Bill", "Lisa"
The epa requires spray guns used in the automotive refinishing process to have transfer efficiency of at least
The epa requires spray guns used in the automotive refinishing process to have transfer efficiency of at least 65 percent transfer efficiency.
What is the transfer efficiency
EPA lacks transfer efficiency requirement for auto refinishing spray guns. The EPA regulates auto refinishing emissions and impact with rules. NESHAP regulates paint stripping and coating operations for air pollutants.
This rule limits VOCs and HAPs emissions in automotive refinishing. When it comes to reducing overspray and minimizing wasted paint or coating material, transfer efficiency is crucial. "More efficiency, less waste with higher transfer rate."
Learn more about transfer efficiency from
https://brainly.com/question/29355652
#SPJ1
How was science used to make television?
Answer:
Sir William Crookes invented the cathode ray tube in 1878, but these discoveries took many years to merge into the common ground of television. ... His mechanical system used a scanning disk with small holes to pick up image fragments and imprint them on a light-sensitive selenium tube. A receiver reassembled the picture.
Television is really a three-part invention: the TV camera that turns a picture and sound into a signal; the TV transmitter that sends the signal through the air; and the TV receiver (the TV set in your home) that captures the signal and turns it back into picture and sound.
https://www.jstor.org/stable/20024824 ( This link is helpful)
Deidre is studying for a history exam. She reads the chapter in her textbook that covers the material, then realizes she needs to learn the names, dates, and places mentioned in the reading.
Which note-taking tool will help Deidre quickly find the names, dates, and places later when it is time to review?
a sticky note
a highlighter
electronic notes
flash cards
Answer:
B: Highlighter
Explanation:
Just answered on edge, hope this helps
Answer: B) A Highlighter
Explanation:
Write a class named Pet, with should have the following data attributes:1._name (for the name of a pet.2._animalType (for the type of animal that a pet is. Example, values are "Dog","Cat" and "Bird")3._age (for the pet's age)The Pet class should have an __init__method that creates these attributes. It should also have the following methods:-setName -This method assigns a value to the_name field-setAnimalType - This method assigns a value to the __animalType field-setAge -This method assigns a value to the __age field-getName -This method returns the value of the __name field-getAnimalType -This method returns the value of the __animalType field-getAge - This method returns the value of the __age fieldWrite a program that creates an object of the class and prompts the user to enter the name, type, and age of his or her pet. This should be stored as the object's attributes. Use the object's accessor methods to retrieve the pet's name, type and age and display this data on the screen. Also add an __str__ method to the class that will print the attributes in a readable format. In the main part of the program, create two more pet objects, assign values to the attirbutes and print all three objects using the print statement.Note: This program must be written using Python language
According to the question this program given below using Python language a class named Pet, with should have the following data.
What is Python language?Python is an interpreted, high-level, general-purpose programming language. It was created by Guido van Rossum in the late 1980s and early 1990s and released in 1991. Python is designed to be easy to learn and easy to read, with its large library of modules, extensive standard library, and clear and simple syntax.
class Pet:
def __init__(self, name, animalType, age):
self.__name = name
self.__animalType = animalType
self.__age = age
#setters
def setName(self, name):
self.__name = name
def setAnimalType(self, animalType):
self.__animalType = animalType
def setAge(self, age):
self.__age = age
#getters
def getName(self):
return self.__name
def getAnimalType(self):
return self.__animalType
def getAge(self):
return self.__age
#__str__ method
def __str__(self):
return "Name: "+self.__name+"\nAnimal Type: "+self.__animalType+"\nAge: "+str(self.__age)
#Main Program
#Object 1
name = input("Enter the name of your pet: ")
animalType = input("Enter the type of animal: ")
age = int(input("Enter the age of your pet: "))
pet1 = Pet(name, animalType, age)
#Object 2
name = input("Enter the name of your pet: ")
animalType = input("Enter the type of animal: ")
age = int(input("Enter the age of your pet: "))
pet2 = Pet(name, animalType, age)
#Object 3
name = input("Enter the name of your pet: ")
animalType = input("Enter the type of animal: ")
age = int(input("Enter the age of your pet: "))
pet3 = Pet(name, animalType, age)
#Print the objects
print("\nPet 1:")
print(pet1)
print("\nPet 2:")
print(pet2)
print("\nPet 3:")
print(pet3)
To learn more about Python language
https://brainly.com/question/30246714
#SPJ1
One strategy to improve your productivity is to ensure your _____ is at the top of every to-do list.
One strategy to improve your productivity is to ensure your most important task (MIT) is at the top of every to-do list
How to improve productivity?To augment your efficiency, it is essential to make sure that your Most Important Task (MIT) is laid out at the commencement of each daily taskset. Evaluating your MIT necessitates figuring out the single errand with the most noteworthy influence on your 24 hours or aid you attain long-term milestones.
By ranking your MIT as the foremost activity in the morning, you can construct a prolific tone for the rest of your day while also sidestepping getting wholly submerged in trivial endeavors. This may cultivate a feeling of success and encourage consistency in productivity per day.
Read more about productivity here:
https://brainly.com/question/2992817
#SPJ1
Which algorithm steps correctly solve the problem: How many occurrences of 2 exist in the array?
(1) increment counter if 2 is found (2) loop through array (3) inspect each array element
(1) inspect each array element (2) loop through array (3) increment counter if 2 is found
(1) loop through array (2) increment counter if 2 is found (3) inspect each array element
(1) loop through array (2) inspect each array element (3) increment counter if 2 is found
The correct algorithm steps to solve the problem "How many occurrences of 2 exist in the array?" is:
(1) loop through array(2) inspect each array element(3) increment counter if 2 is foundTherefore, option (4) is the correct sequence of steps:
Why is this correct?This is because you need to traverse the entire array and inspect each element to check if it is equal to 2. If an element is equal to 2, then you increment the counter.
1) loop through array
(2) inspect each array element
(3) increment counter if 2 is found
Read more about algorithm here:
https://brainly.com/question/24953880
#SPJ1
Dan has installed antivirus software on his system. What is true about antivirus software?
The most accurate statement about antivirus software is that Antivirus software helps in detecting and mitigating various types of malicious software. So, the correct choice is option D.
Antivirus software plays a crucial role in identifying and removing known malware, including viruses, worms, Trojans, and other malicious programs, from a computer system. It does this by scanning files, programs, and system memory for patterns and signatures associated with malware. While antivirus software is an essential security tool, it is important to note that it does not provide complete protection against all types of cyber threats.
The threat landscape is constantly evolving, with new and emerging malware variants being developed by cyber criminals. Antivirus software relies on regular updates to its virus definitions database to stay effective against the latest threats. However, there can be a time lag between the emergence of a new threat and the availability of updates, during which the system may remain vulnerable.
To enhance security, it is recommended to combine antivirus software with other cybersecurity measures, such as regular system updates, strong passwords, safe browsing habits, and exercising caution when downloading files or clicking on suspicious links. This multi-layered approach provides a more comprehensive defense against cyber-attacks and helps ensure the security of the system and its data.
For more questions on Antivirus software
https://brainly.com/question/29944811
#SPJ8
Complete question:
Dan has installed antivirus software on his system. What is true about antivirus software? Select the most accurate statement from the following options:
A. Antivirus software provides complete protection against all types of cyber threats.B. Antivirus software can detect and remove all existing and emerging malware.C. Antivirus software guarantees 100% security and prevents all cyber attacks.D. Antivirus software helps in detecting and mitigating various types of malicious software.1 switch will turn on/off all the lights and a second switch will change the lights from all being the same to different
One can make a circuit by Listing all the Component Used For The Design Of The Electric Circuit
What is the circuit about?When three bulbs are said to be be connected in series to a givem battery called B1, and if a person switch SW1 ON especially for all three bulb, they will have the same brightness.
The Component Used For The Design Of The Electric Circuit are:
18Volt Battery ( two 9 Volts batteries connected in series).Three Filament lamps LMP1=LMP2=LMP3= 6V 6W. Three resistors of R1=100Ω, R2=12Ω and R3=3Ω.SPST Switch =SW1. TPST Switch = SW2.
See full question below
How do you make a circuit so 1 switch will turn on/off all the lights(3 lights) and a second switch will change the lights from all being the same brightness to all being different brightness?
Learn more about lights from
https://brainly.com/question/54872
#SPJ1
CS Academy Unit 8.3.2 Rainbow Ripples
Based on the given code snippet, the Python script program defining a class and some functions related to drawing ripples is given.
How to depict the programripples = Group()
def drawRipples():
ripples.clear()
# Draw ripples from the middle of the canvas to the edges.
# The distance between ripples is determined by app.rippleSpace
# CHINT: The radius of the smallest circle should determine where you start the for loop.
# 200 should be the end value.
for radius in range(0, 200, app.rippleSpace):
# CHINT: Add each circle you draw to the ripples group.
circle = Circle(app.width/2, app.height/2, radius)
ripples.add(circle)
# Place Your Code Here N
drawRipples()
def onKeyHold(keys):
if 'Cup' in keys:
app.rippleSpace += 2
elif 'down' in keys and app.rippleSpace > 2:
app.rippleSpace -= 2
drawRipples()
Learn more about program on
https://brainly.com/question/26642771
#SPJ1
1. Good URI Design
Which of the following are true regarding good URI design?
Pick ONE OR MORE options
URIS should never be changed.
URIS must be constructed by the client.
URIS should be short in length.
URIS should be case-sensitive.
HTTP verbs should be used instead of operation names in URIS.
Use spaces when designing a URI.
Redirection must be used if a change in URI is required.
The statement that are true regarding good URI design are:
Good URI Design URIs should be short in length. HTTP verbs should be used instead of operation names in URIS.URIs should never be changed.What is the meaning of the term URIs?A Uniform Resource Identifier (URI) is known to be a term that is said to be special or unique because it is the sequence of characters that helps to tell a logical or physical resource that is known to be used by web technologies.
Note that the URIs id one that can be used to know anything, such as real-world objects, people and places, concepts, and others.
Hence, The statement that are true regarding good URI design are:
Good URI Design URIs should be short in length. HTTP verbs should be used instead of operation names in URIS.URIs should never be changed.Learn more about URIs from
https://brainly.com/question/13267226
#SPJ1
HELP ME OUT PLEASE!!!!
Newspapers are forms of digital media.
True False
Please help me, I need to turn this in before 12am. :(
Take a few moments and ask yourself about the value of a database. Then develop no less than two paragraphs considering... What can they really accomplish? Can you think of any industries that are actively using them? Are they challenging to learn? (or any other information you feel is prudent to the discussion).
Databases are essential tools for storing, organizing, and managing large amounts of data, providing valuable insights and serving as a foundation for software systems across industries.
Write a short note on databases and their uses.Databases are an essential tool for storing, organizing, and managing large amounts of data. They allow for efficient retrieval and manipulation of data and can provide valuable insights for businesses and organizations.
In today's data-driven world, databases can accomplish a wide range of tasks. They can store customer information, inventory data, financial records, and more. Databases can be used for analysis and decision-making, such as identifying trends, forecasting future performance, and optimizing operations. They can also provide a foundation for applications and software systems, such as e-commerce platforms, CRM systems, and inventory management software.
Many industries actively use databases, including healthcare, finance, retail, and government. Healthcare organizations use databases to manage patient records and medical information, while financial institutions use them to manage transactions and account information. Retail companies use databases to track inventory and sales data, while government agencies use them to manage citizen records and public services.
While databases can be complex and challenging to learn, there are many resources available to help individuals and organizations develop the skills needed to use them effectively. Online courses, tutorials, and certifications are available, as well as consulting and support services from database vendors and experts. With the right training and resources, anyone can learn to use databases to their full potential.
To learn more about Databases, visit:
https://brainly.com/question/6447559
#SPJ1
When you need to switch on an electrical current at a remote location, would you use a relay or an amplifier?
Answer:
Relay
Explanation:
They both perform similar functions in terms of control of voltage and current but the relay would be better because although it cannot produce a variable output like that of an amplifier, it has the capacity to isolate its input from its output.
To fill the entire background of a container use ___, it enlarges until it fills the whole element
repeat:both
full
cover
fill
Answer:
cover
Explanation:
Emerging technology is exciting because it can bounce back and forth between which two worlds?
What does the measurement tell you?
Planned value
Answer:
i think it is Planned Value is the approved value of the work to be completed in a given time. It is the value that you should have been earned as per the schedule. ... Total Planned Value for the project is known as Budget at Completion (BAC). Planned Value is also referred to as Budgeted Cost of Work Scheduled (BCWS).
Explanation:
im not sure tho srry if its wrong have a good day:)
You need to connect the satellite television signal to your HD 4K flat screen TV using a coaxial cable. Which of the following is the BEST type of coaxial cable to use? F-typeRG-59BNCRG-6
The best type of coaxial cable to use for connecting the satellite television signal to an HD 4K flat screen TV is RG-6. RG-6 is a high-quality coaxial cable that is designed to handle high-frequency signals and is commonly used for cable and satellite television installations.
It is made of a thicker copper core and a higher quality insulation material, which results in a lower signal loss and better overall performance compared to other coaxial cables like RG-59 or BNC. RG-6 is also capable of delivering full-spectrum video, including HD and 4K, and has the bandwidth to handle multiple signals at the same time. In short, RG-6 is the most suitable cable for a high-quality satellite television connection to an HD 4K flat screen TV.
Learn more about signal: https://brainly.com/question/30365745
#SPJ4
Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.
14 36 31 -2 11 -6
Sample Run
[14, 36, 31, -2, 11, -6]
what is web browser ?
Answer:
A web browser, or simply "browser," is an application used to access and view websites.
name the steps to turn on a computer properly
Answer:
Check that the computer is connected to power, and is powered on.
Make sure that your keyboard and mouse are plugged in.
Check that the monitor (screen) is plugged into the computer using its display cable.
Ensure that the monitor is connected to power and is turned on.
Explanation:
how do I turn it on the orange button isn’t working :,)
Answer:
keep holding it
Explanation:
What is the minimum number of app service plans that should be created
The minimum number of App Service plans that should be created depends on a person's specific requirements and the workload you are planning to host
What is service plansWhen you want to decide how many App Service plans to use, think about these things such as: If you have different apps that need different things or need to be kept separate for safety, you can put them in different groups so they don't affect each other.
Scalability means being able to handle more work. If you need to handle more work by making things bigger (vertical scaling) or having more of them (horizontal scaling), you might need to use multiple plans for each application.
Learn more about service plans from
https://brainly.com/question/14249760
#SPJ1