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
Consider the following code: public static void mystery(int a) { System.out.println("A"); } public static void mystery(double a)
Feliz [49]

Answer:

The output is "A"

Explanation:

public class Solution {

   public static void main(String args[]) {

     mystery(7);

   }    

   public static void mystery(int a) { System.out.println("A"); }    

   public static void mystery(double a) { System.out.println("B"); }    

   public static void mystery(int a, double b) { System.out.println("C"); }    

   public static void mystery(double a, int b) { System.out.println("D"); }

}

In the code above; mystery is defined in four different ways called method overloading. Method overloading is when same method is defined with different parameters.

In the first case; mystery will be called if the argument is int.

In the second case; mystery will be called if the argument is double.

In the third case; mystery will be called if the arguments are int and double.

In the fourth case; mystery will be called if the arguments are double and int.

When mystery(7) is called; the mystery method requiring only int will be called and the output is "A".

3 0
4 years ago
What are you required to verify before allowing a person to operate your pwc?
stich3 [128]

<span>Before allowing a person to operate PWC, check that they meet the minimum age and boater education requirements for PWC. While near shore, show how to start and re board the PWC properly and make sure that he has at least 25 hours of PWC operation experience. Be sure explain how to steer and control the PWC properly.</span>

8 0
3 years ago
Identify different character components for a given typeface: Arial.
Shkiper50 [21]

Answer: Arial belongs to the sans serif family of typefaces. It is the most commonly used typeface, and it is the default typeface set in Microsoft Word. A character is a typographic element represented through an upper- or lowercase letter, number, or special character. Every letter of the alphabet has multiple parts that we describe with a particular set of terms. Typographers call this “letter anatomy.” The basic terms common to all letters are below:

An ascender is the stroke extending upward, going above the x-height (which is the height of the letter excluding the ascender or descender).

A descender is the stroke extending downward from the baseline (which is the imaginary horizontal line that aligns the bodies of the characters).

A bar is the horizontal stroke in the uppercase letters A, E, F, H, I, and T, as well as in the lowercase letters e, f, and t.

A counter is the blank space within the body stroke.

A bowl is a curved stroke that surrounds the counter.

A shoulder is a curved stroke beginning at the stem.

A serif is the tapered feature at the end of a stroke. Arial is a sans serif font, and it does not have tapered corners at the ends of the main strokes.

3 0
3 years ago
Which of the following statements is true? Methods and instance variables can both be either public or private. Information hidi
Alex777 [14]

Answer:

B

Explanation:

8 0
3 years ago
¿Cuáles son los 5 Procesadores de textos on line más usados?
labwork [276]

Answer:

5 Procesadores de textos

Explanation:

Google Docs.

Textilus - Edición Microsoft Word.

TextEdit.

Kingsoft Office Writer.

Páginas.

8 0
3 years ago
Other questions:
  • Which is the most important reason you should properly cite information that you obtain from an Internet search? Question 2 opti
    8·1 answer
  • How does technology set a negative impact on the adolescent of our society?
    14·1 answer
  • Someone who participates online for social reasons usually has a:
    9·1 answer
  • Which system utility can you use to troubleshoot a computer that's slow to start by enabling or disabling startup programs?
    7·2 answers
  • What is the most common concern with using variable frequency drives?
    6·1 answer
  • Which of the following modes of replication requires a very low latency network connection and ensures data remains in synch wit
    9·1 answer
  • Cable Internet access can be described with which feature?
    5·2 answers
  • Suppose that a particular algorithm has time complexity T(n) = 3 \times 2^nT(n)=3×2 ​n ​​ and that executing an implementation o
    14·1 answer
  • Does anyone know how to write this right? This is for a coding class and I’m super confused on it.
    13·1 answer
  • When was the first analog device, the phonautograph, launched?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!