def main():
name = input("Enter your name: ")
age = input("Enter your age: ")
color = input("Enter you favorite color: ")
birth = input("Enter your birthday: ")
print(name + " is "+age+" year(s) old.")
print(name + "'s favorite color is "+color)
print(name + " was born on "+ birth)
main()
I hope this helps! The code runs perfectly fine for me.
In this exercise we want to write a pseudocode, so this way we will find how:
the code is in the attached image
What is pseudocode?Pseudocode is a generic way of writing an algorithm, using a simple language (native to whoever writes it, so that it can be understood by anyone) without the need to know the syntax of any programming language.
To make it simpler to copy the code is below as:
def main():
name = input("Enter your name: ")
age = input("Enter your age: ")
color = input("Enter you favorite color: ")
birth = input("Enter your birthday: ")
print(name + " is "+age+" year(s) old.")
print(name + "'s favorite color is "+color)
print(name + " was born on "+ birth)
main()
See more about pseudocode at brainly.com/question/13208346
diving points hhhhhhhhfhfhfhfhhdddddddddddddddddddddddddd
Answer: thanks
Explanation:
please choose the correct option please tell fast
it might be bottom left
I need some asap pls
Students must read passages from different school subjects and then draw conclusions or make comparisons and generalizations on the aspire _____ test.
O A. writing
O B. Reading
O C. English
O D. Math
Answer:
reading test
Explanation:
you have to READ passages and come up with answers for the questions having to do with the passages you read.
Write and execute a single query that will isplay all of the information in the Customer, Rentals, and Rentcost tables in a single resultset. Be sure to display each field only once in your output. Order your results in ascending order by Customer.CID and Rentcost.Make .You should have 12 rows and 12 columns in your result.In this lab, you will be working with the follwing tables in SQL Server. To create and populate these tables in SQL Server, run the queries that are listed below these tables.CUSTOMERCIDCNameAgeResid_CityBirthPlace1BLACK40ERIETAMPA2GREEN25CARYERIE3JONES30HEMETTAMPA4MARTIN35HEMETTAMPA5SIMON22ERIEERIE6VERNON60CARYCARY7WILSON25DENVERAUSTINIn the CUSTOMER table, CName is the primary key.RENTALSRtnCIDMakeDate_OutPickupDate_returnedReturn_city11FORD10-Oct-2010CARY12-Oct-2010CARY21GM01-Nov-2009TAMPA05-Nov-2009CARY31FORD01-Jan-2009ERIE10-Jan-2009ERIE42NISSAN07-Nov-2010TAMPA53FORD01-Oct-2010CARY31-Oct-2010ERIE63GM01-Aug-2009ERIE05-Aug-2009ERIE74FORD01-Aug-2010CARY12-Aug-2010ERIE85GM01-Sep-2010ERIEIn the table RENTALS, Rtn is the primary key and represents the rental number. CID is a foreign key in the RENTALS table and refers to the CID in CUSTOMER; Pickup is the city where the car was picked up; and Date_Out is the date in which the car was rented out. Return_city is the city where the car was returned. Date_returne is the date in which the vehicle was returned. If the car has not yet been returned, Date_returned and Return_city are null.RENTCOSTMAKECOSTFORD30GM40NISSAN30TOYOTA20VOLVO50The RENTCOST table stores the rates pe day of each vehicle. The primary key of this table is MAKE, and it is a foreign key in the RENTALS table.create database AutoRentalsgouse AutoRentalsgocreate table Customer(CID integer,CName varchar(20),Age integer,Resid_City varchar(20),BirthPlace varchar(20),Constraint PK_Customer Primary Key (CID))insert Customerselect 1, 'Black', 40, 'Erie', 'Tampa'insert Customerselect 2, 'Green', 25, 'Cary', 'Erie'insert Customerselect 3, 'Jones', 30, 'Hemet', 'Tampa'insert Customerselect 4, 'Martin', 35, 'Hemet', 'Tampa'insert Customerselect 5, 'Simon', 22, 'Erie', 'Erie'insert Customerselect 6, 'Vernon', 60, 'Cary', 'Cary'insert Customerselect 7, 'Wilson', 25, 'Denver', 'Austin'create table Rentcost(Make varchar(20),Cost float,constraint PK_Rentcost Primary Key (Make))insert Rentcostselect 'Ford', 30insert Rentcostselect 'GM', 40insert Rentcostselect 'Nissan', 30insert Rentcostselect 'Toyota', 20insert Rentcostselect 'Volvo', 50Create table Rentals(Rtn integer,CID integer,Make varchar(20),Date_Out smalldatetime,Pickup varchar(20),Date_returned smalldatetime,Return_city varchar(20),Constraint PK_Rentals Primary Key (Rtn),Constraint FK_CustomerRentals Foreign Key (CID) References Customer,Constraint FK_RentCostRentals Foreign Key (Make) References Rentcost)insert Rentalsselect 1, 1, 'Ford', '10/10/2010', 'Cary', '10/12/2010', 'Cary'insert Rentalsselect 2, 1, 'GM', '11/1/2009', 'Tampa', '11/5/2009', 'Cary'insert Rentalsselect 3, 1, 'Ford', '1/1/2009', 'Erie', '1/10/2009', 'Erie'insert Rentalsselect 4, 2, 'Nissan', '11/7/2010', 'Tampa', null, nullinsert Rentalsselect 5, 3, 'Ford', '10/1/2010', 'Cary', '10/31/2010', 'Erie'insert Rentalsselect 6, 3, 'GM', '8/1/2009', 'Erie', '8/5/2009', 'Erie'insert Rentalsselect 7, 4, 'Ford', '8/1/2010', 'Cary', '8/12/2010', 'Erie'insert Rentalsselect 8, 5, 'GM', '9/1/2010', 'Erie', null, null
Answer:
SELECT DISTINCT Customer.CID , Customer.CName , Customer.Age , Customer.Resid_City , Customer.BirthPlace , Rentals.Rtn, Rentals.data_out. Rentals.pickup, Rentals.data_returned, Rental.return_city, RentCost.make, RentCost.cost
FROM Customer
JOIN Rentals ON Customer.CID = Rentals.CID
JOIN RentCost ON Rentals.make = RentCost.make.
ORDER BY Customer.CID AND RentCost.make
Explanation:
The returned output is a 12-field table, in ascending order of the customer's id and the make of the car rented.
Which element in the script is used to provide guidance for actors regarding a character’s attitude, tone or intent?
Answer:
Action
Explanation:
Action is one of the script element that describes the tone, pace, sight, and deep feelings or experiences of a script.
In other words, it guides the actors on which of his or her character's attitude, tone, or intent can be seen or heard. Through the Action element, the scene is defined based on how it should make the audience feel through the actors.
Answer:
Parenthetical
Explanation:
that is the real answer, mark as brainliest please.
my assignment was in iCEV, if you have this class, you got it right
Why is it important to have good naming conventions for files?
A. To make it easier to identify them
B. To easily apply passwords to them
C. To have Windows security applied
D. To store more than 256 files in one location
PLS HELP
Award: 15pts
Answer:
To make it easier to identify them
Explanation:
types of email resources. Examples
To display data in a certain manner, like alphabetical order, is called
analyzing
buffering
filtering
sorting
Answer:
D. Sorting
hope this helps!
Rebecca has downloaded a trial version of Microsoft Office. But she finds that she cannot complete all of her assignments because some functions she needs are not included in the trial version. To what type of software does this application belong?
A. Open source software
B. Shareware
C. Custom software
Answer:
B. Shareware
Explanation:
This trial version of microsoft office that she downloaded belongs to the shareware software. As a Shareware software, it can be downloaded for free. But it is copyrighted by the person who owns it or the developer. It is free for use for a given range or period of time. And unlike the full suite, all of its functionalities would not work since it is just a trial version.
Technician A says that misaligned electrode tips could cause a resistance spot weld to be oval shaped. Technician B says that excessive current-on time could cause a resistance spot weld to be oval shaped. Who is right?
Answer:
Technician A
Explanation:
When the electrode is aligned, it has an oval and oblong weld, characterized by an oval figure with a length greater than its width. This causes several different results in the process and care must be taken if the results presented are not the intended ones.
Write a program that reads in numbers separated by a space in one line and displays distinct numbers
Answer:
Here is the Python program:
def distinct(list1):
list2 = []
for number in list1:
if number not in list2:
list2.append(number)
for number in list2:
print(number)
numbers =(input("Enter your numbers: ")).split()
print("The distinct numbers are: ")
distinct(numbers)
Explanation:
The above program has a function named distinct that takes a list of numbers as parameter. The numbers are stored in list1. It then creates another list named list2. The for loop iterates through each number in list1 and if condition inside for loop check if that number in list1 is already in list2 or not. This is used to only add distinct numbers from list1 to list2. Then the second for loop iterates through each number in list2 and displays the distinct numbers in output.
To check the working of the above method, the numbers are input from user and stored in numbers. Then these numbers are split into a list. In the last distinct method is called by passing the numbers list to it in order to display the distinct numbers. The program along with its output is attached in a screenshot.
Here's my solution in python:
nums = set(input("Enter numbers: ").split())
print("The distinct numbers are:")
for x in nums:
print(x)
Software that is decided to intentionally causing harm to a device, server, or network is 
a. Outware
b. Loggerware
c. Attackware
d. Malware
It's D, so it's Malware
What are the role of social networking sites in our community
Answer:
please mark me as a brainliest
Explanation:
Rules for all social networking
share several times a day,but space
out your post every few hours.
Respond to all comments as quickly as you can.
Know the art of the hashtag....
Always keep the 80/20rule!...
Use first person plural when talking
about your company brand (we,us)
A(n) ________ statement specifies the value that is returned from the function when the function ends.
Answer:
The appropriate answer is "return ". A further explanation is given below.
Explanation:
The return seems to be a statement or declaration throughout the programming that instructs a program to consider leaving the subroutine as well as then go up later to either the return address. The return address wherever another subroutine becomes named is found. This statement has either been returning and perhaps return value in certain computer languages.How did I write the following five things in Python?
Ask the user for their first name
Say “Hello” followed by the user’s first name
Ask the user how old they are
Tell the user how old they will be in 10 years and in 20 years
Tell the user how old they were 5 years ago
name = input("What is your first name? ")
print("Hello "+name)
age = int(input("How old are you? "))
print("In 10 years, you will be "+str(age+10))
print("In 20 years, you will be "+str(age+20))
print("5 years ago you were "+str(age - 5))
I hope this helps!
The program is an illustration of a sequential program.
Sequential programs are programs that do not require loops or conditional statements
The Python programThe program written in Python, is as follows:
#This gets input for first name
firstName = input("Your first name: ")
#This prints Hello, followed by the first name
print("Hello "+firstName)
#This gets input for age
yourAge = int(input("Your age: "))
#The next three lines print the ages in 10, 20 and -5 years time
print("You will be "+str(yourAge+10)+" in 10 years")
print("You will be "+str(yourAge+20)+" in 20 years")
print("You were "+str(yourAge-5)+", 5 years ago")
Read more about programs at:
https://brainly.com/question/24833629
#SPJ2
Which input device is a part of a tablet computer?
A. printer
B. touch screen
C.
mouse
D. Scanner
Answer:
I think it's B. touch screen
Explanation:
Answer:
B. touch screen
Explanation:
Do you think the divide will fade in time? Write your opinion
Answer:
This may not be helpful but it really depends on your opinion! I do believe it will but please follow the honor code :)
Explanation:
YES!
1. find the network address for 172.22.49.252/17
2. find the last valid assignable host address on the network that host 172.22.4.129 with mask 255.255.255.192 is a part of
3.find the first and last address of the subnet containing 192.167.25.25/16
4.what is the broadcast address of 10.75.96.0/20?
Answer:
1. The network address for 172.22.49.252/17 is 172.22.0.0/17.
2. The last valid assignable host address of 172.22.4.129/26 is 172.22.4.190.
3. The first and last host address of 192.167.25.25/16 is 192.167.0.1 and 192.167.255.254.
4. The broadcast address of 10.75.96.0/20 is 10.75.111.255
Explanation:
Subnetting in networking is the process of managing the use of host addresses and subnet masks of a network IP address. For example, the IP address "172.22.49.252/17" is a class B address that receives an extra bit from the third octet which changes its subnet-mask from "255.255.0.0" to "255.255.128.0". with this, only 32766 IP addresses are used, with the network address of "172.22.0.0/17".
In a business environment, who is responsible for testing a website? the webmaster the website supervisor the customers who visit the site the search engine director
Answer:
the webmaster
Explanation:
please choose the correct answer please tell fast
Answer:
the answer might be 2......
what are your considerations in making a derivative ict content ti effectively communicate or present data or information?
matinong sagot pls :)
Answer:
1) Design
2)Content
Explanation:
The considerations in making a derivative ICT content to effectively
communicate or present data or information include the Design.
The design is what helps to portray and make the content more appealing and appropriate for the end users.
The content is the main body and it is vital in helping to provide the required information.
How can we work together to fix problems with our websites?
i think this is or what hihi
Explanation:
The value proposition, or mission statement, tells the visitor what you do and why you do it.
Put your value proposition on your home page, in your headline if possible. Add it to your blog or about page. Let the visitors know exactly what they will be getting if they hire you, buy your product, subscribe to your newsletter or read your blog.
What are two explanations of internet safety?
Answer:
It is important to be safe on the internet to protect yourself and those around you. The internet is a place where no mercy is held so it is up to us to make sure that we stay safe and never give out personal information. Make sure to report suspicious activity and always tell a trusted adult if you are feeling sceptical on anything because, its better to be safe than sorry!
if i use a screwdriver to insert a screw, what would the screwdriver be used as ?
Answer:
The screwdriver is being used as a wheel and axle
Explanation:
Question #5
How does the computer decide which path to follow in a selection control structure?
Answer:
to answer your question in my thoughts the material of the coding structure helps the software or the cpu translate or guide the programming .
Explanation:
Selection control structures describes the series of clearly defined rules or guidelines used to establish the decision a computer is expected to make .
Control structures may be conditionals which are executed based on a on a given condition which translates into a True or False values called booleans
These boolean values helps in decision making based on output obtained and thus defining the path to follow.
Therefore, the control structures are of huge importance in defining the sequence which is followed by the computer.
Learn more :https://brainly.com/question/20194760
answer this correct and get brainly
Using pseudocode, write an algorithm that someone else can follow.
Decide on a question to ask the user. Some ideas include:
What grade are you in?
What sport do you play?
Where did you go on vacation?
Use one variable to store the response.
Use one if-else statement to make a decision based on the user's input.
Display two messages; one for each condition (True and False).
Insert your pseudocode here: (you only need to do one)
Flowchart Write it out
Flowchart: Input leads to if statment. If true print response. if false print different response. Program ends. Get input:
If statement:
Print if true:
Print if false:
Part 2: Code the Program
Use the following guidelines to code your program.
Use the Python IDLE to write your program.
Using comments, type a heading that includes your name, today’s date, and a short description.
Set up your def main(): statement. (Don’t forget the parentheses and colon.)
Write one if-else statement using user input.
Include a print message for both conditions (True and False).
Conclude the program with the main() statement.
Follow the Python style conventions regarding indentation in your program.
Run your program to ensure it is working properly. Fix any errors you may observe.
When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE. When you submit your assignment, you will attach this Python file separately.
Part 3: Post Mortem Review (PMR)
Using complete sentences, respond to all the questions in the PMR chart.
Review Question Response
What was the purpose of your program?
How could your program be useful in the real world?
What is a problem you ran into, and how did you fix it?
Describe one thing you would do differently the next time you write a program.
Pseudocode:
import random
fetch user input on a lucky number
insert input into variable - "response"
new variable, random = randint
condition to check wheather random is our response
display results
Python Code:
import random
def main():
response = int(input("Guess my lucky number, its between 1 and 100: "))
lucky_number = random.randint(1,100)
if response == lucky_number:
print(f"Wow you're right, it is {lucky_number}")
else:
print("Sorry, Try Again")
main()
Reminder:
intended for python3 as i included the format f
also it could be done without the import, just manually insert a number
i'll leave the post mortum to you
Select the correct answer.
Jasmine is a software developer. Her upcoming project requires building system software for a manufacturing plant. The software should be
powerful and fast and provide high performance. Which programming language should she use while programming the manufacturing plant's
system software?
OA PHP
OB. Python
C C++
OD. Java
Answer: C++
Explanation: it is correct on PLATO
when you open a browser window it opens in a _____________.
A.menu
B.folder
C.field
D.window.
If you have any questions regarding to the question let me know in the comment section and I will answer them.
Stay safe and healthy.
Thanks!!!!
write a 2d array c program that can capture marks of 15 students and display the maximum mark, the sum and average
Answer:
#include <stdio.h>
int MaxMark(int* arr, int size) {
int maxMark = 0;
if (size > 0) {
maxMark = arr[0];
}
for (int i = 0; i < size; i++) {
if (arr[i] > maxMark) {
maxMark = arr[i];
}
}
return maxMark;
}
int SumMarks(int* arr, int size) {
int sum = 0;
for (int i = 0; i < size; i++) {
sum += arr[i];
}
return sum;
}
float AvgMark(int* arr, int size) {
int sum = SumMarks(arr, size);
return (float)sum / size;
}
int main()
{
int student0[] = { 7, 5, 6, 9 };
int student1[] = { 3, 7, 7 };
int student2[] = { 2, 8, 6, 1, 6 };
int* marks[] = { student0, student1, student2 };
int nrMarks[] = { 4, 3, 5 };
int nrStudents = sizeof(marks) / sizeof(marks[0]);
for (int student = 0; student < nrStudents; student++) {
printf("Student %d: max=%d, sum=%d, avg=%.1f\n",
student,
MaxMark(marks[student], nrMarks[student]),
SumMarks(marks[student], nrMarks[student]),
AvgMark(marks[student], nrMarks[student]));
}
return 0;
}
Explanation:
Here is an example using a jagged array. Extend it to 15 students yourself. One weak spot is counting the number of marks, you have to keep it in sync with the array size. This is always a problem in C and would better be solved with a more dynamic data structure.
If you need the marks to be float, you can change the types.
how does video conferencing help in our situation during this pandemic
Answer:
It allows people to interact with each other remotely.
Explanation:
No spread of disease.
THE VIDEO CONFERENCING IS GOOD FOR THIS PANDEMIC BECAUSE THERE WILL BE NO SPREAD OF VIRUS BUT THE ONLY THING IS ZOOM GETS STUCK, VOICE IS LAGGING AND VIDEO IS GETTING STUCK