#include <iostream>
using namespace std;
int main ()
{
int num =0 ;
int points=0 ;
int pointss=0;
int term =0;
int passes =0;
cout<<"type number of "<<endl;
cin>> num;
for(int i =0;i<num;i++)
{
cout<<"type points "<<endl;
cin>>points;
pointss=points + pointss;
if(points>=60)
{
passes++;
}
}
cout<<"that are points: "<<endl;
cout<<pointss<<endl;
cout<<"that is num: "<<endl;
cout<<num<<endl;
cout<<"average: "<<endl;
cout<<pointss/num<<endl;
cout<<"Number of students who pass: "<<endl;
cout<<passes<<endl;
return 0;
}
In statistics, when a set of values is sorted in ascending or descending order, its median is the middle value. If the set contains an even number of values, the median is the mean, or average, of the two middle values. Write a function that accepts as arguments the following:
a. An array of integers
b. An integer that indicates the number of elements in the array
The function should determine the median of the array. This value should be returned as a double. (Assume the values in the array are already sorted.) You’ll create two arrays: one with three elements (e.g. 1, 3, 7) and one with four elements (e.g. 2, 4, 5, 9).
The program is an illustration of methods
What are function?Function are collections of named code blocks, that are executed when called or evoked.
The median functionThe median function written in Python, where comments are used to explain each line is as follows:
#This defines the function
def medianValue(myList, n):
#This determine the median element for odd list elements
if n%2 == 1:
medianElement = float(myList[int((n - 1)/2)])
#This determine the median element for even list elements
else:
medianElement = (float(myList[int(n/2)]) + float(myList[int(n/2) - 1]))/2
#This returns the median element
return medianElement
Read more about functions at:
https://brainly.com/question/26180959
What is the overall purpose of the app?
Answer:
To help students with homework and their education
Explanation:
Brainly is a Polish education technology company based in Kraków, Poland, with headquarters in New York City. It provides a peer-to-peer learning platform for students, parents, and teachers to ask and answer homework questions. In an ideal world, Brainly would be a supportive group learning environment where students could teach each other what they know. ... The point system can encourage students to give valuable answers, but points (and the "Brainliest" title) are awarded by the question asker, not an expert.
It's a rapid sign-up process and, if you're looking for answers for something specific, the search function is simple to use and gives instant gratification. We also like that you can quickly scan for verified answers, which have been vetted by Brainly expert volunteers and are determined to be correct and accurate.
Hope this helped! Have a nice day!
Please give Brainliest when possible!
:3
Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. The output of the program is every word in the list that contains the character at least once. For coding simplicity, follow each output word by a comma, even the last one. Add a newline to the end of the last output. Assume at least one word in the list will contain the given character. Assume that the list of words will always contain fewer than 20 words.
The program is an illustration of lists
What are lists?Lists are variables that are used to hold multiple values
The main programThe program written in Python, where comments are used to explain each line is as follows:
#This gets the integer
n = int(input())
#This gets the character
char = input()[0]
#This creates an empty list
MyList = []
#This following loop gets input for the list
for i in range(n):
MyList.append(input())
#This iterates through the list
for items in MyList:
#This checks if the character is in a list element
if char in items:
#If yes, the element is printed
print(items,end =", ")
Read more about lists at:
https://brainly.com/question/24833629
Although there are three well-known operating systems, the most common are Microsoft Windows and Mac OS. Discuss the similarities and differences between these two systems.
Answer:
There are very few similarities beyond some convergent features of their respective user interfaces. Their internal architecture is very different, differing from kernel models to shell integration to executable formats. A comprehensive list of similarities is neither possible nor useful, because it would consist mostly of obvious statements like "They are both operating systems" or "They both have graphical user interfaces, "They both include
Explanation:
How's that?
3. (A) Differentiate between RAM & ROM.
(B) What is a virtual memory and how it is different
from cache memory?
(C) Discuss Primary memory and different types of pri-
mary memory
4. (A) What is Mail Merge? Explain the process to create
Mail Merge
(B) What is chart in Ms - Excel? Discuss the creation
of various charts in Ms - Excel.
(C) Explain the process of making a power point pre-
sentation?
5. (A) What is Internet? Discuss how internet is useful in
Business?
(B) Write a detail note on search engines.
(C) Write short Notes on -
(1) Server
(ii) e-Paper
(iii) Domain Name.
Answer:
RAM Data can be changed while ROM its content can be read but cannot be changed during normal computer operations
what are the main technologies that have contributed to be growth and commercialization of the Internet
hope it helps have a good day
Difine Motherboard ~
[tex] \: \: [/tex]
Thanku ~~
Answer:
A motherboard is the main printed circuit board in general-purpose computers and other expandable systems. It holds and allows communication between many of the crucial electronic components of a system, such as the central processing unit and memory, and provides connectors for other peripherals.
In this exercise we have to use the knowledge about computers to define the motherboard so we can say that the main printed circuit board of a computer, which contains the central processing unit; logic board.
What is the motherboard definition?It is the system that unites all the components of a computer, allowing them to work in an organized way. Your piece has all the paths and networks that allow the exchange of information between all the others: processors, memories, storage systems, network card and everything else.
See more about motherboard at brainly.com/question/5563113
When using VLOOKUP we can search for information from more than one spreadsheet.
True or False
heyy man it's true for sure
Which three nodes are included in the response from the Text Moderation API?
Select all answers that apply.
1. Terms
2. IsImageAdultClassified
3. Classification
4. ReviewerResultTags
5. Expression
6. PII
Answer:
isimageadultclassified, classification and Reviewerresulttags
In your guessing game, you randomly chose a word from your word list. Complete the code to randomly choose an index found in the list.
import random
count = len(words)
wordIndex =
A. random.random(0,count)
B. random.random(0,count - 1)
C. random.randint(0,count)
D. random.randint(0,count - 1)
Answer:
the answer is D random.randint(0,count -1)
Explanation:
I took the assignment
Answer: random.randint(0,count - 1)
Explanation: Not necessarily answer D because Edge switches the order of the questions for everyone. Just know its random.randint(0,count - 1)
Pls pls answer
I will mark the Brainlyest
Answer:
Recipient
Explanation:
The recipient is the person that the email is sent to.
Pet information (derived classes)
The base class Pet has private data members petName, and petAge. The derived class Dog extends the Pet class and includes a private data member for dogBreed. Complete main() to:
create a generic pet and print information using PrintInfo().
create a Dog pet, use PrintInfo() to print information, and add a statement to print the dog's breed using the GetBreed() function.
Ex. If the input is:
Dobby
2
Kreacher
3
German Schnauzer
the output is:
Pet Information:
Name: Dobby
Age: 2
Pet Information:
Name: Kreacher
Age: 3
Breed: German Schnauzer
________________________________________________
the given code:
Main.cpp:
#include
#include
#include "Dog.h"
using namespace std;
int main() {
string petName, dogName, dogBreed;
int petAge, dogAge;
Pet myPet;
Dog myDog;
getline(cin, petName);
cin >> petAge;
cin.ignore();
getline(cin, dogName);
cin >> dogAge;
cin.ignore();
getline(cin, dogBreed);
// TODO: Create generic pet (using petName, petAge) and then call PrintInfo
// TODO: Create dog pet (using dogName, dogAge, dogBreed) and then call PrintInfo
// TODO: Use GetBreed(), to output the breed of the dog
}
___________________________________________________________________________________________
Pet.h
#ifndef PETH
#define PETH
#include
using namespace std;
class Pet {
protected:
string petName;
int petAge;
public:
void SetName(string userName);
string GetName();
void SetAge(int userAge);
int GetAge();
void PrintInfo();
};
#endif
_________________________________________________________________________--
Dog.h
#ifndef DOGH
#define DOGH
#include
#include "Pet.h"
class Dog : public Pet {
private:
string dogBreed;
public:
void SetBreed(string userBreed);
string GetBreed();
};
#endif
____________________________________________________________
Pet.cpp
#include "Pet.h"
#include
#include
using namespace std;
void Pet::SetName(string userName) {
petName = userName;
}
string Pet::GetName() {
return petName;
}
void Pet::SetAge(int userAge) {
petAge = userAge;
}
int Pet::GetAge() {
return petAge;
}
void Pet::PrintInfo() {
cout << "Pet Information: " << endl;
cout << " Name: " << petName << endl;
cout << " Age: " << petAge << endl;
}
__________________________________________________________________
Dog.cpp
#include "Dog.h"
#include
#include
using namespace std;
void Dog::SetBreed(string userBreed) {
dogBreed = userBreed;
}
string Dog::GetBreed() {
return dogBreed;
}
Answer:
I think the answer is Breed: German Schnauzer don't listen too mee
________________________________________________
the given code:
Main.cpp:
#include
#include
#include "Dog.h"
don't listen
Explanation:
A web application is configured to run on multiple servers. When a webserver goes down, the user connected to it needs to re-login to the application. What could be the likely cause for this behavior
There are different uses of the computer. The likely cause for this behavior is Browser cookies not shared between servers.
What are browser cookies?The computer is often used for browsing or surfing the internet. Cookies are known to be files that has been formed by websites when you visit it.
They are known to make your online experience very easy by saving your browsing information. With the advent of cookies, sites often keep you signed in, and also remember the site you visit most.
See options below
a) Session state maintained by individual servers and not shared among other servers.
b) Browser cookies not shared between servers.
c) Server IP address changes
d) The user has to re-authenticate due to security reasons.
e) Browser using sticky session cookies
Learn more about Browser cookies from
https://brainly.com/question/14102192
why are women more exposed to mass media?
Women are more exposed to mass media because their voice is of high frequency which is clear to listen to, and it's soothing and people think it is a safer app or knowledge than that provided by males.
What is mass media?Mass media is the media responsible for broadcasting or speaking information that reaches a large number or audience. It includes radio, advertisement, movies, magazines, T.V, etc.
Women are more exposed to these mass media because of their voice, which is said to be soothing, and more generous. Their voice is technology friendly.
Thus, due to the fact that women's voices have a higher frequency, are easier to hear, are calming, and are perceived as offering a safer source of information than men's, they are more exposed to the media.
To learn more about mass media, refer to the link:
https://brainly.com/question/14974921
#SPJ2
2. Discuss the advantages and disadvantages of using the Symbolic Math Toolbox to generate LTI transfer functions.
Symbolic Math Toolbox is important or organizing and visualizing the dataset.
What is Symbolic Math Toolbox?It is a toolbox that provides the functions for solving equations, plotting graphs, and manipulating specific math equations.
This toolbox can help run and share some math code as well as different computations.
The advantages of the toolbox include,
It helps summarizes large data sets using frequency distribution Data set are presented in an organized and easy to read format. Dataset that is large can also be visualized and this helps to see the trend of the data set.Disadvantages include,
Loss of some information on individual data while adjusting datasetSome information can also be lost while organizing data using classesLearn more on Symbolic Math Toolbox here,
https://brainly.com/question/17856245
Which step of the problem-solving process did the farmer use in order to figure out what success would look like?
Answer:
supply and demand
Explanation:
As a farmer you rely on demand of food therefore when the market demands you supply and make profit for example during a particular season lets say grapes demand is high so you grow grapes inorder to supply and make profit therefore implementing this strategy the farmer can succeed.
What is introduction to total quality management?
Evaluation of the concepts of quality.
Answer:
Total Quality Management, TQM, is a method by which management and employees can become involved in the continuous improvement of the production of goods and services. It is a combination of quality and management tools aimed at increasing business and reducing losses due to wasteful practices.
Explanation:
Please Convert This code into C program.............
public class PrintAllSubArrays {
public void printSubArrays(int [] arrA){
int arrSize = arrA.length;
//start point
for (int startPoint = 0; startPoint
//group sizes
for (int grps = startPoint; grps <=arrSize ; grps++) {
//if start point = 1 then
//grp size = 1 , print 1
//grp size = 2, print 1 2
//grp size = 3, print 1 2 3 ans so on
for (int j = startPoint ; j < grps ; j++) {
System.out.print(arrA[j] + " ");
}
System.out.println();
}
}
}
public static void main(String[] args) {
int [] arrA = {1,2,3, 4};
new PrintAllSubArrays().printSubArrays(arrA);
}
}
Answer:
find the emoji challenge
Explanation:
1234
What does this mean startUp()
Answer: a startup or start-up is a company or project undertaken by an entrepreneur to seek, develop, and validate a scalable business model.
Explanation:
1. What is a situation—other than developing software—where it would be useful to follow the software development life cycle? Describe what this process might look like.
2. In this unit, you learned about four types of operating systems. Imagine that you had been hired as a consultant to a new start-up that was going to create and sell a new emergency medical device. Which kind of operating system would you recommend to them? As part of your answer, explain why the other three types of operating systems would be less appropriate.
3. Describe three different software applications that you have used recently.
4. In this unit, you learned about procedural, object-oriented, and event-driven programming. Describe an example of each one in commonly used software.
5. Many people express frustration when they have to contact customer support for help with their software. Describe two things that companies can do to make customer support a more pleasant experience for its users.
There are different kinds of software. Requirement Gathering and also designing is another stage where it would be useful to follow the software development life cycle.
Why is important to know the software development life cycle?The software development life cycle is said to be one that increase the value to software development as it helps to give an efficient structure and method to create software applications.
Windows operating systems is the one I would recommend to them as it is much easier to operate than other types.
The three different software applications that you have used mostly are Electronic Health Record (EHR) Software, Medical database software and Medical imaging software. They are often used in the healthcare system on daily basis.
Event-driven programming software is the often used in graphical user interfaces and other kinds of system applications such as JavaScript web applications. They are based on carrying out some task in response to user input.
Companies can make customer support a more better by actively to them especially their complains and make sure it is handled immediate. They should also list out the cases of high priority and work on them.
Learn more about Developing software from
https://brainly.com/question/22654163
Complete the steps for scheduling a meeting.
1. Open a new Meeting window.
2. Enter attendees in the
box.
3. Click Scheduling Assistant.
4. Select
5. Check free/busy time.
6. Click
Answer:
To, Attendees, Send
Explanation:
Just did it.
Components of a network
Answer:
4 basic components
Explanation:
Networks are comprised of four basic components: hardware, software, protocols and the connection medium. All data networks are comprised of these elements, and cannot function without them.
Drawing board rough surfaces needs _____.
A. cleaning
B. oiling
C. tightening
D. sharpening
NEED ANSWER ASAP
Answer: d
Explanation: because like sand paper when you rub against it while drawing it creates rough surfaces.
Many keyboard shortcuts, such as Ctrl+C, Ctrl+X, and Ctrl+V, are universal, and can be used in a wide variety of applications.
A True
B) False
Answer: A) True
Explanation:
According to Goog|e, "Keyboard shortcuts are also universal—meaning once you learn them, you can use many of the same shortcuts in a variety of applications. For example, you can use the shortcuts that copy and paste text in a word processor application to perform the same tasks in emails, blogs, or other applications."
I hope this helps!
why is the statement if x=y not working in python
Answer:
x=1
Explanation:
Re-run your installer (e.g. in Downloads, python-3.8. 4.exe) and Select "Modify". Check all the optional features you want (likely no changes), then click [Next]. Check [x] "Add Python to environment variables", and [Install]
What microphone is this
Answer:
Thats looks like a Sennheiser Pro Audio Wireless Microphone System, Black (MKE600) . also known as Sennheiser MKE 600
Where you can get it:
https://www.amazon.com/Sennheiser-MKE600-Camcorder-Shotgun-Microphone/dp/B00B0YPAYQ
Youre welcome. (pls give brainlest thanks)
Processor speed is a measurement of what?
How fast the ROM loads and executes the operating system
How fast the chip processes the instructions it receives in binary code
How fast the power supply processes alternating current into direct current
How fast data travels along the internal and external buse
Answer:the number of cycles your cpu executes per second
Explanation:
A strong west wind is keeping the sea breeze from moving onto Florida’s eastern
shore. How will this wind affect storm activity?
A. It will keep it offshore.
B. It will push it south.
C. It will allow it to move west.
D. It will not allow storms to form
There are different rates of temperature. The wind affect storm activity as It will allow it to move west.
What is the relationship of the sea and land breeze to the temperature?It is better to note that the higher the temperature differences between land and sea, the much stronger the land breezes and sea breezes will become.
The Storm surges happens when strong winds push high amounts of water onto land. The Stronger west winds can hinder the sea breeze front from going onshore. Hurricanes do move from east to west.
The average hurricane moves from east to west
learn more about wind from
https://brainly.com/question/392723
write a program to input a number and print the largest and smallest number using c++.
please help fast
Answer:
#include<stdio.h>
#include<limits.h>
void main()
{
int min,max,i,n,num;
min = INT_MAX;
max = INT_MIN;
printf("How many numbers do you want to enter: ");
scanf("%d",&n);
for(i=0; i<n; i++)
{
printf("Number-%d: ",i+1);
scanf("%d",&num);
if(num>max) max = num;
if(num<min) min = num;
}
printf("Smallest number = %d\nLargest number = %d",min,max);
}
Explanation:
If the programmer translates the following pseudocode to an actual programming language, a syntax error is likely to occur. Can you find the error?
Declare String 1stPrize
Display "Enter the award for first prize." Input 1stPrize
Display "The first prize winner will receive ", 1stPrize
Answer:
if, then, else
Explanation:
you specified that if you enter award for 1st prize then it'll display 1st prize but you didnt specify what will happen if user does not enter 1st prize or what happens if 1st prize is not allocated. To me it looks like you got the 'if' and 'then' part correct but you dont have a 'else' part to it therefore it'll create an error when its not declared.
Answer:
begins with a number
Explanation:
The first character of the variable name begins with a number. This is an error because most programming languages do not allow variable names to begin with numbers