Read it backwords. it helps look for spelling errors.
Hi! I'm a Digital Marketer Intern at hotels.ng and I have a moderate knowledge on programming.
First, your question is not very explanatory. The term "view" is often used in back-end web development. A view is simply a Python function that takes a Web request and returns a Web response.
But I'm not sure this is what you want, so I'll just go ahead and write a python function involving class to return the total number of credits taken by a student.
I'll answer this question using Python.
class student(object):
credits = None
year = None
def num_credits(self):
#get credit value
self.credits = input("Enter the total number of credits: " )
pass
def getYear(self):
self.year = input("Enter current year: ")
pass
def tot_credits(self):
TotalCredits = tempTotalCredits + self.num_credits
print "Your total credits are :"+" "+str(TotalCredits)
Answer:
The major characteristics of computers are the following:
Speed : A powerful computer is capable of executing about 3 million calculations per second.
Accuracy : A computer's accuracy is consistently high; if there are errors, they are due to errors in instructions given by the programmer.
Reliability : The output generated by the computer is very reliable as long as the data is reliable.
Memory/Storage Capacity : The computer can store large volumes of data and makes the retrieval of data an easy task.
Versatility: The computer can accomplish many different things. It can accept information through various input-output devices, perform arithmetic and logic operations, generate a variety of outputs in a variety of forms, etc.
Automation: Once the instructions are fed into computer it works automatically without any human intervention.
Diligence: A computer will never fail to perform its task due to distraction or laziness.
Convenience: Computers are usually easy to access, and allow people to find information easily that without a computer would be very difficult.
Flexibility: Computers can be used for entertainment, for business, by people who hold different ideals or who have varied goals. Almost anyone can use a computer, and computers can be used to assist with almost any goal.
<em>I hope it helps you!!!!</em>
Answer:
import random
def simulate_observations():
#this generates an array of 7 numbers
#between 0 and 99 and returns the array
observations = random.sample(range(0, 100), 7)
return observations
#here,we call the function created above and print it
test_array = simulate_observations()
print(str(test_array))
A program that initializes a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading” are the usage of namespace std;int main().
<h3>What is a vector software program?</h3>
Vector images software program permits customers to layout and manages pc photos the usage of geometric and mathematical commands, instead of clicks and strokes as utilized in drawing software program. Vector photos created the usage of those applications may be scaled indefinitely with out dropping quality.
- #include
- #include
- #include
- the usage of namespace std;
- int main()
- ;
- vector::iterator it;
- for (it = vs.begin(); it != vs.end(); it++)
- string tmp;
- while (cin.get()!='n')
- for (it = vs.begin(); it != vs.end(); it++)
- }
Read more about the vector :
brainly.com/question/25705666
#SPJ1