The user is able to input grades and their weights, and calculates the overall final mark. The program should also output what you need to achieve on a specific assessment to achieve a desired overall mark. The program should be able to account for MULTIPLE COURSES as well.
I have done some pseudocode. So to double check, please provide pseudocode and python code.
I do plan to use homework, quizzes and tests for the grades portion and using the exam as part of the desired mark portion.

Please follow the instructions above. LISTS are allowed to be used.

Answers

Answer 1

Answer:

def calculate_final_mark(courses):

   final_mark = 0

   total_weight = 0

   for course in courses:

       final_mark += course['mark'] * course['weight']

       total_weight += course['weight']

   return final_mark / total_weight

def calculate_required_mark(courses, desired_mark):

   current_mark = calculate_final_mark(courses)

   total_weight = 0

   for course in courses:

       total_weight += course['weight']

   required_mark = (desired_mark - current_mark) / (1 - total_weight)

   return required_mark

# Example usage:

courses = [

   {'name': 'Math', 'mark': 80, 'weight': 0.4},

   {'name': 'Science', 'mark': 70, 'weight': 0.3},

   {'name': 'English', 'mark': 65, 'weight': 0.3},

]

final_mark = calculate_final_mark(courses)

print(f"Your final mark is {final_mark:.1f}")

desired_mark = 80

required_mark = calculate_required_mark(courses, desired_mark)

print(f"You need to score at least {required_mark:.1f} on your next assessment to achieve a final mark of {desired_mark}")


Related Questions

A ______ is a good choice for long-term archiving because the stored data do not degrade over time.

A) DVD-RW
B) DVD-R
C) solid state hard drive

Answers

Answer:

DVD-R is a good choice for long-term archiving because the stored data do not degrade over time. This is due to its write-once, read-many nature, which makes it less likely to degrade compared to magnetic tape, HDDs or solid-state drives (SSDs).

Explanation:

Meredith's repair business has two offices—one on the east side of town and one on the west side. An employee may work out of one office on one day and the other office on the next, based on the workload on a given day. For this reason, Meredith found it useful to set up a network to connect both offices. The company's important files are stored on a server so that employees can access the information they need from either location. The type of network Meredith's business is most likely using is a _____.

WAN
MAN
LAN

Answers

Answer:

MAN

Explanation:

