Answer:
#include <iomanip>
#include<iostream>
using namespace std;
int main(){
char name[100];
float classp, test, assgn, exam, prctscore,ave;
cout<<"Student Name: ";
cin.getline(name,100);
cout<<"Class Participation: "; cin>>classp;
while(classp <0 || classp > 100){ cout<<"Class Participation: "; cin>>classp; }
cout<<"Test: "; cin>>test;
while(test <0 || test > 100){ cout<<"Test: "; cin>>test; }
cout<<"Assignment: "; cin>>assgn;
while(assgn <0 || assgn > 100){ cout<<"Assignment: "; cin>>assgn; }
cout<<"Examination: "; cin>>exam;
while(exam <0 || exam > 100){ cout<<"Examination: "; cin>>exam; }
cout<<"Practice Score: "; cin>>prctscore;
while(prctscore <0 || prctscore > 100){ cout<<"Practice Score: "; cin>>prctscore; }
ave = (int)(classp + test + assgn + exam + prctscore)/5;
cout <<setprecision(1)<<fixed<<"The average score is "<<ave;
return 0;}
Explanation:
The required parameters such as cin, cout, etc. implies that the program is to be written in C++ (not C).
So, I answered the program using C++.
Line by line explanation is as follows;
This declares name as character of maximum size of 100 characters
char name[100];
This declares the grading items as float
float classp, test, assgn, exam, prctscore,ave;
This prompts the user for student name
cout<<"Student Name: ";
This gets the student name using getline
cin.getline(name,100);
This prompts the user for class participation. The corresponding while loop ensures that the score s between 0 and 100 (inclusive)
cout<<"Class Participation: "; cin>>classp;
while(classp <0 || classp > 100){ cout<<"Class Participation: "; cin>>classp; }
This prompts the user for test. The corresponding while loop ensures that the score s between 0 and 100 (inclusive)
cout<<"Test: "; cin>>test;
while(test <0 || test > 100){ cout<<"Test: "; cin>>test; }
This prompts the user for assignment. The corresponding while loop ensures that the score s between 0 and 100 (inclusive)
cout<<"Assignment: "; cin>>assgn;
while(assgn <0 || assgn > 100){ cout<<"Assignment: "; cin>>assgn; }
This prompts the user for examination. The corresponding while loop ensures that the score s between 0 and 100 (inclusive)
cout<<"Examination: "; cin>>exam;
while(exam <0 || exam > 100){ cout<<"Examination: "; cin>>exam; }
This prompts the user for practice score. The corresponding while loop ensures that the score s between 0 and 100 (inclusive)
cout<<"Practice Score: "; cin>>prctscore;
while(prctscore <0 || prctscore > 100){ cout<<"Practice Score: "; cin>>prctscore; }
This calculates the average of the grading items
ave = (int)(classp + test + assgn + exam + prctscore)/5;
This prints the calculated average
cout <<setprecision(1)<<fixed<<"The average score is "<<ave;
explain 3 components of the Visual Basic IDE (6 marks)
Answer:
Explanation:
The IDE of Visual Studio 2008 contains numerous components, and it will take you a while to explore them. It’s practically impossible to explain in a single chapter what each tool, window, and menu command does. We’ll discuss specific tools as we go along and as the topics get more and more advanced. In this section, I will go through the basic items of the IDE — the ones we’ll use in the following few chapters to build simple Windows applications.
The IDE of Visual Studio 2008 contains numerous components, and it will take you a while to explore them. It’s practically impossible to explain in a single chapter what each tool, window, and menu command does. We’ll discuss specific tools as we go along and as the topics get more and more advanced. In this section, I will go through the basic items of the IDE — the ones we’ll use in the following few chapters to build simple Windows applications.The IDE of Visual Studio 2008 contains numerous components, and it will take you a while to explore them. It’s practically impossible to explain in a single chapter what each tool, window, and menu command does. We’ll discuss specific tools as we go along and as the topics get more and more advanced. In this section, I will go through the basic items of the IDE — the ones we’ll use in the following few chapters to build simple Windows applications.
The Edit menu contains the usual editing commands. Among these commands are the Advanced command and the IntelliSense command. Both commands lead to submenus, which are discussed next. Note that these two items are visible only when you’re editing your code, and are invisible while you’re designing a form.
What is true about super computers?
Explanation:
Super Computer are expensive computer that are used to provide very quick results. Super computer are used in calculating complex mathematical calculations. Calculations such as weather forecast and Atomic energy research. Therefore Super Computer perform complex calculations rapidly.
my uh coding teacher would like the class to do little piggy with code.
Write code using def to create functions so that each line is printed in its own function. Turn in a gdb link so I can grade it.
This little pig went to the market.
This little pig stayed home.
This little pig had roast beef.
This little pig had none.
This little pig cried wee wee wee all the way home.
here's a example from him but i don't understand it
import time
def myFunction():
print('In the function called my function')
time.sleep(2)
def yourFunction():
print('In the function called your function')
time.sleep(2)
#*********MAIN**********
print ('In the main part of the program')
time.sleep(2)
myFunction()
print ('Back in the main')
time.sleep(2)
yourFunction()
print ('Back in the main after your function')
please help if you can
Answer:
see picture below
Explanation:
I added a parameter to factor out the first bit of each sentence into a global variable. If you change for example 'pig' into 'monkey', all sentences will change.
I need help to pick what programming language is best to make videogames
Answer:
In my opion its java script
Explanation:
what is a computer?
an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.
hope this helps
Structural Styles
Go to the Structural Styles section. Within that section create a style rule to set the background color of the browser window to rgb(151, 151, 151).
Create a style rule to set the background color of the page body to rgb(180, 180, 223) and set the body text to the font stack: Verdana, Geneva, sans-serif.
Display all h1 and h2 headings with normal weight.
Create a style rule for every hypertext link nested within a navigation list that removes underlining from the text.
Create a style rule for the footer element that sets the text color to white and the background color to rgb(101, 101, 101). Set the font size to 0.8em. Horizontally center the footer text, and set the top/bottom padding space to 1 pixel.
Solution :
For Structural Styles the browser's background color.
html {
background-color: rgb(151, 151, 151);
}
For creating style rule for the background color and setting the body text
body {
background-color: rgb(180,180,223);
font-family: Verdana, Geneva, sans-serif;
}
For displaying all the h1 as well as h2 headings with the normal weight.
h1, h2 {
font-weight: normal;
}
For create the style rule for all the hypertext link that is nested within the navigation list
nav a {
text-decoration: none;
}
For creating style rule for footer element which sets the color of the text to color white and the color of the background to as rgb(101, 101, 101). Also setting the font size to 0.8em. Placing the footer text to horizontally center , and setting the top/bottom of the padding space to 1 pixel.
footer {
background-color: rgb(101, 101, 101);
font-size: 0.8em;
text-align: center;
color: white;
padding: 1px 0;
}
/* Structural Styles At one place*/
html {
background-color: rgb(151, 151, 151);
}
body {
background-color: rgb(180,180,223);
font-family: Verdana, Geneva, sans-serif;
}
h1, h2 {
font-weight: normal;
}
nav a {
text-decoration: none;
}
footer {
background-color: rgb(101, 101, 101);
font-size: 0.8em;
text-align: center;
color: white;
padding: 1px 0;
}
an affective website design should fullfill its intended by conveying its message while simultaneosly engaging the visitors?do you agree or disagree
Answer: True
Explanation:
The statement that "an effective website design ought to be able to fulfill the function that it has by passing the message across while engaging the visitor at the same time" is true.
Some of thr factors which bring about a good website design are functionality, simplicity, imagery, consistency, colours, typography. A website that's well designed and built will help in the building of trust.
What is Typing?
And
What is Economic?
Answer:
what is typing: the action or skill of writing something by means a typewriter or computer
what is economic:a branch of knowledge concerned with production,consumption,and transfer of wealth.
giving Brianlist (to the correct answers)help plesee question is what is keyboard (long paragraph)plzz don't spam with unnecessary answers !!!!thankyouuuuuuu:)
Answer:
Explanation:
A computer keyboard is an input device that allows a person to enter letters, numbers, and other symbols (these are called characters in a keyboard) into a computer. Using a keyboard to enter lots of data is called typing. A keyboard contains many mechanical switches or push-buttons called "keys".
How do I create a flowchart to output numbers from n...1? We were doing loops during the classes.
I use GOxxOGLE FORMS or WxxORDS and their good to make flow charts
Which term is defined by the total operating current of a circuit?
Answer:
OK PERO NOSE LM SOTTY BROTHER
Explanation:
What are folders within folders called
Answer:
The folder within folder are also know as subfolder .
what precautions should be taken to make a computer more secure
Answer:
To make a computer more secure
Explanation:
we have following ways :
1)we should have anti virus to protect our computer.
2)we should not play or look computer for a long time because it destroy our files
Why is myConcerto considered essential to Accenture's work with enterprise
systems?
Answer:
myConcerto can help clients envision, innovate, solution, deliver and support their transformation to an intelligent enterprise–providing the technology foundation to accelerate their journey and minimize risk along the way.
Hope it helps
Please mark me as the brainliest
Thank you
myConcerto is considered essential to the Accenture enterprise because it helps to do the following:
It can help the clients to envision more.It is useful for innovation.It provides solution.It helps to deliver and also support transformation to enterprises that make use of artificial intelligence.What is myConcerto?This platform is one that is digitally integrated. What it does is that it helps Accenture in the creation of great business outcomes.
Read more on Accenture here:
https://brainly.com/question/25682883
how does abstraction help us write programs
Answer:
Abstraction refines concepts to their core values, stripping away ideas to the fundamentals of the abstract idea. It leaves the common details of an idea. Abstractions make it easier to understand code because it concentrates on core features/actions and not on the small details.
This is only to be used for studying purposes.
Hope it helps!
Given A=1101 and B=1001. What is the result of the boolean statement: A
AND B
Answer:
B (1001)
Explanation:
The AND operator gets you 1's where there are 1's in both inputs. So if you would "overlay" the two binary values, only 1001 remains.
When did games begin to really take off?
A: when people began to live with formal laws
B: when people began to compete for limited resources
C: when people began to settle together in stable, organized communities
D: when people began to hunt nomadic animals, like buffalo
Use the drop-down menus to complete the statements about the recall option in Outlook 2016.
Recalling a message stops its delivery before the recipient
it.
It only works about half the time, and it only works when recipients are in the same
.
Once it is recalled, the
will get a message informing them of the recalled message.
Be sure to check your message before you send it, and assume it will be read within 30
of sending the message.
Answer:
Recalling a message stops its delivery before the recipient
opens it.
It only works about half the time, and it only works when recipients are in the same organization
.
Once it is recalled, the recipient will get a message informing them of the recalled message.
Be sure to check your message before you send it, and assume it will be read within 30 seconds of sending the message.
Explanation:
A tactful representation of opposing views is essential when writing for the opposition. True or false
What is your favorite anime ( All movies and episodes related to them count )
A. Seven Deadly Sins
B. Naruto
C. Dragon Ball
D. One piece
C. The misfit of the demon king academy
E. Classroom of the Elite
Answer:
B. Naruto
Explanation:
what was his beliefs?
A belief is an attitude that something is the case, or that some proposition about the world is true.[1] In epistemology, philosophers use the term "belief" to refer to attitudes about the world which can be either true or false.[2] To believe something is to take it to be true; for instance, to believe that snow is white is comparable to accepting the truth of the proposition "snow is white". However, holding a belief does not require active introspection. For example, few carefully consider whether or not the sun will rise tomorrow, simply assuming that it will. Moreover, beliefs need not be occurrent (e.g. a person actively thinking "snow is white"), but can instead be dispositional (e.g. a person who if asked about the color of snow would assert "snow is white").[2]
There are various different ways that contemporary philosophers have tried to describe beliefs, including as representations of ways that the world could be (Jerry Fodor), as dispositions to act as if certain things are true (Roderick Chisholm), as interpretive schemes for making sense of someone's actions (Daniel Dennett and Donald Davidson), or as mental states that fill a particular function (Hilary Putnam).[2] Some have also attempted to offer significant revisions to our notion of belief, including eliminativists about belief who argue that there is no phenomenon in the natural world which corresponds to our folk psychological concept of belief (Paul Churchland) and formal epistemologists who aim to replace our bivalent notion of belief ("either we have a belief or we don't have a belief") with the more permissive, probabilistic notion of credence ("there is an entire spectrum of degrees of belief, not a simple dichotomy between belief and non-belief").[2][3]
Beliefs are the subject of various important philosophical debates. Notable examples include: "What is the rational way to revise one's beliefs when presented with various sorts of evidence?"; "Is the content of our beliefs entirely determined by our mental states, or do the relevant facts have any bearing on our beliefs (e.g. if I believe that I'm holding a glass of water, is the non-mental fact that water is H2O part of the content of that belief)?"; "How fine-grained or coarse-grained are our beliefs?"; and "Must it be possible for a belief to be expressible in language, or are there non-linguistic beliefs?".[2]
Select the correct statement(s) regarding the signal-to-noise ratio (SNR).
A. SNR represents the ratio of transmit signal power over the noise power of all sources including thermal, impulse, IM, CCI, and crosstalk noise.
B. the noise (i.e., noise floor) in the signal-to-noise ratio, is a wideband noise product that is predominated by thermal noise.
C. the noise power, in the signal-to-noise ratio, occupies a narrow band in the frequency domain.
D. all of the above are correct statements.
Answer:
B. the noise (i.e., noise floor) in the signal-to-noise ratio, is a wideband noise product that is predominated by thermal noise.
Explanation:
Sound can be defined as mechanical waves that are highly dependent on matter for their propagation and transmission. Sound travels faster through solids than it does through either liquids or gases.
Signal-to-noise ratio (SNR) is simply the ratio of signal power to noise power or the ratio of desired information to the undesired signal. SNR doesn't have a unit i.e it is a unitless quantity.
Generally, the higher the signal-to-noise ratio (SNR), the better would be the quality of a signal.
Additionally, a negative signal-to-noise ratio (SNR) in decibel form simply means that the signal power is lesser than the noise power.
Hence, the correct statement regarding the signal-to-noise ratio (SNR) is that the noise (i.e., noise floor) in the signal-to-noise ratio, is a wideband noise product that is predominated by thermal noise.
Note: noise can be defined as an unwanted disturbance or undesired signal present in an electrical signal.
suppose as a head software engineer you assign the job of creating a class to a subordinate. You want to specify thirty-eight different methods in which you are willing to detail the parameters each is to receive as well as what each returns. You, however, do not have the time to create the details of each method and wish to assign that work to the subordinate. What would be your best approach to ensure that the subordinate finishes the assigned job.
Answer:
jskjsjsjsjskdmsnjsnsnsns
What happens when text is added to grouped objects that is larger than an object ?
Answer:
You have to select the picture and pick the text at first.
Then press context menu key on a keyboard or right mouse button and choose group/ungroup point.
Choose group.
And finally you can select and resize the object and text simultaneously.
A set of object that share a common structure and common behavior in database is called
What type of role does the group leader have? Informal negative positive Formal
Write a full class definition for a class named GasTank , and containing the following members:
A data member named amount of type double.
A constructor that no parameters. The constructor initializes the data member amount to 0.
A function named addGas that accepts a parameter of type double . The value of the amount instance variable is increased by the value of the parameter.
A function named useGas that accepts a parameter of type double . The value of the amount data member is decreased by the value of the parameter. However, if the value of amount is decreased below 0 , amount is set to 0 .
A function named isEmpty that accepts no parameters and returns a boolean value. isEmpty returns a boolean value: true if the value of amount is less than 0.1 , and false otherwise.
A function named getGasLevel that accepts no parameters. getGasLevel returns the value of the amount data member.
class GasTank
{
private:
double amount;
public:
GasTank();
void addGas(double);
void useGas(double);
bool isEmpty();
double getGasLevel();
};
GasTank::GasTank(){amount = 0;}
void GasTank::addGas(double a){amount += a;}
void GasTank::useGas(double a){amount -= a; if (amount < 0) amount = 0; }
bool GasTank::isEmpty(){if(amount < .1) return true; else return false;}
double GasTank::getGasLevel() {return amount;}
Answer:
Explanation:
The following class code is written in Java and includes all of the required methods as requested in the question...
package sample;
class GasTank {
private double amount = 0;
private double capacity;
public GasTank(double initialAmount) {
this.capacity = initialAmount;
}
public void addGas(double addAmount) {
this.amount += addAmount;
if (amount > capacity) {
amount = capacity;
}
}
public void useGas(double subtractAmount) {
this.amount -= subtractAmount;
if (amount < 0) {
amount = 0;
}
}
public boolean isEmpty() {
return (amount < 0.1);
}
public boolean isFull() {
return (amount > capacity - 0.1);
}
public double getGasLevel() {
return amount;
}
public double fillUp() {
double difference = capacity - amount;
amount = capacity;
return difference;
}
}
Do drone batteries discharge 100% of their total capacity?
What is
Computer Security
Answer:
Computer Security is the protection of computer systems and networks from information disclosure, theft of or damage to their hardware, software, or electronic data, as well as from the disruption or misdirection of the services they provide.
Explanation:
Answer:
the protection of computer systems and information from theft
Explanation:
(python) Given the formula for conversion from Celsius to Fahrenheit
Fahrenheit = 1.8 x Celsius + 32
Write a Python program that takes as input a temperature in degrees Celsius, calculates the temperature in degrees Fahrenheit, and display the result as output.
Answer:
initial_temp = float(input('Celsius Temperature: '))
final_temp = (initial_temp * 1.8) + 32
print(f'{final_temp} F')