The code defines two classes, Course and OfferedCourse, with methods to set and get the course number and title, the instruct course title, and class time. The main function creates two instances of the OfferedCourse class and sets their attributes. Finally, it prints out the information for both courses.
What is the python code for OfferedCourse?
class Course:
def __init__(self):
self.courseNumber = ""
self.courseTitle = ""
def set_courseNumber(self, courseNumber):
self.courseNumber = courseNumber
def set_courseTitle(self, courseTitle):
self.courseTitle = courseTitle
def get_courseNumber(self):
return self.courseNumber
def get_courseTitle(self):
return self.courseTitle
class OfferedCourse(Course):
def __init__(self):
super().__init__()
self.instructorName = ""
self.term = ""
self.classTime = ""
def set_instructorName(self, instructorName):
self.instructorName = instructorName
def set_term(self, term):
self.term = term
def set_classTime(self, classTime):
self.classTime = classTime
def get_instructorName(self):
return self.instructorName
def get_term(self):
return self.term
def get_classTime(self):
return self.classTime
def main():
course1 = OfferedCourse()
course1.set_courseNumber("ECE287")
course1.set_courseTitle("Digital Systems Design")
course1.set_instructorName("Mark Patterson")
course1.set_term("Fall 2018")
course1.set_classTime("WF: 2-3:30 pm")
course2 = OfferedCourse()
course2.set_courseNumber("ECE387")
course2.set_courseTitle("Embedded Systems Design")
course2.set_instructorName("Mark Patterson")
course2.set_term("Fall 2018")
course2.set_classTime("WF: 2-3:30 pm")
print("Course Information: Course Number: {} Course Title: {}".format(course1.get_courseNumber(), course1.get_courseTitle()))
print("Instructor Name: {} Term: {} Class Time: {}".format(course1.get_instructorName(), course1.get_term(), course1.get_classTime()))
print("\n")
print("Course Information: Course Number: {} Course Title: {}".format(course2.get_courseNumber(), course2.get_courseTitle()))
print("Instructor Name: {} Term: {} Class Time: {}".format(course2.get_instructorName(), course2.get_term(), course2.get_classTime()))
if __name__ == '__main__':
main()
To know more about such Python code, Check out:
https://brainly.com/question/28379867
#SPJ4
.
Make a zine rather than a blog if: A. you want a large, unlimited audience. B. you want to use links in your work. C. you want readers to interact with your work. D. you want a physical copy of your work.
A.
do you want a physical copy of your work
Answer:
A
Explanation:
you want a large, unlimited audience.
When programming in the MakeCode Arcade interface, why would you select
one of the buttons in the bottom right corner of the screen?
In the MakeCode Arcade interface, buttons in the bottom right corner of the screen are typically selected to change the display mode between code blocks and JavaScript. This allows the user to switch between a visual, block-based interface for writing code and a text-based interface for writing JavaScript code.
How does the MakeCode arcade's code leaping work?To position the sprite in the game's center, add an A button event. To make the sprite "jump" (move) 15 pixels, add a B button event.
Therefore, the "code drawers" in the editor's center are where the blocks are kept. A Position variable in MakeCode is a special type of variable that stores three numbers that identify a particular place in three dimensions. These values are referred to as X, Y, and Z coordinates. This feature provides greater flexibility and control over the code, allowing the user to write code using their preferred method.
Learn more about MakeCode from
https://brainly.com/question/29354598
#SPJ1
Answer:
B.
To zoom into the code so it appears larger
Explanation:
The following text is encoded in rot13. "Qba'g gel gb or yvxr Wnpxvr. Gurer vf bayl bar Wnpxvr. Fghql pbzchgref vafgrnq." - Wnpxvr Puna Decode it, and paste the decoded text here: * How can I decide rot13
Answer: "Don't try to be like Jackie. There is only one Jackie. Study computers instead." - Jackie Chan
Explanation:
(a) An unordered list of 20 cars is a combination of 20 cars from this car dealership where the order does not matter, that is to say that if two lists include the same 20 cars they are considered to be the same unordered lists. How many unordered lists of 20 cars can be created in which no car is displayed more than once?
There has recently been high demand for wheat and wheat-based products in the United States. To cash in on this boom, a farmer devotes every field on his farm to growing wheat for four years in a row.
The above practice is not sustainable because too much pressure is being exerted on the soil and this will trigger very poor yields subsequently.
What is the explanation for the above response?It is not sustainable to continually cultivate the same crop in a single area due to the eventual depletion of soil quality. The repeated growth and harvest of identical crops can remove vital substances from the land, leaving it barren and useless over time.
This depletion may result in reduced yields or even erosion, harming agricultural productivity and local ecosystems.
To protect soil health and maintain sustainability in farming practices, periodic rotation of different crops and allowing sufficient space between plantings is necessary to promote nutrient replenishment.
Learn more about sustainable operations at:
https://brainly.com/question/28177847
#SPJ1
Full Question:
Although part of your question is missing, you might be referring to this full question:
Explain why the practice described in the following scenario is NOT sustainable.
There has recently been high demand for wheat and wheat-based products in the United States. To cash in on this boom, a farmer devotes every field on his farm to growing wheat for four years in a row.
What color model should Joe use if he will be using an offset printing press?
Answer:
The color model used for an offset printing press should involve cyan, magenta, yellow and black. The combination of this creates a black color.
Offset printing doesn’t involve the direct contact of the ink with the paper. The ink usually comes in contact first with a rubber cylinder after which the cylinder makes the necessary imprints on the paper.
.
Where should you select to create a bibliography citation source?
A. At the end of the text you want to cite
B. At the top of the page
C. At the beginning of the text you want to cite
D. At the bottom of the page
What is weather today in new york
Answer:
Explanation:
Today May, 5 Friday 2023 the weather today in New York is around:
Which of the following is the best example of a purpose of e-mail?
rapidly create and track project schedules of employees in different locations
easily provide printed documents to multiple people in one location
quickly share information with multiple recipients in several locations
O privately communicate with select participants at a single, common location
Answer:
The best example of a purpose of email among the options provided is: quickly share information with multiple recipients in several locations.
While each option serves a specific purpose, the ability to quickly share information with multiple recipients in different locations is one of the primary and most commonly used functions of email. Email allows for efficient communication, ensuring that information can be disseminated to multiple individuals simultaneously, regardless of their physical location. It eliminates the need for physical copies or face-to-face interactions, making it an effective tool for communication across distances.
Explanation:
What is the disadvantage of using programs to help you build a website if you have little or no understanding of markup languages?.
Write an algorithm to find the sum of all even numbers up to given number?
Answer:
in python:
n = int ( input ( "Pick a number" ) )
total = 0
for num in range ( 0, n+1, 2 ) :
total = total + num
print ( total )
Explanation
this algorithm will calculate the sum of all even number from 0 till the number that was inputed by the user. *the reason why there is an n+1 is because in python, the number entered will not be counted. for example if there is an input of 25, this will calculate the sum of even integers from 0 to 24. so we add 1 which will get 26. so if there is an input of 25, the code will solve it from 0 to 25.
NEED HELP ASAP!!!!!!
When designing an algorithm, which statement is used to check if a certain criterion is met?
A.
iteration
B.
loop
C.
conditional
D.
flowchart
E.
pseudocode
Answer:
"Option C: Conditional" is the correct answer
Explanation:
Let us see all the options one by one.
As far as iteration and loop is considered, both are almost same. Loops are used for repetitions in an algorithm. Loops have iterations.
Conditional statements are used to control the flow of a program or algorithm.
One task is done if the condition is true and an alternative is done if the condition is wrong.
Hence,
"Option C: Conditional" is the correct answer
Answer:
C
Explanation:
java question
please provide with answer and explanation
Using the codes in computational language in JAVA it is possible to write a code that write a method the parameter arraylist hold a class.
Writting the code:import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;
public class {
public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
ArrayList<String> agenda = new ArrayList();
agenda.add("Juca Bala;11 1111-1111");
agenda.add("Marcos Paqueta;22 2222-2222");
agenda.add("Maria Antonieta;33 3333-3333");
agenda.add("Antônio Conselheiro;44 4444-4444");
int i;
See more about JAVA at brainly.com/question/18502436
#SPJ1
Referring to narrative section 6.4.1.1. "Orders Database" in your course's case narrative you will:
1. Utilizing Microsoft VISIO, you are to leverage the content within the prescribed narrative to develop an Entit
Relationship Diagram (ERD). Make use of the 'Crow's Foot Database Notation' template available within VISIC
1.1. You will be constructing the entities [Tables] found within the schemas associated with the first letter of
your last name.
Student Last Name
A-E
F-J
K-O
P-T
U-Z
1.2. Your ERD must include the following items:
All entities must be shown with their appropriate attributes and attribute values (variable type and
length where applicable)
All Primary keys and Foreign Keys must be properly marked
Differentiate between standard entities and intersection entities, utilize rounded corners on tables for
intersection tables
●
.
Schema
1 and 2 as identified in 6.4.1.1.
1 and 3 as identified in 6.4.1.1.
1 and 4 as identified in 6.4.1.1.
1 and 5 as identified in 6.4.1.1.
1 and 6 as identified in 6.4.1.1.
.
The following is a description of the entities and relationships in the ERD -
CustomersProductOrdersOrder Details How is this so?Customers is a standard entity that stores information about customers, such as their name, address,and phone number.Products is a standard entity that stores information about products, such as their name, description, and price.Orders is an intersection entity that stores information about orders, such as the customer who placed the order,the products that were ordered, andthe quantity of each product that was ordered.Order Details is an intersection entity that stores information about the details of each order,such as the order date, the shipping address, and the payment method.The relationships between the entities are as follows -
A Customer can place Orders.An Order can contain Products.A Product can be included inOrders.The primary keys and foreign keys are as follows -
The primary key for Customers is the Customer ID.The primary key for Products is the Product ID.The primary key for Orders is the Order ID.The foreign key for Orders is the Customer ID.The foreign key for Orders is theProduct ID.The foreign key for Order Details is the Order ID.The foreign key for Order Details is the Product IDLearn more about ERD at:
https://brainly.com/question/30391958
#SPJ1
Design a pseudo code that determines if a given number is even or odd number
The pseudocode determines if a given number is even or odd by checking if it's divisible by 2 and then prints the respective result.
Here's a simple pseudocode to determine if a given number is even or odd:
Input: number
Output: "Even" if the number is even, "Odd" if the number is odd
if number is divisible by 2 with no remainder then
Print "Even"
else
Print "Odd"
end if
This pseudocode checks whether the given number is divisible by 2. If it is, it prints "Even" since even numbers are divisible by 2. Otherwise, it prints "Odd" since odd numbers are not divisible by 2.
Learn more about pseudocode here:
https://brainly.com/question/17102236
#SPJ7
HELP ASAP PLZ PLZ PLZTegan is playing a computer game on her smartphone and the battery is getting low. When she goes to charge her phone, she notices that the cord is broken. What can Tegan do to solve her problem?
Plug in the smartphone to charge.
Put tape around the broken part of the cord.
Ask a trusted adult for help replacing the cord.
Use the laptop charger instead.
Answer:
3rd choice
Explanation:
please help me I mark you brilliant thanks
Answer:
B attaches to C, and C goes into A. (Sequence: A, then insert C into A, then insert B into C.)
Explanation:
You can quite literally get the answer from treating it like a puzzle. There is only 1 solution you can have, and they are marked with shapes. This is also the correct solution to clear the text box with button2 on click.
I need help with my previous question please
xamine the following output:
Reply from 64.78.193.84: bytes=32 time=86ms TTL=115
Reply from 64.78.193.84: bytes=32 time=43ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=47ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=73ms TTL=115
Reply from 64.78.193.84: bytes=32 time=46ms TTL=115
Which of the following utilities produced this output?
The output provided appears to be from the "ping" utility.
How is this so?Ping is a network diagnostic tool used to test the connectivity between two network devices,typically using the Internet Control Message Protocol (ICMP).
In this case, the output shows the successful replies received from the IP address 64.78.193.84,along with the response time and time-to-live (TTL) value.
Ping is commonly used to troubleshoot network connectivity issues and measureround-trip times to a specific destination.
Learn more about utilities at:
https://brainly.com/question/30049978
#SPJ1
Write a program that takes an integer list as input and sorts the list into descending order using selection sort. The program should use nested loops and output the list after each iteration of the outer loop, thus outputting the list N-1 times (where N is the size of the list).
Important Coding Guidelines:
Use comments, and whitespaces around operators and assignments.
Use line breaks and indent your code.
Use naming conventions for variables, functions, methods, and more. This makes it easier to understand the code.
Write simple code and do not over complicate the logic. Code exhibits simplicity when it’s well organized, logically minimal, and easily readable.
Ex: If the input is:
20 10 30 40
the output is:
[40, 10, 30, 20]
[40, 30, 10, 20]
[40, 30, 20, 10]
Ex: If the input is:
7 8 3
the output is:
[8, 7, 3]
[8, 7, 3]
Note: Use print(numbers) to output the list numbers and achieve the format shown in the example.
Answer:
Here's a program that implements the requested selection sort in descending order with the specified guidelines:
def selection_sort_descending(numbers):
# Iterate through the list
for i in range(len(numbers) - 1):
max_index = i
# Find the index of the maximum element in the remaining unsorted part of the list
for j in range(i + 1, len(numbers)):
if numbers[j] > numbers[max_index]:
max_index = j
# Swap the maximum element with the current element
numbers[i], numbers[max_index] = numbers[max_index], numbers[i]
# Print the list after each iteration
print(numbers)
# Example usage
input_list = [20, 10, 30, 40]
selection_sort_descending(input_list)
# Another example usage
input_list2 = [7, 8, 3]
selection_sort_descending(input_list2)
Explanation:
This program takes a list of integers and sorts it in descending order using the selection sort algorithm. It also outputs the list after each iteration of the outer loop, as requested.
An ISP is considering adding additional redundant connections to its network. Which of the following best describes why the company would choose to do so?
Answer:
Redundant networks are generally more reliable.
Explanation:
The complete question is in this brainly link;
https://brainly.com/question/18302186
This is based on knowing the importance of a redundant network.
C. Redundant networks are more reliable
A redundant network is one that helps to increase the reliability of a computer system. Now, this is possible because the more critical the ISP NETWORK is, the more important it will be for the time it takes to resolve from a fault would be reduced. This implies that, by adding one redundant device to their connection, the time it will take to resolve from a fault would be drastically reduced and this will lead to a far more reliable system.Thus, redundant networks are more reliable.
Read more at; brainly.com/question/17878589
wite a short essay recalling two instance, personal and academic, of when you used a word processing software specifically MS Word for personal use and academic work
I often use MS Word for personal and academic work. Its features improved productivity. One use of MS Word was to create a professional resume. MS Word offered formatting choices for my resume, like font styles, sizes, and colors, that I could personalize.
What is MS WordThe software's tools ensured error-free and polished work. Using MS Word, I made a standout resume. In school, I often used MS Word for assignments and research papers.
Software formatting aided adherence to academic guidelines. Inserting tables, images, and citations improved my academic work's presentation and clarity. MS Word's track changes feature was invaluable for collaborative work and feedback from professors.
Learn more about MS Word from
https://brainly.com/question/20659068
#SPJ1
ventana de imagen de photoshop
Photoshop's main window components include the title bar, the menu bar, the state bar, the floating panels or palettes, and the options bar. The window to the...
What is an example of a component?
Parts of Photoshop's main window include the title bar, menu bar, state bar, floating panels or palettes, and the options bar. The window for the main document also includes the options bar.
Component examples include a single button on a graphical user interface, a tiny interest calculator, and an interface to a database management. /kmpo.nnt/ C1. a part that integrates with other parts to produce something bigger: television, airplane, computer components. Components can be placed on several servers in a network and communicate with one another for needed services. Vehicle electrical parts are provided by the factory.
To know more about window visit:-
https://brainly.com/question/13502522
#SPJ1
Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.
import java.util.Scanner; public class RecursiveCalls { public static void backwardsAlphabet(char currLetter) { if (currLetter == 'a') { System.out.println(currLetter); } else { System.out.print(currLetter + " "); backwardsAlphabet((char)(currLetter - 1)); } } public static void main (String [] args) { Scanner scnr = new Scanner(System.in); char startingLetter; startingLetter = scnr.next().charAt(0); /* Your solution goes here */ } }
Answer:
Following are the code to method calling
backwardsAlphabet(startingLetter); //calling method backwardsAlphabet
Output:
please find the attachment.
Explanation:
Working of program:
In the given java code, a class "RecursiveCalls" is declared, inside the class, a method that is "backwardsAlphabet" is defined, this method accepts a char parameter that is "currLetter". In this method a conditional statement is used, if the block it will check input parameter value is 'a', then it will print value, otherwise, it will go to else section in this block it will use the recursive function that prints it's before value. In the main method, first, we create the scanner class object then defined a char variable "startingLetter", in this we input from the user and pass its value into the method that is "backwardsAlphabet".
In which of the following situations must you stop for a school bus with flashing red lights?
None of the choices are correct.
on a highway that is divided into two separate roadways if you are on the SAME roadway as the school bus
you never have to stop for a school bus as long as you slow down and proceed with caution until you have completely passed it
on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school bus
The correct answer is:
on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school busWhat happens when a school bus is flashing red lightsWhen a school bus has its flashing red lights activated and the stop sign extended, it is indicating that students are either boarding or exiting the bus. In most jurisdictions, drivers are required to stop when they are on the opposite side of a divided highway from the school bus. This is to ensure the safety of the students crossing the road.
It is crucial to follow the specific laws and regulations of your local jurisdiction regarding school bus safety, as they may vary.
Learn more about school bus at
https://brainly.com/question/30615345
#SPJ1
5 Give bottom-up parses for the following input strings and grammars: Input: 000111 . Grammar: S→ 0S1|01 • Input: aaa*a++ • Grammar S→ SS + [SS - la
A bottom-up parse is a parsing technique that starts with the input string and builds the parse tree from the bottom up, constructing larger subtrees as it goes. Here are the bottom-up parses for the given input strings and grammar:
Input: 000111
Grammar: S→ 0S1|01
Parse:
S → 0S1 → 00S11 → 000111
Input: aaa*a++
Grammar: S→ SS + [SS - la
What is a Bottom-up Parse?In a bottom-up parse, the parser starts with the individual symbols in the input and combines them into larger structures, until the complete parse tree is built.
The process of building the parse tree from the bottom up is done by applying a set of production rules from a grammar, to reduce the input string to its smallest possible constituent parts.
Learn more about Input Strings:
https://brainly.com/question/16240868
#SPJ1
Which part of the Result block should you evaluate to determine the needs met rating for that result
To know the "Needs Met" rating for a specific result in the Result block, you should evaluate the metadata section of that result.
What is the Result blockThe assessment of the metadata section is necessary to determine the rating of "Needs Met" for a particular outcome listed in the Result block.
The metadata includes a field called needs_met, which evaluates the level of satisfaction with the result in terms of meeting the user's requirements. The needs_met category usually has a score between zero and ten, with ten implying that the outcome entirely fulfills the user's demands.
Learn more about Result block from
https://brainly.com/question/14510310
#SPJ1
Make sure your animal_list.py program prints the following things, in this order:
The list of animals 1.0
The number of animals in the list 1.0
The number of dogs in the list 1.0
The list reversed 1.0
The list sorted alphabetically 1.0
The list of animals with “bear” added to the end 1.0
The list of animals with “lion” added at the beginning 1.0
The list of animals after “elephant” is removed 1.0
The bear being removed, and the list of animals with "bear" removed 1.0
The lion being removed, and the list of animals with "lion" removed
Need the code promise brainliest plus 100 points
Answer:#Animal List animals = ["monkey","dog","cat","elephant","armadillo"]print("These are the animals in the:\n",animals)print("The number of animals in the list:\n", len(animals))print("The number of dogs in the list:\n",animals.count("dog"))animals.reverse()print("The list reversed:\n",animals)animals.sort()print("Here's the list sorted alphabetically:\n",animals)animals.append("bear")print("The new list of animals:\n",animals)
Explanation:
Digital on a smart phone means the camera is actually zooming in on the photo itself not the subject that you are shooting true or false
Answer:
the answer is true
Explanation:
true
Answer:
false
Explanation:
i hope it helps (*^▽^*)
Which properties of the word "readability” changed?
The properties of the word "readability” that has changed are;
Its caseIts colorIts sizeIts styleWhat is readability?The term readability is known to be the ease that any given reader do feel when they are said to understand any kind of written text.
Note that In natural language, the readability of text is one that is based on its content as well as the presentation and it entails its font size, line height, character spacing, and others.
Note that it also entails:
The Speed of perceptionIts Visibility, etc.Therefore, The properties of the word "readability” that has changed are;
Its caseIts colorIts sizeIts styleLearn more about readability from
https://brainly.com/question/3923453
#SPJ1