brainliest?:(

Answer:

WAN (Wide Area Network)

Gigantic Life Insurance has 4000 users spread over five locations in North America. They have called you as a consultant to discuss different options for deploying Windows 10 to the desktops in their organization. They are concerned that users will be bringing their own mobile devices such as tablets and laptops to connect to their work data. This will improve productivity, but they are concerned with what control they have over the users' access to corporate data. How will Windows 10 help the company manage users who bring their own devices?

Answers

The answer is nuclear reactions

which function in the random library will generate a random integer within a range of specified by two parameters? the range is inclusive of the two parameters

Answers

Ran dint Python function is the function in the random library will generate a random integer within a range of specified by two parameters.

What is Ran dint Python function?

With both inclusive parameters, the randint Python method returns an integer that was created at random from the provided range.

The randint() method provides a selected integer number from the given range. Note that randrange(start, stop+1) is an alias for this technique.

A value from a list or dictionary will be generated by the random command. And the randint command will choose an integer value at random from the provided list or dictionary.

Thus, Ran dint Python function.

For more information about Ran dint Python function, click here:

https://brainly.com/question/29823170

#SPJ1

protocol layering can be found in many aspect of our lives such as air travelling .imagine you make a round trip to spend some time on vacation at a resort .you need to go through some processes at your city airport before flying .you also need to go through some processes when you arrive at resort airport .show the protocol layering for round trip using some layers such as baggage checking/claiming,boarding/unboard,takeoff/landing.​

Answers

Answer:

Baggage checking/claiming:

Check in at the city airport and check your baggage

Claim your baggage at the resort airport


Boarding/unboarding:

Board the plane at the city airport

Unboard the plane at the resort airport


Takeoff/landing:

Takeoff from the city airport

Land at the resort airport

Takeoff from the resort airport

Land at the city airport

MS-DOS can be characterized by which statement?
known for being user friendly
designed for smartphones
a command-line interface
a graphical user interface

Answers

Answer:

MS-Dos was a computer invented a long time ago, and it was one of the first computers that had a command-line interface.

Your answer is C.

What is one advantage that typing has compared to writing by hand?
•It can be done anywhere there's paper.

•Each person's typing has its own individual personality

•There's no special equipment needed.

•It's easier to make corrections.

Answers

Answer: Typing encourages verbatim notes without giving much thought to the information.

Answer: D its easier to correct mistakes

Explanation:

Needing some help with a code, any help would be appreciate for C++

Write a program that has the following functions:
- int* ShiftByOne(int[], int);
This function accepts an int array and the array’s size as arguments. The
function should shift all values by 1. So, the 1st element of the array should
be moved to the 2nd position, 2nd element to the 3rd position, and so on so
forth. Last item should be moved to the 1st position. The function should
modify the input array in place and return a pointer to the input array.
- Int* GetMax(int[], int);
This function accepts an int array and the array’s size as arguments. The
function should return the memory address of the maximum value found in
the array.
- unsigned int GetSize(char[]);
This function accepts a character array (C-String) and should return the size
of the array.

Answers

The program that has the following functions is given below:

The Program

#include <algorithm>

int* ShiftByOne(int array[], int size) {

   int temp = array[size - 1];

   for (int i = size - 1; i > 0; i--) {

       array[i] = array[i - 1];

   }

   array[0] = temp;

   return array;

}

int* GetMax(int array[], int size) {

   int max_val = *std::max_element(array, array + size);

   return &max_val;

}

unsigned int GetSize(char str[]) {

   unsigned int size = 0;

   for (int i = 0; str[i] != '\0'; i++) {

      size++;

   }

   return size;

}

Note: The function ShiftByOne() modifies the input array in place and return a pointer to the input array.

The function GetMax() returns the memory address of the maximum value found in the array.

The function GetSize() returns the size of the array.

Read more about programs here:

https://brainly.com/question/23275071

#SPJ1

If you have a PC, identify some situations in which you can take advantage of its multitasking capabilities.

Answers

Situation one: using multiple monitors for tutorials on one screen and an application on another

Situation two: using virtual desktops for separating school and personal applications

How to write a java program that asks the user for grades of students. Once the user enters 0 (zero), the program should print the largest of the marks of the students.

Answers

Answer:

import java.util.Scanner;

public class GradeProgram {

   public static void main(String[] args) {

       Scanner sc = new Scanner(System.in);

       System.out.println("Please enter the student grades: ");

       int grade = sc.nextInt();

       int largestGrade = 0;

       while (grade != 0) {

           if (grade > largestGrade) {

               largestGrade = grade;

           }

           grade = sc.nextInt();

       }

       System.out.println("The largest grade is: " + largestGrade);

   }

}

Explanation:

Name the function used to create a data frame ?

Answers

Answer:

The function used to create a data frame is data. frame()

solve the MRS y,x = 12 mean?

Answers

Answer:

Explanation:

The MRS (Marginal Rate of Substitution) is a concept from microeconomics that describes the rate at which one good (in this case, y) can be substituted for another good (in this case, x) while still maintaining the same level of utility or satisfaction for the consumer.

The equation you provided, MRS y,x = 12, tells us that in order for a consumer to maintain the same level of satisfaction, they would be willing to give up 12 units of good y in exchange for 1 unit of good x. This means that, in this specific case, the consumer values good y 12 times more than good x.

It's important to keep in mind that the MRS is a concept that can vary depending on the context and the consumer. The value of the MRS can change depending on the consumer's preferences, the availability of the goods, and the prices of the goods, among other factors.

On this equation alone, I can't confirm what exactly it refers to as more information about the context and the goods themselves is needed, also to make this equation valuable, it's should be done in a utility function or optimization problem in order to give some meaning to the number 12.

Write a program that will calculate the internal angle of an n-sided polygon from a triangle up
to a dodecagon. The output to the console should show what the random number chosen was
and the value of the internal angle. Remember to find the internal angle of a polygon use:

360°
n

Answers

The  program that will calculate the internal angle of an n-sided polygon from a triangle upto a dodecagon is given below

import random

def internal_angle(n):

   angle = 360 / n

   return angle

n = random.randint(3, 12)

print("Random number chosen:", n)

angle = internal_angle(n)

print("Internal angle of a", n, "-sided polygon:", angle, "degrees")

What is the Python program  about?

The program uses the formula for calculating the internal angle of a polygon, which is 360° divided by the number of sides (n). It also generates a random number between 3 and 12 to represent the number of sides of the polygon, and uses this value to calculate the internal angle.

The program starts by importing the random library, which is used to generate a random number. Then, it defines a function called "internal_angle" that takes one parameter, "n", which represents the number of sides of the polygon.

Inside the function, the internal angle of the polygon is calculated by dividing 360 by n and storing the result in the variable "angle". The function then returns this value.

Therefore, It's important to note that the internal angle of a polygon would be correct as long as the number of sides is greater than 2.

Learn more about Python program from

https://brainly.com/question/28248633
#SPJ1

what is the main objective of the administrator when creating and assigning storage accounts to users?

Answers

Note that the main objective of the administrator when creating and assigning storage accounts to Users is "to provide them with a secure and reliable method of storing and accessing their data, while also maintaining control and visibility over the data and its usage. "

What is an Administrator in IT?

IT administrators, also known as system administrators, configure and manage the computers, servers, networks, corporate software, and security systems of a business. They also assist the organization stay comply with cybersecurity rules by optimizing internal IT infrastructure for increased efficiency.

A competent administrator must understand networks and how to handle network problems. Basic hardware expertise is required. Understanding of backup, restoration, and recovery techniques. Excellent knowledge of permissions and user management

Learn more about Storage Accounts:
https://brainly.com/question/29929029
#SPJ1

1. Explain the benefits and drawbacks of using C++ and Visual Studio in a coding project.
2. Explain the benefits and drawbacks of using Java and Eclipse or Python and PyCharm in a coding project.
3. Describe the advantages of being able to code in multiple coding languages and compilers.

Answers

Answer:

1. The benefits of using C++ and Visual Studio in a coding project include the availability of a wide range of libraries and tools, the ability to create high-performance applications, and the ability to customize the code as needed. Drawbacks include the complexity of the language and the potential for memory leaks.

2. The benefits of using Java and Eclipse or Python and PyCharm in a coding project include the availability of a large number of libraries and tools, the ability to create high-level applications quickly, and the relative simplicity of the language. Drawbacks include the potential for code to become bloated and the lack of support for certain features.

3. The advantages of being able to code in multiple coding languages and compilers include the ability to use different languages and tools for different tasks, the ability to switch between languages quickly, and the ability to take advantage of the strengths of each language. Additionally, coding in multiple languages can help to increase one's overall coding knowledge and skills.

Explanation:

Can you incorporate open-source code from a github forum into IP tool?

Answers

Answer:

No

Explanation:

Answer: No, Info does not allow the use of open-source components in proprietary software he contracts.

7. The expansion slot is located on the A. CPU B. DVD drive C. D. Hard disk Motherboard​

Answers

Answer:

Motherboard

Explanation:

Hey tell me more about your service. I have a school assignment 150 questions and answers on cyber security,how can I get it done?

Answers

Answer:

Explanation:

I have knowledge in a wide range of topics and I can help you with your school assignment by answering questions on cyber security.

However, I want to make sure that you understand that completing a 150 question assignment on cyber security can be time-consuming and it's also important that you understand the material well in order to do well on exams and to apply the knowledge in real-world situations.

It would be beneficial to you if you try to work on the assignment by yourself first, then use me as a resource to clarify any doubts or to check your answers. That way you'll have a deeper understanding of the material and the assignment will be more beneficial to you in the long run.

Please also note that it is important to always check with your teacher or professor to ensure that getting assistance from an AI model is in line with your school's academic policies.

Please let me know if there's anything specific you would like help with and I'll do my best to assist you.

Manfred wants to include the equation for the area of a circle in his presentation. Which option should he choose?
O In the Design tab of the ribbon, choose a slide theme that includes the equation.
O In the Home tab of the ribbon, choose Quick Styles and select the equation from the default options.
In the Insert tab of the ribbon, choose Object and select the equation from the dialog box.
In the Insert tab of the ribbon, choose Equation and select the equation from the default options.

Answers

Answer:

In the Insert tab of the ribbon, Manfred should choose Equation and select the equation from the default options.

how to Design a registration page​ for a school called At school complex with html

Answers

Answer:

<!DOCTYPE html>

<html>

<head>

 <title>At School Complex Registration</title>

 <meta charset="utf-8">

</head>

<body>

 <h1>At School Complex Registration</h1>

 <form>

   <label for="name">Name:</label><br>

   <input type="text" id="name" name="name"><br>

   <label for="email">Email:</label><br>

   <input type="email" id="email" name="email"><br>

   <label for="phone">Phone:</label><br>

   <input type="phone" id="phone" name="phone"><br>

   <label for="grade">Grade Level:</label><br>

   <select id="grade" name="grade">

     <option value="kindergarten">Kindergarten</option>

     <option value="elementary">Elementary</option>

     <option value="middle">Middle</option>

     <option value="high">High</option>

   </select>

   <br>

   <input type="checkbox" id="activities" name="activities">

   <label for="activities">I am interested in after-school activities</label><br>

   <input type="submit" value="Submit">

 </form>

</body>

</html>

List 2 or 3 visual aids that you might use during a speech on "Technology in the Classroom" (or a topic of your choosing) to illustrate your main points, and explain exactly how you plan to use them. (Site 1)

Answers

Answer:

Graphs or charts: I would use graphs or charts to illustrate the trend of technology usage in the classroom over time. For example, I could show a line graph that compares the percentage of classrooms that had no technology, limited technology, or full technology access in the past decade. This would allow the audience to see the increasing trend of technology adoption in the classroom and better understand the impact that technology is having on education.

Photos or videos: I would use photos or videos to provide concrete examples of how technology is being used in the classroom to enhance teaching and learning. For example, I could show a video of a teacher using a virtual reality headset to take her students on a virtual field trip to a museum, or I could show a series of photos of students using tablets or laptops to complete assignments and collaborate with their peers. These visual aids would help the audience to better understand the specific ways in which technology is being used in the classroom and how it is benefiting students and teachers.

Infographic: I would use an infographic to present a summary of the main points of my speech in a visually appealing and easy-to-understand format. The infographic could include bullet points or graphics that highlight the key benefits of technology in the classroom, such as increased engagement, improved learning outcomes, and enhanced collaboration. By presenting the information in this way, I could help the audience to quickly grasp the main points of my speech and better retain the information.

Explain TWO examples of IT usages in business (e.g.: application or system) that YOU
have used before. Discuss your experience of using these system or applications. The
discussions have to be from YOUR own experience

Answers

Answer:

(DO NOT copy from other sources). Discuss these systems or applications which include of:

Introduction and background of the application or system. Support with a diagram, screenshots or illustration.

Explanation:

(PYTHON)

The instructions will be shown down below, along with an example of how the program should come out when finished. Please send a screenshot or a file of the program once finished as the answer.

Answers

Using the knowledge in computational language in JAVA it is possible program should come out when finished.  

Writting the code:

package numberofcharacters;

import java.util.ArrayList;

public class App {

   public static void main(String[] args) {

       String toCalculate = "123+98-79÷2*5";

       int operator_count = 0;  

       ArrayList<Character> operators = new ArrayList<>();

       for (int i=0; i < toCalculate.length(); i++){

            if (toCalculate.charAt(i) == '+' || toCalculate.charAt(i) == '-' ||

                toCalculate.charAt(i) == '*' || toCalculate.charAt(i) == '÷' ) {

            operator_count++;  /*Calculating

                                 number of operators in a String toCalculate

                               */

            operators.add(toCalculate.charAt(i)); /* Adding that operator to

                                                   ArrayList*/

        }

    }

    System.out.println("");

    System.out.println("Return Value :" );

    String[] retval = toCalculate.split("\\+|\\-|\\*|\\÷", operator_count + 1);    

   int num1 = Integer.parseInt(retval[0]);

   int num2 = 0;

   int j = 0;

   for (int i = 1; i < retval.length; i++) {

       num2 = Integer.parseInt(retval[i]);

       char operator = operators.get(j);

       if (operator == '+') {

           num1 = num1 + num2;

       }else if(operator == '-'){

           num1 = num1 - num2;

       }else if(operator == '÷'){

           num1 = num1 / num2;

       }else{

           num1 = num1 * num2;

       }

       j++;            

   }

   System.out.println(num1);   // Prints the result value

   }

}

See more about JAVA at brainly.com/question/29897053

#SPJ1

If I wanted to share files only within my organization and limit my employees from sharing information with external people, what type of network should I set up in my office?

A) Internet
B) Peer-to-Point
C) Intranet
D) Extranet

