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
Zarrin [17]
3 years ago
15

7.5 code practice edhesive plssss

Computers and Technology
2 answers:
vredina [299]3 years ago
6 0

So your parent hasn't joined you on the Brainly express to Achievement-ville. We'll get them on board. Parents are busy people, but you can be the boss and remind them. Remind them how Brainly boosts you with expert knowledge. Remind them that tons of students already get grade upgrades with Brainly Plus. Remind your parent of the power they have to raise you to your full potential. We think they would agree. You deserve every education advantage.

Gemiola [76]3 years ago
4 0

Answer:

def GPAcalc(user_grade, w):

   

   if(user_grade == "A" or user_grade == "a"):

       return 4 + w

       

   elif(user_grade == "B" or user_grade == "b"):

       return 3 + w

       

   elif(user_grade == "C" or user_grade == "c"):

       return 2 + w

       

   elif(user_grade == "D" or user_grade == "d"):

       return 1 + w

       

   elif(user_grade == "F" or user_grade == "f"):

       return 0 + w

       

   else:

       return "Invalid"

       

   if(weighted == 1):

       print(g + 1)

       

def calculateAverage(n):

   sum = 0

   for x in range (n):

       print()

       letterGrade = input("Enter your Letter Grade: ")

       weight = int(input("Is it weighted? (1 = yes)(0 = no) "))

       grade = GPAcalc(letterGrade, weight)

       print("Your GPA score is: " + str(grade))

       sum += grade

   average = sum/numClasses

   return average

       

#Main

numClasses = int(input("How many Classes are you taking? "))

sum = 0

average = sum/numClasses

print()

print("Your weighted GPA is a " + str(calculateAverage(numClasses)) + ".")

Explanation:

yes

You might be interested in
Jonathan is eight years old and is a participant in a study assessing the eating habits of schoolchildren. To assess the childre
Law Incorporation [45]

Answer:

"The research team is taking measurements of Jonathan's height and weight to assess his growth"

Explanation:

Anthropometric data refers to a mass of collected information regarding an individual's different measurements such as height, weight, BMI, etc. Therefore the best way to explain this data collection method to the parents in this scenario would be to say that "The research team is taking measurements of Jonathan's height and weight to assess his growth"

7 0
4 years ago
Write a C++ program to find if a given array of integers is sorted in a descending order. The program should print "SORTED" if t
LenKa [72]

Answer:

The cpp program for the given scenario is as follows.

#include <iostream>

#include <iterator>

using namespace std;

int main()

{

   //boolean variable declared and initialized  

   bool sorted=true;

   //integer array declared and initialized

   int arr[] = {1, 2, 3, 4, 5};

   //integer variables declared and initialized to length of the array, arr

   int len = std::end(arr) - std::begin(arr);

       //array tested for being sorted

    for(int idx=0; idx<len-1; idx++)

    {

        if(arr[idx] < arr[idx+1])

           {

               sorted=false;

            break;

           }

    }

    //message displayed  

    if(sorted == false)

     cout<< "UNSORTED" <<endl;

 else

    cout<< "UNSORTED" <<endl;

return 0;

}

OUTPUT

UNSORTED

Explanation:

1. An integer array, arr, is declared and initialized as shown.

int arr[] = {1, 2, 3, 4, 5};

2. An integer variable, len, is declared and initialized to the size of the array created above.

int len = std::end(arr) - std::begin(arr);

3. A Boolean variable, sorted, is declared and initialized to true.

bool sorted=true;  

4. All the variables and array are declared inside main().

5. Inside for loop, the array, arr, is tested for being sorted or unsorted.  The for loop executes over an integer variable, idx, which ranges from 0 till the length of the array, arr.

6. The array is assumed to be sorted if all the elements of the array are in descending order.

7. If the elements of the array are in ascending order, the Boolean variable, sorted, is assigned the value false and for loop is exited using break keyword. The testing is done using if statement.

8. Based on the value of the Boolean variable, sorted, a message is displayed to the user.

9. The program can be tested for any size of the array and for any order of the elements, ascending or descending. The program can also be tested for array of other numeric data type including float and double.

10. All the code is written inside the main().

11. The length of the array is found using begin() and end() methods as shown previously. For this, the iterator header file is included in the program.

4 0
3 years ago
Rectangular box formed when each column meet​
Over [174]

Answer:

If this is a true or false I guess my answer is true?

Explanation:

3 0
3 years ago
My learning platform says I have 9 new messages. It goes up when I have new ones but after I read all of them, It goes back to 9
stira [4]

Answer:

have you told anyone about it? like a teacher or something?

Explanation:

I think it's just a glitch

8 0
3 years ago
Read 2 more answers
Write an algorithm of telephone call system​
ivolga24 [154]

Answer:

this is the correct answer

3 0
3 years ago
Read 2 more answers
Other questions:
  • In order to accomplish the same goal, a person can click and hold down the mouse button and drag to the right, or hold Shift and
    5·2 answers
  • The Earth's _______ is ductile overall, tending to flow very slowly and deform in a _______ manner.
    14·2 answers
  • What setting in Word keeps single lines of a new
    15·1 answer
  • Which is a tool that allows you to copy formatting from one place and apply it to other places?
    9·1 answer
  • The advantage of an electronic ____ is that the content can be easily edited and updated to reflect changing financial condition
    10·1 answer
  • Which of the following statements are valid in Java? (Assume that console is Scanner object initialized to the standard input de
    15·1 answer
  • What is a computer system model and explain?
    10·1 answer
  • What will the following program display in the console?
    12·1 answer
  • The sign used for closing a tag is​
    6·1 answer
  • Why is it important for organizations to make strong commitment to Cloud at scale?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!