Answer:
The correct answers are:
1. Outputs of sequential circuit depend solely on current input values
3. sequential circuit can have memory
5. Outputs of combinational circuit depend solely on current input values
8. Combinational circuits cannot have memory
Explanation:
Combinational circuits produce an output based solely on the current input values, without any regard for past input values or previous circuit behavior. These circuits do not have any memory element.
On the other hand, sequential circuits produce an output based on both the current input values and past input values, which are stored in some form of memory element. Therefore, sequential circuits have memory and produce output based on the input and the state of the circuit.
So, options 2, 4, 6, and 7 are incorrect.
Which types of networks cover large geographical areas such as several states? PAN
MAN
LAN
WAN
MAN
Explanation:
Metropolitan Area Network
Local Area Network
Wide area Network
How to square a number in java.
Answer:
num**2
Explanation:
To square a number in Java, you just take the number and use two asterisks (**) to denote an exponent, and then connect a 2 to it.
For example, if your number is 5:
5**2 in Java means 5^2, which is 25.
Just like how 5**3 in Java means 5^3.
Hope this helps.
Challenge Lab 11-1: Change Virtual Memory Settings in Windows In this lab, you will change virtual memory settings on a Windows 10 computer. You want to make your virtual memory a fixed size and, if possible, move it to another physical disk on your computer. Get your instructor’s approval if you plan to use classroom computers for this lab. Set the virtual memory to 1.5 times the size of physical RAM and move the page file to a different disk. If you don’t have a second disk, move the page file to a different volume. (If you have only one volume, don’t move the page file.)Answer the following questions: Discussion Questionsa. How did you check the amount of RAM installed on your computer?b. What did you have to do before you could change the virtual memory settings?c. What are the advantages of moving the page file to a different disk?
Answer:
To answer the questions:
a. To check the amount of RAM installed on a Windows 10 computer, you can follow these steps:
Press the Windows key + R to open the Run window.Type "msinfo32" and press Enter.The System Information window will open, displaying information about your system, including the amount of RAM installed.b. Before you can change the virtual memory settings, you may need to make sure that you have administrator privileges on the computer. You can do this by right-clicking on the Start button and selecting "Computer Management" from the context menu. From there, you can click on "Local Users and Groups" and then "Users," and double-click on your user account to open the Properties window. Make sure that your account is listed as an administrator in the "Member Of" tab.
c. There are several advantages to moving the page file to a different disk:
Improved performance: If the page file is on a different disk from the one that the operating system and applications are installed on, it can reduce the amount of disk activity on the main disk and improve overall system performance.Increased space: If you are running out of space on the main disk, moving the page file to a different disk can free up space on the main disk.Better reliability: If the page file is on a separate disk, it can reduce the risk of data loss in the event of a disk failure on the main disk.Enhanced security: If the page file is on a separate disk, it can be more difficult for unauthorized users to access sensitive data stored in the page file.Explanation:
In a university database that contains data on students,
professors, and courses: What views would be useful for a
professor? For a student? For an academic counselor?
In university database the views that would be useful for a professor is Course Roster View, Gradebook View, Course Schedule View. For student it would be Course Catalog View, Class Schedule View, Grades View. For academic counselor it would be Student Profile View, Degree Audit View, Academic Advising Notes View.
For a professor:
Course Roster View: A view that displays the list of students enrolled in the professor's courses. This view can provide essential information about the enrolled students, such as their names, contact details, and academic performance.Gradebook View: A view that allows the professor to access and update the grades of their students. This view can provide a convenient way for professors to track and manage student performance throughout the semester.Course Schedule View: A view that shows the professor's teaching schedule, including the dates, times, and locations of their classes. This view helps professors stay organized and plan their daily activities accordingly.For a student:
Course Catalog View: A view that provides information about available courses, including their titles, descriptions, prerequisites, and instructors. This view helps students explore and select courses for registration.Class Schedule View: A view that displays the student's schedule for the current semester, showing the dates, times, and locations of their enrolled classes. This view allows students to keep track of their class timetable and avoid scheduling conflicts.Grades View: A view that shows the student's grades and academic performance in each course they have taken. This view helps students monitor their progress, identify areas of improvement, and calculate their GPA.For an academic counselor:
Student Profile View: A view that presents comprehensive information about a specific student, including their personal details, academic history, enrolled courses, and any relevant notes or comments. Degree Audit View: A view that displays the student's progress towards completing their degree requirements. This view shows the courses the student has completed, the ones in progress, and the ones remaining. Academic Advising Notes View: A view that allows counselors to add and access notes or comments regarding their interactions and discussions with students. This view helps counselors maintain a record of important conversations and track the progress of their advising sessions.To learn more about database: https://brainly.com/question/518894
#SPJ11
A screen on Evelyn's cell phone can hold an odd or an even number of apps. If she has an odd number of apps, how can she arrange them on 2 screens?
To arrange an odd number of apps on two screens, Evelyn can put (N-1)/2 apps on one screen and 1 app on the other.
When Evelyn has an odd number of apps on her cell phone, she may encounter a challenge when trying to arrange them on two screens evenly. However, with a little creativity and strategic placement, she can find a solution.
Let's assume Evelyn has N apps, where N is an odd number. She can begin by placing (N-1)/2 apps on one screen. This screen will hold the majority of the apps, as it can accommodate an even number of them. Now, Evelyn is left with one app to place.
To address this, she can choose one of the apps from the first screen and move it to the second screen, making it uneven. This action leaves her with (N-1)/2 - 1 apps on the first screen and 1 app on the second screen. While this setup is not perfectly even, it ensures that all the apps are accounted for on both screens.
Alternatively, if Evelyn desires a more balanced arrangement, she can distribute the apps differently. She can place (N+1)/2 apps on one screen and (N-1)/2 apps on the second screen. This configuration ensures that the number of apps on each screen differs by only one.
In either case, Evelyn can prioritize her most frequently used or essential apps on the first screen, making them easily accessible. The second screen can hold less frequently used or secondary apps.
By employing these strategies, Evelyn can overcome the challenge of arranging an odd number of apps on two screens, allowing for efficient organization and easy access to all her applications.
Learn more about Odd Apps
brainly.com/question/32284707
#SPJ11
Yael would like to pursue a career where she helps design office spaces that are comfortable and help workers avoid injuries. What should she study? plsss help me with this question.
A. ergonomics
B. semantics
C. botany
D. genomics
The option that that Yael should study is A. Ergonomics.
What is the study about?Ergonomics is the scientific study of designing products, systems, and environments to optimize human comfort and health, including the design of office spaces.
Therefore, Yael could study ergonomics to gain the skills and knowledge necessary to design office spaces that are safe, efficient, and comfortable for workers. An ergonomist might work with architects, interior designers, and other professionals to ensure that the design of an office space takes into account the needs of the workers who will be using it.
Learn more about injuries from
https://brainly.com/question/19573072
#SPJ1
Which of the following Information Technology career fields generally requires the lowest level of education for an entry-level position? Information Services and Support Network System Administration Programming and Software Development Interactive Media
Answer:
The Information Technology career fields that generally requires the lowest level of education for an entry-level position would be Information Services and Support.
Explanation:
Answer:
A - Information Services and Support
Explanation:
I just did it
Can anyone help me with this question?
What are Object Query Languages?
Answer:
Object Query Languages (OQL) are query languages used to access, query, and manipulate data stored in an object-oriented database. OQL is similar to SQL, but it is tailored to the object-oriented model, allowing queries to be written in terms of objects and their relationships. OQL queries are commonly used to retrieve and modify data stored in an object-oriented database, as well as to perform operations such as creating and dropping objects and classes.
Go to this link: https://platform.breakoutedu.com/game/play/going-buggy-78#
And check you answer first!!! I’ll give brainliest!!! Plz help ASAP!
Answer:
a) Move straight -->
b) Turn left , arrow pointed in the down ward direction
c) Turn left <--
d) Turn right, arrow pointed in the up ward direction
e) Turn right -->
f) Turn left, arrow pointed in the up ward direction
g) Turn left <--
Explanation:
The correct set of symbol would be
a) Move straight -->
b) Turn left , arrow pointed in the down ward direction
c) Turn left <--
d) Turn right, arrow pointed in the up ward direction
e) Turn right -->
f) Turn left, arrow pointed in the up ward direction
g) Turn left <--
People who make money investing in the stock market.....
A) get certain tax breaks.
B) should sell quickly to avoid taxes.
C) have to pay a fee to keep a stock.
D) must pay taxes on profits.
The answer is D ^^^
Answer:
D must pay taxes on profits.
Explanation:
All of the following are examples of network operating systems EXCEPT ________.
A) Windows 10
B) Linux
C) macOS
D) MS-DOS
The examples of network operating systems are Windows 10, Linux, macOS except MS-DOS.
why are the MS-DOS example of net work operating system except?MS-DOS is a command-based system where commands are entered in the textual format. Hence, this is not an example of a network operating system. There are only a few systems compatible with this OS.
(A) Windows 10 is the release of the Windows OS. This is not the correct option because it is the perfect example of the specified one. It is used for embedded devices, computers, tablets, etc.
(B) This is not the correct option as an open-source could not be the network OS. Linux is made of the base component which is a kernel.
(C) This OS is similar to that of Linux but has a better interface. Mac OS is based on a UNIX derivative which contradicts the given statement of the OS. Hence, this option is not correct.
To learn more about net work operating system refers to;
brainly.com/question/4325836
#SPJ4
what will the value of x be after the following nested loop executes in matlab (enter a number)? x = 0 ; for r = 1 : 3 for c = 1 : 2 x = x c ; end end
The number of times the outer loop executes, which is 3. Therefore, x = 6.
What is outer loop execute?Outer loop is a type of looping structure in programming. It is used to execute a block of code a certain number of times. Outer loop is also known as the outermost loop because it is the loop that is the furthest out from the inner loop. It is typically used when you need to repeat a process multiple times, such as looping through a list of items. The outer loop is responsible for iterating over the entire list, while the inner loop is responsible for performing some kind of action on each item in the list. Outer loops are commonly used in programming languages such as Java, C#, and Python.
x will have a value of 6 after the nested loop executes. The value of x will increment by 2 every time the inner loop executes, and the inner loop will execute twice every time the outer loop executes, so the final value of x will be 2 times the number of times the outer loop executes, which is 3. Therefore, x = 6.
To learn more about outer loop execute
https://brainly.com/question/30919197
#SPJ4
Please provide an idea for both a personal project and a group
project. The scope needs to be reasonable in size, as the time to
complete the project and the resources will be limited. (you can
provid
A personal project idea is to create a personal finance tracker to track income and expenses. A group project idea is to create a community garden in a public space, requiring planning, planting schedules, and recruiting volunteers to provide fresh produce for the community.
Personal Project Idea:
Create a personal finance tracker: This project involves creating a spreadsheet or using a personal finance app to track income and expenses. The tracker should include categories for expenses such as rent, food, utilities, entertainment, and savings, as well as a budget for each category. The tracker can be customized to meet individual needs and can be used to identify areas where spending can be reduced and savings can be increased.
Group Project Idea:
Community garden project: This project involves creating a community garden in a public space such as a park or schoolyard. The project would require planning and organizing planting schedules, obtaining necessary supplies such as soil, seeds, and gardening tools, and recruiting volunteers to help with planting, maintenance, and harvesting. The garden can be used to provide fresh produce for the community and can also serve as an educational resource for local schools.
To know more about personal projects, visit:
brainly.com/question/32301757
#SPJ11
How would I add a play again feature to this RPS program in python using a while loop?
import random
choice = input("Enter Rock(R), Paper(P), or Scissors(S): ")
computer = random.randint(1, 3)
if computer == 1:
print("Computer played R.")
elif computer == 2:
print("Computer played P.")
else:
print("Computer played S.")
#Winning conditions
if computer == 1 and choice == "R":
print("Computer played Rock.")
print("Tie")
elif computer == 2 and choice == "P":
print("Computer played Paper.")
print("Tie")
elif computer == 3 and choice == "S":
print("Computer played Scissors.")
print("Tie")
elif computer == 1 and choice == "S":
print("Computer played Rock.")
print("You Lose")
elif computer == 2 and choice == "R":
print("Computer played Paper.")
print("You Lose")
elif computer == 3 and choice == "P":
print("Computer played Scissors.")
print("You Lose")
elif computer == 1 and choice == "P":
print("Computer played Rock.")
print("You Win")
elif computer == 2 and choice == "S":
print("Computer played Paper.")
print("You Win")
elif computer == 3 and choice == "R":
print("Computer played Scissor.")
print("You Win")
Answer:
import random
playAgain = True;
while playAgain == True:
choice = input("Enter Rock(R), Paper(P), or Scissors(S): ")
computer = random.randint(1, 3)
if computer == 1:
print("Computer played R.")
elif computer == 2:
print("Computer played P.")
else:
print("Computer played S.")
#Winning conditions
if computer == 1 and choice == "R":
print("Computer played Rock.")
print("Tie")
elif computer == 2 and choice == "P":
print("Computer played Paper.")
print("Tie")
elif computer == 3 and choice == "S":
print("Computer played Scissors.")
print("Tie")
elif computer == 1 and choice == "S":
print("Computer played Rock.")
print("You Lose")
elif computer == 2 and choice == "R":
print("Computer played Paper.")
print("You Lose")
elif computer == 3 and choice == "P":
print("Computer played Scissors.")
print("You Lose")
elif computer == 1 and choice == "P":
print("Computer played Rock.")
print("You Win")
elif computer == 2 and choice == "S":
print("Computer played Paper.")
print("You Win")
elif computer == 3 and choice == "R":
print("Computer played Scissor.")
print("You Win")
choice = input("Play Again?")
if(choice == "n"):
playAgain = False
else:
playAgain = True
Explanation:
Use a boolen variable and a while loop. The while loop will keep looping until it is false. In this case, I have it set up to keep looping unless the user enters n.
Tip: Make sure that all of the code is indented with the while loop.
convert the following decimal number into octal number-147
Answer:
The answer for your question is 223
code a statement that tests if the database named testdb exists.
To test if the database named `testdb` exists, the following statement in SQL can be used:```SHOW DATABASES LIKE 'testdb'```This statement searches for the `testdb` database in the list of databases available and returns a result if it exists. If the database exists, the output will include the name of the database, otherwise, no result will be returned.
The `LIKE` keyword is used to perform a pattern match search for the specified database name.The statement returns a list of databases whose names match the specified pattern. In this case, we are using `testdb` as the pattern to find the database with this name.
The `SHOW` keyword is used to display information about the database, in this case, the list of databases matching the pattern provided.To test if the `testdb` database exists, we can use the SQL statement `SHOW DATABASES LIKE 'testdb'`. This statement searches for the `testdb` database in the list of databases available and returns a result if it exists. If the database exists, the output will include the name of the database, otherwise, no result will be returned. The `LIKE` keyword is used to perform a pattern match search for the specified database name. The statement returns a list of databases whose names match the specified pattern. The `SHOW` keyword is used to display information about the database, in this case, the list of databases matching the pattern provided.
To Know more about database visit:
brainly.com/question/30163202
#SPJ11
Help plz
Write a set of pseudocode instructions to make a peanut butter and jelly sandwich, using
at least five steps. (5 points)
Answer: 1.) Collect the necessary ingredients and tools:
- jar of peanut butter
- jar of fruit jelly
- two slices of bread
- cutting board (larger that the combined surface areas of the slices of bread)
- butter knife
- tablespoon-sized spoon
2.) Place the cutting board on a stable surface, and the slices of bread side-by-side on the cutting board
3.) Open the jar of peanut butter.
4.) Using the spoon, scoop out 2 tablespoons of peanut butter and deposit in the center of one slice of bread [henceforth known as "Slice 1"].
5.) Using the knife, spread the peanut butter evenly across this side of Slice 1.
6.) Repeat steps 3-5, but with jelly instead of peanut butter and the slice of bread that is not Slice 1 [this second slice will henceforth be known to as "Slice 2"].
7.) Once Slice 1 and Slice 2 each have one side that is evenly coated with its respective spread (peanut butter or jelly), place Slice 2 on top of Slice 1 so that the spreads (peanut butter and jelly) are between the two slices and the externally-facing sides of each slice do not have spreads.
(ok so this is the best answer i can give u don't blame me if it's wrong)
which form of communication is extremely private
Which note-taking method quickly captures and organizes information?
mapping
Cornell
SQRW
recording
Answer:
c mapping
Explanation:
Mapping is a note-taking method that quickly captures and organizes information
What is mapping method in note-taking?Mapping is known to be s process where one can make use of their comprehension or concentration skills and then they can use in a note taking form.
In this method, it always linked each fact or idea to all other fact or idea. Mapping is known to be a kind of graphic representation of the work or all the contents of a lecture.
Learn more about mapping from
https://brainly.com/question/1425367
A(n) __________ is a user who has administrative responsibility for part or all of the database.
An administrator is a user who has administrative responsibility for part or all of the database.
An administrator is responsible for performing all the administrative tasks, including directing and performing all the activities related to maintaining a thriving database environment.
A database administrator also ensures that the organization’s databases and related applications work efficiently and functionally.
A database administrator should also ensure that data is readily available and protected from loss and corruption.
The administrator should additionally monitor the movement of data in the database.
The database administrator also ensures consistency, quality, and security of data in the database.
Therefore, a database administrator plays a significant role in the functionality and efficiency of a database.
#SPJ4
Help please, it would be much appreciated!
Answer:
Explanation:
ihave no idea
HELP PLEASE 100 POINTS
Use the drop-down menus to complete the steps to access the Compact & Repair tool.
1. Open the database.
2. Go to the
✔ Backstage
view.
3. Click Info and then_________
OR
1. Open the database.
2. Click the_____ tab.
3. In the Tools group, click ________
The program then reduces the size of the database.
Answer:
Explanation:
This is for MS Access:
1. Open the database.
2. Go to the
✔ Backstage
view.
3. Click Info and then__Compact and Repair__
OR
1. Open the database.
2. Click the__Database Tools__ tab.
3. In the Tools group, click ___Compact and Repair Database___
The program then reduces the size of the database.
Which method could be used to convert a numeric value to a string?
The method that could be used to convert a numeric value to a string is called "ToString()", which is a built-in function in many programming languages that converts a number to its string representation.
ToString() can be used in various programming languages like C#, Java, Python, etc., and it takes the numeric value as an input parameter and returns its string representation. The string representation of a number is a sequence of characters that correspond to the digits in the number, with an optional decimal point and sign.
The method also allows specifying the format of the resulting string, such as the number of decimal places or the use of scientific notation. This conversion is useful for displaying numbers as text or storing them in a text file.
Learn more about numeric value https://brainly.com/question/27922641
#SPJ11
9. What will help you determine the kinds of tools, equipment and utensil you will assemble, sanitize, inspect or check?
a. the kind of product to be produced
b. the method of food processing to be done
c. the raw materials to be processed
d. the availability of tools, equipment and utensils
Explanation:
b. the method of food processing to be done
One of the most basic agricultural tools is the tractor, which is designed to break up the soil in order to prepare it for planting
False
True
pls answer i need to turn it in today!!
In computing flowcharts how are decisions represented?
What is the command used most for decisions?
Answer:
See Explanation
Explanation:
How decisions are represented?
In flowcharts, decisions are represented using diamond shapes (see attachment)
Decisions could be conditional statement or repetition operations which may have the form of loops or iterations.
Either of theses are represented using the diamond shapes.
Take for instance:
To check if a is greater than b... Simply write if a > b i the diamond box
Command used for most decisions
Most decisions are conditional statements; hence, the if command is often used for decisions.
help
If we are looking at the predictor "car type," which can take on the values "sedan" "coupe" "truck" "suv" "van" how many binary decision variables would we need to code this data into a usable format?
If we are looking at the predictor "car type," which can take on the values "sedan" "coupe" "truck" "suv" "van", we would need 4 binary decision variables to code this data into a usable format.
A binary decision variable is a variable with only two possible values: 1 or 0. The variable is referred to as a binary variable, a binary indicator, or a 0-1 variable .The binary variable is used to answer yes/no questions. the binary variable " the binary variable is set to 0.To code the car type data into a usable format, we can use the binary decision variables.
We can use four binary variables to code the data into a usable format. We can use one variable for each category of car type. The values of the binary variables for the different categories are as follows:Sedan - 1000Coupe - 0100Truck - 0010SUV - 0001Using this format, if a car is a sedan, its binary decision variable would be set to 1000. If a car is a coupe, its binary decision variable would be set to 0100, and so on.
To know more about sedan visit:
https://brainly.com/question/24286177
SPJ11
Technology is the machinery and equipment developed from the application of
Answer:
Technology is the application of scientific knowledge for practical purposes, especially in industry. It involves advances in computer technology, machinery and equipment developed from the application of scientific knowledge and a branch of knowledge dealing with engineering or applied sciences.
Explanation:
Imagine you're planning a wedding, and you need to transport all your wedding guests from the ceremony to the reception. A bus can carry 40 passengers. Please write a program to input the names of the bride(s) and groom(s), and how many guests are coming to the wedding. Then output the names of the couple, followed by how many buses are needed, and the number of extra people you could carry with those buses (empty seats)
To begin with, let's start by writing a program that can take in the necessary inputs and perform the calculations we need.
For such more questions on Python
https://brainly.com/question/28675211
#SPJ11
PLEASE HELP!!!
I was trying to create a superhero class code, but i ran into this error
File "main.py", line 3
def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):
IndentationError: expected an indented block
Here is my actual code:
class superhero:
def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):
# Create a new Superhero with a name and other attributes
self.name = name
self.strengthPts = strengthPts
self.alterego = alterego
self.powers = powers
self.motto = motto
self.villain = villain
def addStrengthPts(self, points):
# Adds points to the superhero's strength.
self.strengthPts = self.strengthPts + points
def addname(self):
if(self.name == "Dr.Cyber"):
print("My hero's name is Dr.cyber!")
elif(self.name == "Mr.cyber"):
print("My hero's name is Mr.cyber!")
elif(self.name == "Cyber Guy"):
print("My hero's name is Cyber Guy!")
else:
print("My hero doesn't have a name")
def addalterego(self):
if(self.alterego == "John Evergreen"):
print("Dr.Cyber's alter ego is John Evergreen")
elif(self.alterego == "John Silversmith"):
print("Dr.Cyber's alter ego is John Silversmith.")
elif(self.alterego == "Johnathen Grey"):
print("Dr.Cyber's alter ego is Johnathen Grey.")
else:
print("Dr.Cyber Does not have an alter ego")
def addpowers(self):
if(self.powers == "flight, super strength, code rewrighting, electronics control, psychic powers"):
print(fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants.He can control surrounding electronics to do what he wants. He can move objects with his mind.")
else:
print(Fly. He can rewrite the genetic code of any object around him. he can move objects with his mind.")
def addmotto(self):
if(self.motto == "error terminated!"):
print("rewritting the code!")
else:
print("error eliminated!")
def addvillain(self):
if(self.villain == "The Glitch"):
print("Dr.Cyber's Arch nemisis is The Glitch.")
elif(self.villain == "The Bug"):
print("Dr.Cyber's Arch nemisis is The Bug.")
else:
print("Dr.Cyber has no enemies!")
def main():
newhero = superhero("Dr.Cyber", "John Evergreen", "fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants.He can control surrounding electronics to do what he wants. He can move objects with his mind.", "The Glitch", "error terminated!", "0")
print("My Superhero's name is " + newhero.name + ".")
print(newhero.name + "'s alter ego is " + newhero.alterego + ".")
print(newhero.name + " can " + newhero.powers + ".")
print(newhero.name + "'s arch nemisis is " + newhero.villain + ".")
print("when " + newhero.name + " fights " + newhero.villain + ", he lets out his famous motto " + newhero.motto + ".")
print(newhero.name + " defeated " + newhero.villain + ". Hooray!!!")
print(newhero.name + " gains 100 strengthpts.")
main()
PLEASE ONLY SUBMIT THE CORRECT VERSION OF THIS CODE!!! NOTHING ELSE!!!
Answer:
you need to properly indent it
Explanation:
align your codes
Mark the other guy as brainliest, I'm just showing you what he meant.
I'm not sure if that's all that's wrong with your code, I'm just explaining what he meant.
Answer:
def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):
# Create a new Superhero with a name and other attributes
self.name = name
self.strengthPts = strengthPts
self.alterego = alterego
self.powers = powers
self.motto = motto
self.villain = villain
def addStrengthPts(self, points):
# Adds points to the superhero's strength.
self.strengthPts = self.strengthPts + points
def addname(self):
if(self.name == "Dr.Cyber"):
print("My hero's name is Dr.cyber!")
elif(self.name == "Mr.cyber"):
print("My hero's name is Mr.cyber!")
elif(self.name == "Cyber Guy"):
print("My hero's name is Cyber Guy!")
else:
print("My hero doesn't have a name")
def addalterego(self):
if(self.alterego == "John Evergreen"):
print("Dr.Cyber's alter ego is John Evergreen")
elif(self.alterego == "John Silversmith"):
print("Dr.Cyber's alter ego is John Silversmith.")
elif(self.alterego == "Johnathen Grey"):
print("Dr.Cyber's alter ego is Johnathen Grey.")
else:
print("Dr.Cyber Does not have an alter ego")
def addpowers(self):
if(self.powers == "flight, super strength, code rewrighting, electronics control, psychic powers"):
print(fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants.He can control surrounding electronics to do what he wants. He can move objects with his mind.")
else:
print(Fly. He can rewrite the genetic code of any object around him. he can move objects with his mind.")
def addmotto(self):
if(self.motto == "error terminated!"):
print("rewritting the code!")
else:
print("error eliminated!")
def addvillain(self):
if(self.villain == "The Glitch"):
print("Dr.Cyber's Arch nemisis is The Glitch.")
elif(self.villain == "The Bug"):
print("Dr.Cyber's Arch nemisis is The Bug.")
else:
print("Dr.Cyber has no enemies!")
def main():
newhero = superhero("Dr.Cyber", "John Evergreen", "fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants. He can control surrounding electronics to do what he wants. He can move objects with his mind.", "The Glitch", "error terminated!", "0")
print("My Superhero's name is " + newhero.name + ".")
print(newhero.name + "'s alter ego is " + newhero.alterego + ".")
print(newhero.name + " can " + newhero.powers + ".")
print(newhero.name + "'s arch nemisis is " + newhero.villain + ".")
print("when " + newhero.name + " fights " + newhero.villain + ", he lets out his famous motto " + newhero.motto + ".")
print(newhero.name + " defeated " + newhero.villain + ". Hooray!!!")
print(newhero.name + " gains 100 strengthpts.")
main()