Answers

An intranet is a computer network for sharing information, easier communication, collaboration tools, operational systems, and other computing services within an organization, usually to the exclusion of access by outsiders.

Specifications and Cloud Service Providers will be given. (a) You have to find the best provider (b) Determine the cost using THREE BIG cloud providers in the world (c) In case of any failure how you handle.

Answers

Your team has a unified view of every customer, from their initial click to their final call, thanks to Service Cloud. By viewing all customer information and interactions on one screen, handling time can be decreased.

Who are the top three providers of cloud services?

The three cloud service providers with the greatest market shares—Web Services (AWS), Azure, and Cloud Platform (GCP)—acquire approximately 65% of the money spent on cloud infrastructure services.

Which services do cloud service providers offer in total?

Cloud computing refers to the delivery of services including networking, storage, servers, and databases over the internet. It is a novel approach to resource provisioning, application staging, and platform-agnostic user access to services.

to know more about Specifications and Cloud Service here:

brainly.com/question/29707159

#SPJ1

draw a flowchart to accept two numbers and check if the first number is divisible by the second number

Answers

Answer:



I've attached the picture below, hope that helps...

How many rows are in the SFrame?

Answers

Answer: It's not possible for me to know how many rows are in a specific SFrame without more information. The number of rows in an SFrame will depend on the data that it contains and how it was created.

