![xxcecccc](/avatars/1305.jpg)
xxcecccc
21.05.2020 •
Computers and Technology
What are the arguments for and against the proposition that the human brain is a kind of computer?
Solved
Show answers
More tips
- H Health and Medicine Tick Traps: How to Remove Them Safely and Effectively...
- S Society and Politics Why are thugs called gopniks ? A fascinating journey through Russian subculture...
- A Animals and plants Want a Perfect Lawn? Learn How to Plant Grass the Right Way...
- A Animals and plants How to Properly Care for a Pet Decorative Rabbit at Home?...
- C Computers and Internet How to Check the Speed of My Internet?...
- H Health and Medicine 10 Ways to Cleanse Your Colon and Improve Your Health...
- W Work and Career How to Write a Resume That Catches the Employer s Attention?...
- C Computers and Internet Е-head: How it Simplifies Life for Users?...
- F Family and Home How to Choose the Best Diapers for Your Baby?...
- F Family and Home Parquet or laminate, which is better?...
Answers on questions: Computers and Technology
- C Computers and Technology Consider each of the following words as a set of letters: {arid, dash, drain, heard, lost, nose, shun, slate, snare, thread}. show which set cover greedy-set-cover...
- C Computers and Technology The scope of a variable declared within a for() loop is: a) only known within the for() loop b) global across all functions in the file containing the code c) local...
- C Computers and Technology What part of the communication feedback loop results in unclear communication? a. interference b. message c. sender s message d. reference points...
- C Computers and Technology There are many scientific computing tools available for engineers, for example, matlab and mathematica. what are the common characteristics of these tools? . how...
- C Chemistry This infectious disease requires a special mask for protection...
- S Spanish What kinds of professional support and resources are available to hispanics and latinos entering the technology fields like the illinois institute of technology...
- M Mathematics Abank charges a service fee per month if you have 85 dollars how many months until you have no money left...
- E English There are some commonly adopted conventions in the structure and elements of an epic poem. which of the following is not a characteristic of an epic poem? a. it...
- G Geography Estonia, lithuania, ukraine, belarus, and moldova once comprised yugoslavia. true false...
- B Biology Tundra ecosystems are considered to be fragile because of...
Ответ:
Following are the code to the given question:
#include<iostream>//defining header file
using namespace std;
int main()//defining main method
{
float clspat,test,asst,exam,practice,total,average;//defining floating variable
char name[100];//defining char variable to input value
cout<<"Enter Name of Student: ";//print message
cin>>name; //input value
cout<<"Enter scores in following scoring items between 0 and 100:"<<"\n";//print message
cout<<"Enter class participation score: ";//print message
cin>>clspat;//input value
cout<<"Enter test score: ";//print message
cin>>test;//input value
cout<<"Enter assignment score: ";//print message
cin>>asst;//input value
cout<<"Enter exam score: ";//print message
cin>>exam;//input value
cout<<"Enter practice score: ";//print message
cin>>practice;//input value
total=clspat+test+asst+exam+practice;//calculating total value
average=total/5;//calculating average value
cout<<endl<<"SCORE CARD OF "<<name<<"\n"<<"-----------------------"<<"\n";//print value with message
cout<<"Total score: "<<total<<"\n";//print message with value
cout<<"Average score: "<<average; //print message with value
}
Output:
please find the attached file.
Explanation:
In this code, the floating-point variable is declared, which is used for input value from the user-end and after input the floating-point value it uses the "total, average" variable to calculate its respective values and store its value with init, after storing the value into the variable it uses the print method to print its values.