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
Which element can be changed using the Print pane? Check all that apply.
Ronch [10]

Answer:

B

C

D

E

Explanation:

5 0
3 years ago
Read 2 more answers
Which of the following statements is true about scalability? Choose 3 options.
Simora [160]

Answer:

4, 5, 2

Explanation:

just did it on edge :)

3 0
3 years ago
Read 2 more answers
1.Discuss the differences and similarities between a peer-to peer network and a client server network.
irga5000 [103]

Answer:

dsdasd1.Discuss the differences and similarities between a peer-to peer network and a client server network.

1.Discuss the differences and similarities between a peer-to peer network and a client server network.

1.Discuss the differences and similarities between a peer-to peer network and a client server network.

1.Discuss the differences and similarities between a peer-to peer network and a client server network.

1.Discuss the differences and similarities between a peer-to peer network and a client server network.

1.Discuss the differences and similarities between a peer-to peer network and a client server network.

1.Discuss the differences and similarities between a peer-to peer network and a client server network.

Explanation:

jaiusfkybuetcrjnwxyefshrcxijkwuecvashcnzx

5 0
3 years ago
Which act requires enterprises to guard protected health information and implement policies and procedures to safeguard it?
bogdanovich [222]

Answer:

D. HIPAA (Health Insurance Portability and Accountability Act)

Explanation:

HIPAA which stands for Health Insurance Portability and Accountability Act, is an act designed by the US government in 1996 to guard patients' confidential health information and also implement policies and procedures to safeguard it. The act contains the required information and instruction for handling patients' medical health information. The law however gives patients (or their representatives) the right to access these information which as a matter of fact must be made available within 30 days from the day of request.

PS: Not sure why the option D in the question contains ' FTF '. I have taken it to be a typo because without it, the option is in itself complete.

7 0
3 years ago
Write a Python function that takes a positive integer N and returns the factorial of N, i.e., N! The factorial of N, denoted N!,
sesenic [268]

Answer:

The python function is as follows:

def fact(N):

   factorial = 1

   for i in range(1,N+1):

       factorial = factorial * i

   return(factorial)

Explanation:

This line defines the function

def fact(N):

This line initializes the product of 1 to N to 1

   factorial = 1

This line iterates through 1 to N

   for i in range(1,N+1):

This line calculates the product of 1 to N i.e. factorial

       factorial = factorial * i

This line returns the factorial

   return(factorial)

6 0
2 years ago
Other questions:
  • onsider the following program: Peform a total of six exercises. Select one exercise from each of the following areas: hips and l
    6·1 answer
  • How do keystroke dynamics determine whether to authenticate an individual or not?
    14·1 answer
  • After trying multiple times, a coworker is not able to fit a motherboard in a computer case, and is having difficulty aligning s
    11·1 answer
  • Why might a variable used for output have to be of a different type then a variable used for input? ​
    12·1 answer
  • Write a program that takes an integer n as a parameter and sums all of the multiples of 2 or 5 from 1 to n. For example, if n =
    14·1 answer
  • Consider the relational schema below: Students(sid: integer, sname: string, major: string) Courses(cid: integer, cname: string,
    9·1 answer
  • Assume you are using the text's array-based queue and have just instantiated a queue of capacity 10. You enqueue 5 elements and
    13·1 answer
  • Please help i only have 20 minuets
    5·1 answer
  • A hacker using information gathered from sniffing network traffic uses your banking credentials from a recent transaction to cre
    6·1 answer
  • 4.(L.5.1.A) Select the sentence that includes an interjection,
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!