Explanation: SFrame is a data structure for storing large amounts of data in a tabular format, similar to a spreadsheet or a SQL table. It was developed by the company Turi, which was later acquired by Apple. SFrames are designed to be efficient and scalable, and they can store data in a variety of formats, including numerical, categorical, and text data.

Explain afew of the different ways in which computers can be categorised

Answers

Computers are classed in a variety of ways, including size, function, and processing capacity.

What is output by the following code? c = 1 sum = 0 while (c < 10): c = c + 2 sum = sum + c print (sum)

Answers

With the given code, The code outputs 24.

How is this code run?

On the first iteration, c is 1 and sum is 0, so c is incremented to 3 and sum is incremented to 3.

On the second iteration, c is 3 and sum is 3, so c is incremented to 5 and sum is incremented to 8.

On the third iteration, c is 5 and sum is 8, so c is incremented to 7 and sum is incremented to 15.

On the fourth iteration, c is 7 and sum is 15, so c is incremented to 9 and sum is incremented to 24.

At this point, c is no longer less than 10, so the while loop exits and the final value of sum is printed, which is 24.

Read more about programs here:

https://brainly.com/question/26134656

#SPJ1

_______ is the assurance that you can rely on something to continue working properly throughout its lifespan.

A) Reliability
B) Raid
C) P/E cycle
D) MTBF

