Get the GPA of a student as input. Calculate the CGPA according to the following table. GPA CGPA >3.75 (GPA * 3.25)/3 3.15 < GPA <=3.75 (GPA * 3.15)/3 2.5
Q: We can assign a value to each character in a word based on their position in the alphabet (a = 1, b…
A: Code function balanced(word) { let alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',…
Q: A thick -walled tube of stainless steel (ks = 19.0 W/m.°C) with 2 cm inner diameter (ID) and 4 cm…
A: We need to calculate heat lost per meter length using below formula:
Q: Suppose a punch recipe calls for a given amount of orange soda, measured in ounces. int amount = 32;…
A: The program computes the number of cans needed to store soda in it. Each can has 12 ounces capacity.…
Q: A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to…
A: Start Input year If year is multiple of 4 If year is multiple of 100 If year is multiple of 400,…
Q: person is trading his money in the stock exchange market. Assume that the daily price of a specific…
A: Solution:
Q: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
A: Algorithm : Step 1 : declare variables. Step 2 : assign the marks of each student in each variable.…
Q: Using C++ common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth…
A: Logic:- check for leap year logic. If userYear%400==0 then it is leap year simply return 1 from…
Q: Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print…
A: Given A test program and we have to complete the print_popcorn_time() function. """............""""…
Q: Let t0 be a specific value of t. Find t0 such that the statement is true: P(t ≥ t0) = 0.005 where df…
A: Dear Student, To find it's answer we need to refer to t-table . Here given that, P(t ≥ t0) = alpha =…
Q: Write a C# program that accept a student biodata; names, age, sex and address. You should also do…
A: The detailed answer is given below:
Q: Given that A and B are real variables with values 1.5, and 2.5 respectively, and C is integer…
A: The given expression is following: NOT(A<0) AND (B/C<=0) The answer is FALSE or 0.
Q: What the following program does? START: LDA 2050H MOV В, А LDA 2051H CMP JC OTHER STA 2052H JMP END…
A: Step 1 The answer is given in the below step
Q: In the presidential elections for the United States of America, there are two types of votes: 1.…
A: Declare the class candidate and define the variables from file in it . Ask the user to enter the…
Q: Let p be the statement "I celebrate" and q be the statement "Bangladesh wins". [Hint: The following…
A: Here in this question we have given a conditional statement .and we have asked that which is…
Q: [thirteenth question]
A: Given bscs = "The final exam in PROG 1" ------------------------------------- s1 = bscs[4:14]…
Q: Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print…
A: Herecour task is to write a python program for the task mentioned in the question. Let's prepare the…
Q: In this question we will design a vending machine with some fictitious coins. Assume the vending…
A: Given question has asked to design a vending machine with given input and output and also asked to…
Q: In c++ A driver needs help finding the shortest path travelling between a number of points. There…
A: Below is the code: apply krushkal algo on graph of each point to each point
Q: What the following program does? 4 Marks START: LDA 2050H MOV B. A LDA 2051H CMP B JC OTHER STA…
A: Find the answer given as below:
Q: An incomplete Sudoku configuration in terms of a 9x9 2-D square matrix(sudoku[][]) is passed as a…
A: Complete the function in C++ to check whether the 9*9 matrix passed to the function is valid sudoku…
Q: a is a variable of data type integer, expression not( a > 3 ) is equivalent to:
A: A is a variable of data type integer equivalent to given expression
Q: HW7_2 This problem uses an interpolating polynomial to estimate the area under a curve. Fit the…
A: Actually, program is an executable software that runs on a computer.
Q: I need the program to print the line "Meal options:" only when there is enough money.
A:
Q: Given two points (x1, y1), (x2,Y2), Manhattan distance is defined as: manhattan = |x2 – x,| + ]y2 -…
A: Python used to answer this question
Q: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
A: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
Q: CHALLENGE 2.1.1: Reading multiple data types. ACTIVITY Type two statements. The first reads user…
A: 1) Take input into variable using input() function 2)default input() function takes input as string…
Q: Analyze the code below: bscs = "The final exam in PROG 1" s1 = bscs [4:14] s2 = bscs [10:14] +…
A: According to the information given:- We have to choose the correct option to satisfy the statement.
Q: Computer Science Write a generator function that generates each of the numbers requested in the…
A: Hey there, I am writing the required solution of the questin mentioned above. Please do find the…
Q: 1 þef ticket_price(age: int) -> float: "*"Return the ticket price for a person with age in years.…
A: Here I have created a function named ticket_price(). In this function, I have used the if statement…
Q: Consider the following code. Assume alist is a list of n numbers. Select the best answer that…
A: ANSWER O(N**2)
Q: This is a programming assignment. You can use any programming language. Program a Genetic Algorithm…
A: ANSWER:--
Q: 1. Write a program to find the value of given equation y = E b+u i=1 b=sum of prime number of x,…
A: The following functions are used in the C++ program to find sum of series: checkPrime function…
Q: 1. (5.8 in 8e) Show the value of x after each of the following statements is performed: a) x…
A: Since there are multiple questions and you have not specified which question is to be answered, we…
Q: Analyze the code below: bscs = "The final exam in PROG 1" s1 = bscs [4:14] s2 = bscs [10:14] +…
A: The given program is as follows - bscs="The final exam in PROG…
Q: 1. Write a function to find the probability of an event in percentage form based on given outcomes…
A: Answer: By using phyton language:- 1.Use the function and compute the probability of rolling a…
Q: Let X = (1,2,..., 100}), and consider two functions f: X→R and g: X R. The Chebyshev metric of f and…
A: Program: import scipy.spatial.distance as distimport numpy as np def main(): # Prepare 2…
Q: Evaluate the following functions: (a) math.sqrt(4) (j) math.floor(-2.5)(b)…
A: Given: Evaluate the following functions: (a) math.sqrt(4) (j)…
Q: suppose someone pays 100.00 during the first year and that yearly payment keeps on doubling. Display…
A: Summary: In this question, we have been given the yearly payment of a person and his payment doubles…
Q: CHALLENGE ACTIVITY 6.7.2: Function with branch: Popcorn. Define function print_popcorn_time() with…
A: 1)declare function using def keyword 2)use if else ladder to print the output based on user input…
Q: In the presidential elections for the United States of America, there are two types of votes: 1.…
A: The three classes fstream, ifstream, and ofstream, which are provided in the fstream headerfile, are…
Q: Note: Numbers greater then 3,999 require symbols with lines over letters. We can't use these, so use…
A: Note: The given python program has been compiled and executed in "repl.it" online…
Q: Write a C# program that accept a student biodata; names, age, sex and address And also 1.…
A: /******************************************************************************…
Q: How many times the above statement will be executed? Write down the Big-O for the above statement?…
A: As per guidelines, we are supposed to answer only one question. Kindly repost the another question…
Q: Let p be the statement "I celebrate" and q be the statement "Bangladesh wins". [Hint: The following…
A: - The question wants to know the contrapositive of the provided statement. - We have the statement…
Q: (10 points) Suppose you have just finished approximating f(x) = x5 for 0 ≤ x ≤a and ended up with…
A:
Q: 1. Give the unifyiing substitition for (x,y,z are variables): f(a) f(b) 2. Give the unifyiing…
A: (a) Here is a substituition that unifies these: { x -> a, y -> f(a), z -> f(a)} This…
Q: In order to discourage excess electric consumption, an electrical company charges its customers a…
A: Please note the given values in the output do not reflect the given rate of 7.5 for the first 250 kW…
Q: Analyze the code below: bscs = "The final exam in PROG 1" s1 = bscs [4:14] s2 = bscs [10:14] +…
A: As per the analysis below Code bscs = "The final exam in PROG 1"s1 = bscs[4:14]s2 =…
Q: ar in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longe sun. To…
A: Solution :
Q: Genetic Algorithm: Last week, a mechatronics engineer traveled to Sana'a to buy electronic devices…
A: with the use of a genetic algorithm, write the fitness function (objective function) to get the…
Step by step
Solved in 2 steps with 2 images
- In a pizza topping preference poll, people voted for their favorite toppings as follows: Topping Votes Mushrooms 8 Cheese 27 Pepperoni 36 Sausage 16 Bacon 23 Construct a Pareto chart for the data. What is the relative frequency for the preference of sausage? 52.2% 27% 14.5% 16% 57.6%The 10 Richest People in the World 2023 (Excel) Rank Name Age Wealth ($bil) Wealth per year 1 Bernard Arnault & Fam 74 211 2 Elon Musk 51 212 3 Jeff Bezos 59 213 4 Larry Ellison 78 214 5 Warren Buffet 92 215 6 Bill Gates 67 216 7 Michael Bloom 81 217 8 Carlos Slim & fam 83 218 9 Mukesh Ambani 65 219 10 Steve Ballmer 67 220 Total Average Create a formula to work out the wealth per year for each person. To do this you must divide wealth by age and then copy the formula down. 2. Use functions to work out the total and average wealth per year at the bottom of the list. NB: Use the SUM & Average functions to do this. 3. Adjust the Name column so that the text is completely visible. 4. Format the Wealth ($bil) Column to display the figures in currency…Suppose you are a computer salesman and your income depend on the total sales and commissions earned for the computers that you sell. Commission rates vary depending on how many units you sold (see chart below). Your income equals to the total sales plus the commission where the commission equals to total sales times the commission rate. That is, commission = total sales * commission rate and income = total sales + commission. Total Sales Commission rate % Less than 200 sold 8% (totalsales < 200) Greater or equal to 200 sold 10% (totalsales >=200 & totalsales <400) Greater than to 400 sold 12% (if (totalsales >= 400) Use Multiway if, else if (use as many you need) and else correctly Review slides 3-CH-2 Slide 4 and 8 Write the code correctly as show in the chapter slides. Pay attention to the commission chart above: (3) input as examples shown 500, 250, 150 You can work with your team and submit your code and output in PDF. 1. Provide the user the commission rate list…
- One way to determine how healthy a person is by measuring the body fat of the person. The formulas to determine the body fat for female and male are as follows: Body fat formula for women: A1 = (body weight x 0.732) + 8.987 A2 = wrist measurement (at fullest point)/3.140 A3 = waist measurement (at navel) x 0.157 A4 = hip measurement (at fullest point) x 0.249 A6 = forearm measurement (at fullest point) x 0.434 B = A1 + A2 A3 A4 + A5 Body fat = body weight - B Body fat percentage = body fat x 100/body weight Body fat formula for men: A1 = (Body weight x 1.082) + 94.42 A2 = wrist measurement x 4.15 B = A1 A2 Body fat = body weight B Body fat percentage = body fat x 100/body weight Write a program to calculate the body fat of a person.Assume a very good NBA team has a 70% chance of winning in each game it plays. Use simulation to answer these questions, where each iteration of the simulation generates the outcomes of all 82 games. Use simulation with 10,000 iterations to answer the questions. For part a, write your numerical answer with no decimal or commas (e.g., if your computed answer is 101,021.128, write your answer as 101021). For part b, write your probability answer to two decimal places with a leading 0 (e.g., write a probability of 90.02% as 0.90). a. During an 82-game season what is the average length of the team's longest winning streak? The average length of the winning streak is . b. What is the probability that the team has a winning streak of at least 16 games? The probability isPut the answer if you are 100% sure of the answer, otherwise no
- Ysing MATLAB or Octave The following is a table showing student scores over 3 thermodynamics exams. (Column 1 = student number, Column 2 = exam 1 scores, Column 3 = exam 2 scores, Column 4= exam 3 scores) [ 1 68 45 92; 2 83 54 93; 3 61 67 91; 4 70 66 92; 5 75 68 96; 6 82 67 90; 7 57 65 89; 8 5 69 89; 9 76 62 97; 10 85 52 94; 11 62 34 87; 12 71 45 85; 13 96 56 45; 14 78 65 87; 15 76 43 97; 16 68 76 95; 17 72 65 89; 18 75 67 88; 19 83 68 91; 20 93 90 92]; Enter the scores matrix into MATLAB and answer the following: a. extract the student number and scores for student 5 in a row vector named student_5 b. extract the scores for test 1 into a column vector named test_1 c. find the…The following equation using the Excel spreadsheet program, books an equation that does not find the value of 2 regardless of the input X, Ysuppose someone pays 100.00 during the first year and that yearly payment keeps on doubling. Display the year where yearly payment is greater than 50,000.00
- Using the information on the image below, The ABC Lumber Co. asks you to write a Phyton program that would produce a table of g properties of its rectangular cross- section lumber. The dimension of the wood is given as base and height in inches.Write an order to generate binomial data with the number of observations (n) being 50, the number of trials (size) being 5 and the probability of success being 0.5, then storing the results in the binomial data matrix, with the number of columns being 5.the value of factor(P/F,i,10) can be found by getting the factor values for(P/F,i,4) and(P/f,i,6)and adding it to