1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nikdorinn [45]
3 years ago
11

Ask the user to enter 3 scores each representing an assignment score. Ask the user for their midterm and final exam. Store all a

bove input into variables. Display the total weighted score as follows where all scores entered will be out of 100: Total Weighted Score = (average assignments)*40% + (midterm)*30% + (final exam)*30% Use constants to represent the weight of assignments, midterm and the final. Show the output of "Your final score is: X" where x is the final total calculated score. Add top-level comments and other comments as needed but do not comment every line. Overuse of comments is as bad as not using them.
Computers and Technology
1 answer:
GarryVolchara [31]3 years ago
5 0

Answer:

#include <stdio.h>

int main()

{

   float assignmentScore, averageScore, midTerm, finalTerm, totalScore;

   

   printf("Enter first assignment score: ");

   scanf("%f",&assignmentScore);

   averageScore += assignmentScore;

   printf("Enter second assignment score: ");

   scanf("%f",&assignmentScore);

   averageScore += assignmentScore;

   printf("Enter third assignment score: ");

   scanf("%f",&assignmentScore);

   averageScore += assignmentScore;

   averageScore = averageScore / 3;

   

   printf("Enter mid term score: ");

   scanf("%f",&midTerm);

   

   printf("Enter final term score: ");

   scanf("%f",&finalTerm);

   

   totalScore = (averageScore*0.40)+(midTerm*0.30)+(finalTerm*0.30);

   

   printf("Your total score is equal to %f\n",totalScore);

   

  return 0;

}

Explanation:

  • Declare and get the assignments score, average score, mid term, final term from the user an input.
  • Calculate the average score by calculating all the scores and dividing by the total no. of assignments.
  • Calculate the total score by using the following formula:

Total Score = (average assignments)*40% + (midterm)*30% + (final exam)*30%

  • Lastly, display the total score on the console.
You might be interested in
All organizations need good quality cybersecurity to ensure _____. Select 4 options.
vova2212 [387]

Answer:

option 1

Explanation:

it is because they need better security for operational

7 0
2 years ago
Read 2 more answers
What allows multiple computers to join the same network
Lena [83]
A hub can be used to connect multiple computers and networks.
6 0
3 years ago
Create a poem about MS powerpoint presentation
iren2701 [21]
You could use poem generator online or see samples and change some words
5 0
3 years ago
How do I persuade my parents to allow me to have social media? I will be 15 in a week or so, so I am old enough. I'm pulling my
Flauer [41]

Answer:

my explanation is above my comment :)

Explanation:

6 0
3 years ago
Question 15 of 25
GaryK [48]
It gains purchasing power. Less money in circulation = more value.
5 0
3 years ago
Other questions:
  • True or false: although the first personal computers were available as early as the 1970's, the creation of the world wide web (
    11·1 answer
  • Data warehousing and data mining mean the same thing when applied to CRM
    7·2 answers
  • Design a Geometry class with the following methods: A static method that accepts the radius of a circle and returns the area of
    15·1 answer
  • What is a GUI?
    11·1 answer
  • ____ is the official web portal for the U.S. government, providing access to all official U.S. government services and informati
    12·1 answer
  • Working with text in presentation programs is similar to using text in other applications
    9·2 answers
  • The computer virus is simply a.......... a. diseases b.set of computer instrustruction or code c. types of bacteria​
    9·1 answer
  • Sharl downloads images from an online library and uses them in her work. The images are shared under the Creative Commons Attrib
    13·1 answer
  • Q2
    7·2 answers
  • The field that uses technology to manipulate and use information to improve healthcare is known as:_______
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!