Answers

A) Reliability is the assurance that you can rely on something to continue working properly throughout its lifespan.
Other Questions
Before sending track and field athletes to the Olympics, the U. S. Holds a qualifying meet. The upper box plot shows the top 12 men's long jumpers at the U. S. Qualifying meet. The lower box plot shows the distances (in meters) achieved in the men's long jump at the 2012 Olympic games. Which pieces of information can be gathered from these box plots? What are the main things I need to know when doing variables on both sides of the equation? What is 648 rounded to the nearest ten Quadrilateral ABCD below is reflected about line m. After the reflection, how is the perimeter of A'B'C'D' related to the perimeter of ABCD?Quadrilateral ABCD below is rotated 180. After the rotation, how is the area of A'B'C'D' related to the area of ABCD? APQR is dilated from the origin at a scale factor of to create APQ'R'.2Select the option that completes the statement:The triangles arebecause their corresponding sides areO congruent, similar, proportionalO congruent, proportional; similarO similar, congruent; proportionalOsimilar, proportional; congruentand their corresponding angles are Part B Match the cardiac components in the left column to the blanks near their functions on the right. View Available Hint(s)Bundle branches AV bundle Internodal pathways Purkinje fibers AV node SA node 1. Electrical link(s) between atria and ventricles2. Convey(s) the impulse down the interventricular septum 3. Set(s) the pace for the entire heart 4 Delay(s) occurs here while atria contract 5. Link(s) between the SA node and AV node 6. Convey(s) the impulse throughout the ventricular walls What is the theme of the excerpt read the excerpt from Gilgamesh a new English version? Classical conditioning occurs when the unconditioned stimulus evokes a response from a neutral stimulus. After a bronchoscopy because of suspected cancer of the lung, a client develops pleural effusion. What should the nurse conclude is the most likely cause of the pleural effusion e:f =2:5 f:g=3:4 work out e:g in simpliest form Round 0.265625 to the nearest hundredth Read the following excerpt from a persuasive speech and then answer the question below.As you can see, donating to this organization would have positive global effects. Bats provide services that are essential to our world: they eat insects, pollinate plants, and spread seeds. "You should open your heart and your wallet to protect bats today!"Which rhetorical device is used in the bolded text? Antithesis Chiasmus Repetition Zeugma How did ww2 improve women's lives? In a football game, a 140 kg linebacker runs at a speed of 4 m/s while a 70kg safety runs at 8m/s. It is correct to say Why did Congress impeach President Johnson? They believed his push for civil rights for African Americans was too aggressive. They believed he was too harsh on former slaveholders. They believed his requirements for territories to become states were not harsh enough.They believed he was too forgiving of former Confederates. The tip of a minute-hand travels 103. 62mm in one hour. Find the length of the minute hand Is (1,-2) a solution to this system of equations?20x+20y=-22x+5y=-8 YES OR NO Which of the following characteristics are true about a typical peptide (amide) bond?1) The bond is planar.2) There is free rotation about the carbonyl carbon and nitrogen bond.3) There is substantial double-bond character to this bond.4) There is a net negative charge on nitrogen and net positive charge on oxygen.O Only statements 1, 2, and 4 are correct.O Only statements 1 and 3 are correct.O Only statements 2 and 3 are correct.O All of the listed statements are correct. The protocol data unit for the Physical layer of the OSI model is payload, or data.TrueFalse Mg + 2HCl --> MgCl2 + H2(g)Assuming STP, how many moles of hydrogen gas did Carl and his partner collect if they collected 5. 6L?Curious Carl and his lab partner were conducting a variety of experiments to produce gases: hydrogen, oxygen, and carbon dioxide. In one experiment, they added a piece of magnesium ribbon to 10 milliliters of hydrochloric acid. They observed bubbles being produced and did a variety of tests to identify the escaping gas; it proved to be hydrogen. The reaction is represented by the following equation. A) 0. 250 molesB) 2. 78 molesC) 5. 60 molesD) 11. 2 moles