Answer:
Explanation:
The following code is written in Python. It creates the parent class Shape and the three subclasses Rectangle, Square, and Circle that extend Shape. Shape has the constructor which is empty and the area method which returns 0.0, while the three subclasses take in the necessary measurements for its constructor. Each subclass also has getter and setter methods for each variable and an overriden area() method which returns the shapes area.
class Shape:
def __init__(self):
pass
def area(self):
return 0.0
class Square(Shape):
_length = 0
_width = 0
def __init__(self, length, width):
self._width = width
self._length = length
def area(self):
area = self._length * self._width
return area
def get_length(self):
return self._length
def get_width(self):
return self._width
def set_length(self, length):
self._length = length
def set_width(self, width):
self._width = width
class Rectangle(Shape):
_length = 0
_width = 0
def __init__(self, length, width):
self._width = width
self._length = length
def area(self):
area = self._length * self._width
return area
def get_length(self):
return self._length
def get_width(self):
return self._width
def set_length(self, length):
self._length = length
def set_width(self, width):
self._width = width
class Circle(Shape):
_radius = 0
def __init__(self, radius):
self._radius = radius
def area(self):
area = 2 * 3.14 * self._radius
return area
def get_radius(self):
return self._radius
def set_radius(self, radius):
self._radius = radius
QUESTION 2
1 poin
A document contains a list of items that appear in no particular order. Which of the following is the best way to format the list?
Answer:
Group of answer choices.
A. Apply numbering to the list.
B. Apply bullets to the list.
C. Apply multilevel numbering to the list.
D. Manually enter a ">" character at the beginning of each item in the list.
Answer:
B. Apply bullets to the list.
Explanation:
Formatting is a feature found in a lot of word processing software applications such as Microsoft Word, Notepad, etc., which is designed to avail end users the ability to apply specific formatting options such as cut, bold, italics, underline, list, etc., to texts based on certain criteria defined by an end user.
Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.
In Microsoft Word, a list can be formatted using a numbered or bulleted arrangement style. A numbered style (1, 2, 3, 4, etc) is typically used for an ordered list while a bullet is designed to be used for an unordered list.
Hence, the best way to format a document containing a list of items that appear in no particular order is to apply bullets to the list.
For example, a bulleted list of my favorite subjects arranged in no particular order would appear as this;
English language
Mathematics
Geography
Biology
Chemistry
Physics
Computer technology
If a program compiles fine, but it produces an incorrect result, then the program suffers from _______________.
If a program compiles fine, but it produces an incorrect result, then the program suffers from Logic Error.
What is program?A program has been the set of the instructions that the computer can follow that are written in a programming language. The size of the computer program affects the likelihood that an error may occur. To create an executable that a computer can run, a C program needs to be run through a C compiler. Programs are collections of instructions that a computer follows. Function is an ordered, reusable code unit.
When a program is syntactically sound but has a bug that is only discovered during program execution, it is said to have a runtime error. The Java compiler is unable to catch these errors during compilation; instead, the Java Virtual Machine (JVM) only notices them when the application is running. Runtime problems may occur when a website uses HTML code that is incompatible with a web browser's capabilities.
Therefore, if a program compiles fine, but it terminates abnormally at runtime, then the program suffers a runtime error.
To learn more about program, refer to the link below:
brainly.com/question/11023419
#SPJ2
What aspect should you consider before adding pictures to a document?
You should structure the BLANK first before you search for a relevant picture.
Answer:
You should structure the text first before you search for a relevant picture.
Explanation:
When adding a picture or pictures to a text document, the structure of the text must be considered.
Structure as used in the above sentence means (but is not limited to), the headings, the layouts, the spacing, paragraphs and word formatting in the document.
In other words, the way the document is organized
All these must be put in to place before one adds pictures into the document.
Which technology do online storesusually use to present customized content?
Online stores usually
use _____ technology to present customized content.
Answer:
real time analytics technology
Explanation:
Online stores usually use real-time analytics technology to present customized content. Explanation: Real-time analytics is gaining popularity nowadays. It is basically the procedure of measuring and preparing the data as it enters the database
Calculate the boiling point of 3.42 m solution of ethylene glycol, C2H602, in water (Kb =0.51°C/m, the normal boiling point of water is 100°C):
Answer:
128.10 degree Celsius
Explanation:
The boiling point is given by
[tex]T_b = \frac{1000*K_b * w}{M*W}[/tex]
Substituting the given values, we get -
[tex]T_b = \frac{1000*0.51 * 3.42}{62.07}\\T_b = 28.10[/tex]
Tb is the change in temperature
T2 -T1 = 28.10
T2 = 28.10 +100
T2 = 128.10 degree Celsius
Adding Web pages helps Web designers ___. Choose all answers that are correct.
A) Create multiple websites
B) Organize information
C) Make their websites more user-friendly
D) Return to their designs over time to make edits
Answer:
B
Explanation:
Adding Web pages helps Web designers Organize information. The correct option is B)
What is a web page?A website should be made such that anyone using it can quickly find what they're searching for and understand what each feature on the page performs without having to ask for assistance or go through a lengthy tutorial.
When users access the website for the first time, they should be able to do so right away and do so as frequently as they have in the past. Additionally, the website needs to be responsively constructed. Web design is crucial because it affects how potential customers see your company.
The first impression you provide them will determine whether they stay on your page to learn more about your company, or whether they click on a competitor's page instead.
Therefore, the correct option is B) Organize information.
To learn more about a web page, refer to the link:
https://brainly.com/question/22775095
#SPJ2
What is the IP address and TCP port number used by the client computer (source) that is transferring the file to gaia.cs.umass.edu
Answer:
Explanation:
ae
At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 percent each year for the next five years. Design a program with a loop that displays the projected semester tuition amount for the next five years.
Answer:grhgrt
Explanation:
The program is an illustration of loops;
Loops are program statements used to perform repetition
The tuition programThe program written in Python, where comments are used to explain each action is as follows:
#This initializes the fee
fee = 6000
#The following loop is repeated 5 times
for i in range(5):
#This calculates the fee, each year
fee *= 1.02
#This prints the calculated fee
print(round(fee,2),end=" ")
Read more about loops at:
https://brainly.com/question/24833629
#SPJ6
Explain the steps that are needed to remove the data items from linked list
Explanation:
Iterative Method:
To delete a node from the linked list, we need to do the following steps.
1) Find the previous node of the node to be deleted.
2) Change the next of the previous node.
3) Free memory for the node to be deleted.
is a collection of information stored under a single nam
Answer:
Fileplz mark it as brainliest
[tex]\boxed{ File }[/tex] is a collection of information stored under a single name.
[tex]\large\mathfrak{{\pmb{\underline{\orange{Mystique35 }}{\orange{❦}}}}}[/tex]
Scenario: The Development group in a company wants to setup theirown Child Domain to have full control on managing their accounts and policies. The Main IT group is recommending they are setup with an Organizational Unit, and delegating the appropriate access.Make your case supporting either the Development group or the Main IT group.Computer ScienceEngineering & TechnologyNetworkingIFT 220
Answer:
(:
Explanation:
I have been working on this python program for a hour now, and I am trying to figure out what I an doing wrong in the loop. I have attached the code and screenshot of my work. I need help to figure out how to loop the rest of the years for a calculation. The calculation has looped the same result for all years.
This is the assignment:
In 2017, the tuition for a full time student is $6,450 per semester. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your python program using a loop that displays the projected semester tuition for the next 7 years. You should display the actual year (2018, 2019, through 2024) and the tuition amount per semester for that year.
Here is my code:
# declare global constant variables
startingTuition = 6450.00;
starting_tuitionYear = 2018;
ending_tuitionYear = 2025;
increment = 1;
rate = .035;
tuition = 0;
tuitionRate = 0;
#loop for the next 7 years
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
# calculate rate per year
tuitionRate = (rate)*startingTuition;
# add rate per year to the tuition fee
tuition = startingTuition + tuitionRate;
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Answer:
The correct loop is as follows:
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
tuition = startingTuition + rate * startingTuition
startingTuition = tuition
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Explanation:
Required
The correction to the attached program
Some variables are not needed; so, I've removed the redundant variables.
The main error in the program is in the loop;
After the tuition for each year has been calculated, the startTuition of the next year must be set to the current tuition
See attachment for complete program
The Self-Quiz gives you an opportunity to self-assess your knowledge of what you have learned so far.
a. True
b. False
Answer:
a. True
Explanation:
A test can be defined as an examination or quiz given to a student (pupil) during an academic calendar in order to measure or determine his or her intelligence. It is usually graded based on a set of defined grades or scores.
The key characteristics of a well-designed test includes the following;
I. Standardization: it is important that test is set based on certain criteria and acceptable rules within the education community and curriculum.
II. Reliability: the questions contained in a test should be credible and backed by correct answers.
III. Validity: the test questions should be genuine and authentic across board.
Basically, a Self-Quiz is a form of test which is aimed at assessing or measuring the knowledge of a self quiz taker (user) such as a student or pupil.
This ultimately implies that, Self-Quiz avail an end users the opportunity to self-assess his or her knowledge of what he or she might have learned over a specific period of time.
However, any result or score obtained through a Self-Quiz count for nothing with respect to final grade or gaining admission into the university.
In the future, will training
and education become
more or less desirable?
To young children and students it'll be less desirable as they just want to play, I mean this is a natural characteristic of children so there's nothing to blame on them, but to young adults like college students and also parents, it's likely to be more desirable as they want their children to have a bright future through studying hard and landing themselves in good jobs. however, to some parents they might find it less desirable as they do not want their children to have pressure or and form of stress since it might still be the strawberry generation in the future.
10. Question
Which statement is true about computer security?
Answer:
they cannot share your privacy with others without your concern
A ___________ consists of a large number of network servers used for the storage, processing, management, distribution, and archiving of data, systems, web traffic, services, and enterprise applications.
Answer:
Data center
Explanation:
A network service provider can be defined as a business firm or company that is saddled with the responsibility of leasing or selling bandwidth, internet services, infrastructure such as cable lines to both large and small internet service providers.
Generally, all network service providers, internet service providers and most business organizations have a dedicated building or space which comprises of a large number of computer systems, security devices, network servers, switches, routers, storage systems, firewalls, and other network associated devices (components) typically used for remote storage, processing, management, distribution, and archiving of large amount of data, systems, web traffic, services, and enterprise applications.
Furthermore, there are four (4) main types of data center and these includes;
I. Managed services data centers.
II. Cloud data centers.
III. Colocation data centers.
IV. Enterprise data centers.
9. Which is an example of a function?
(1 Point)
=A1 +A2
=SUM(A1:A3)
=ADD(A1:A3)
Answer: i'd make a guess, not answer probably, but A1 +A2?
Explanation: it has plus sign?
Answer: SUM(A1:A3)
Explanation:
1. What is document formatting? Give significance of speller and thesaurus of word processing package.
Answer:
hope it is helpful to you
stay safe, happy and healthy
Formatted the text in a document can draw the reader's attention to specific parts of a document and it also emphasize important information. In the word file, a person may have several options for adjusting the text, including font, size, and color.
What is Document formatting?Document formatting can be referred to as the way in which a document is laid out on the page, it is the way in which it looks and is visually organized and it addresses all the things such as font selection, font size and presentation like bold or italics font, spacing, margins, alignment, columns, indentation, and lists.
Document formatting is the mechanics of how the words appear on the page or the document. A well formatting document is consistent, and it is correct in terms of meeting any stated requirements, and easy to be read by anyone.
Learn more about Document formatting here:
https://brainly.com/question/21934838
#SPJ2
Write an application that prompts a user for two integers and displays every integer between them. Display There are no integers between X and Y if there are no integers between the entered values. Make sure the program works regardless of which entered value is larger.
Answer:
x = int(input("Enter an integer: "))
y = int(input("Enter another integer: "))
if x > y:
for number in range(y+1, x):
print(number, end=" ")
elif y > x:
for number in range(x+1, y):
print(number, end=" ")
else:
print("There are no integers between {} and {}".format(x, y))
Explanation:
*The code is in Python.
Ask the user to enter the two integers, x and y
Since we want our program to run regardless of which entered value is larger, we need to compare the numbers to be able to create the loop that prints the numbers.
Check if x is greater than y. If it is, create a for loop that iterates from y+1 to x-1 and print the numbers
Otherwise, check if y is greater than x. If it is, create a for loop that iterates from x+1 to y-1 and print the numbers
If none of the previous part is executed, print that there are no integers between
Todd Wallace works as the chief knowledge officer for Pennsylvania Lumber Company. He has been given the responsibility to create a product or service that will bring an added value to its customers to increase the company's revenue. Todd determines that the best value he can add is by creating a service that offers free next day shipping on any order over $50. Where in the value chain is Todd adding value?
a. The primary value activity inbound logistics
b. The primary value activity marketing and sales
c. The primary levy outbound logistics
Answer:
c. The primary levy outbound logistics.
Explanation:
Todd Wallace has identified a marketing strategy and has introduced a levy on outbound logistics for its customers. It has introduced a campaign for its customer free shipping on an order of $50 or above.
TRUE or FALSE: CSS is used to style web pages.
Answer:
true
Explanation:
HTML is the structure and CSS is the design
Consider the following class definitions.public class Bike{private int numWheels = 2;// No constructor defined}public class EBike extends Bike{private int numBatteries;public EBike(int batteries){numBatteries = batteries;}}The following code segment appears in a method in a class other than Bike or EBike.EBike eB = new EBike(4);Which of the following best describes the effect of executing the code segment?А. An implicit call to the zero-parameter Bike constructor initializes the instance variable numwheels. The instance variable numBatteries is initialized using the value of the parameter batteries.
B. An implicit call to the one-parameter Bike constructor with the parameter passed to the EBike constructor initializes the instance variable numwheels. The instance variable numBatteries is initialized using the value of the parameter batteries. C. Because super is not explicitly called from the EBike constructor, the instance variable numWheels is not initialized. The instance variable numBatteries is initialized using the value of the parameter batteries.
D. The code segment will not execute because the Bike class is a superclass and must have a constructor. E The code segment will not execute because the constructor of the EBike class is missing a second parameter to use to initialize the numWheels instance variable.
Answer:
The answer is "Option A".
Explanation:
Please find the complete program in the attached file.
The given program includes a super-class Bike having a private integer numWheels parameter. The class EBike inherits the class Bike, EBike comprises one parameter function Object() which utilizes its variable number of the private integer Battery level of the battery parameter and the wrong choice can be defined as follows:
In choice B, it is wrong since there is no constructor with a single argument in the Bike class.
In choice C, it is wrong since there no need to call the base class constructor with the super keyword.
In choice, D is wrong because there no need to create a constructor of the base class.
In choice, E is wrong because it does not require the second EBike constructor parameter.
The statement that best describes the effect of executing the code segment is (a) an implicit call to the zero-parameter Bike constructor initializes the instance variable numwheels. The instance variable numBatteries is initialized using the value of the parameter batteries.
Given that the following object is defined in another class (say the Main class)
EBike eB = new EBike(4);
Also, the class Bike is a super class of the class EBike, where Ebike inherits the properties of class Bike.
It means that:
Option (a) is correct.
This is so, because:
An implicit call of one parameter to class cannot be used, as in option B.It is not necessary to call the Bike class, as in option C.It is not necessary to create a constructor of the EBike class, as in option D.Read more about classes at:
https://brainly.com/question/24532559
difrent between computer and computer system
Answer:
hope it helps..
Explanation:
a computer exists in a single place and does a primitive set of functions. A computer system combines a computer with many other things to perform a complex set of functions. It can also exist in a single place, but it may exist in many places at the same time.
HAVE A NICE DAY
True or false altering iso will affect the area of focus in a photo
in
6) which device can not be shared
network?
Answer:
mouse cannot be shared on network
Debug the recursive reverseString method, which is intended to return the input String str reversed (i.e. the same characters but in reverse order).
Use the runner class to test this method but do not write your own main method or your code will not be graded correctly.
public class U10_L2_Activity_One
{
public static String reverseString(String str)
{
if (str.length() < 0)
{
return str;
}
s = reverseString(str.substring(2)) + str.substring(0,1);
}
}
Runner's code (don't change):
import java.util.Scanner;
public class runner_U10_L2_Activity_One
{
public static void main(String[] args)
{
System.out.println("Enter string:");
Scanner scan = new Scanner(System.in);
String s = scan.nextLine();
System.out.println("Reversed String: " + U10_L2_Activity_One.reverseString(s));
}
}
Answer:
Explanation:
The following modified code correctly uses recurssion to reverse the string that was passed as a parameter to the reverseString method. A test output using the runner class can be seen in the attached image below.
import java.util.Scanner;
class U10_L2_Activity_One {
public static String reverseString(String str) {
if (str.isEmpty()) {
return str;
}
return reverseString(str.substring(1)) + str.charAt(0);
}
}
class runner_U10_L2_Activity_One
{
public static void main(String[] args)
{
System.out.println("Enter string:");
Scanner scan = new Scanner(System.in);
String s = scan.nextLine();
System.out.println("Reversed String: " + U10_L2_Activity_One.reverseString(s));
}
}
Write a program that reads in 10 numbers and displays the number of distinct numbers and the distinct numbers in their input order and separated by exactly one space (i.e., if a number appears multiple times, it is displayed only once). After the input, the array contains the distinct numbers. Here is a sample run of the program.
Answer:
Explanation:
The following code is written in Python. It creates a for loop that iterates 10 times, asking the user for a number every time. It then checks if the number is inside the numArray. If it is not, then it adds it to the array, if it is then it skips to the next iteration. Finally, it prints the number of distinct numbers and the list of numbers.
numArray = []
for x in range(10):
num = input("Enter a number")
if int(num) not in numArray:
numArray.append(int(num))
print("Number of Distince: " + str(len(numArray)))
for num in numArray:
print(str(num), end = " ")
List the invoice number and invoice date for each invoice that was created for James Gonzalez but that does not contain an invoice line for Wild Bird Food (25lb).
Answer:
Derive FROM invoice_transaction, invoice_details, item_details
and JOIN customer_details ON (invoice_transaction.CUST_ID = customer_details.CUST_ID AND customer_details.FIRST_NAME = 'James' AND customer_details.LAST_NAME = 'Gonzalez')
Explanation:
The following details will be there in the invoice
item_details rep_details invoice_details customer_details invoice_transactionDerive FROM invoice_transaction, invoice_details, item_details
and JOIN customer_details ON (invoice_transaction.CUST_ID = customer_details.CUST_ID AND customer_details.FIRST_NAME = 'James' AND customer_details.LAST_NAME = 'Gonzalez')
Create an array using the makeRandomArray method, then take a start time using System.currentTimeMillis(). Next, run the array through one of the sort methods in the Sorter class. Finally, record the end time. Subtract the start time from the end time and print out the results. You will test each of the 3 sorts.
Required:
Is the fastest sort always the same?
2- Write aC+ program that calculates the sum of all even numbers from [1000,2000], using the while loop.
Answer:
#include <iostream>
using namespace std;
int main() {
int n = 1000;
int sum = 0;
while(n <= 2000) {
sum += n;
n += 2;
}
cout << "sum of even numbers in [1000..2000] = " << sum << endl;
}
Explanation:
This will output:
sum of even numbers in [1000..2000] = 751500