Shannon and Jasmine bowl as a team. Each of them bowls three games in a tournament. They would like to know their individual averages for their three games and the team average. Allow the user to input the scores for each player. Output Shannon’s average, Jasmine’s average, and the team’s average. You will need the following variables: Score1 Score2 Score3 avgJasmine sumShannon sumJasmine avgShannon teamAvgYou will need the following formulas: teamAvg = (avgShannon + avgJasmine)/2. write this program using raptor.
Q: e can view a list of variables store in the Variable PSDrive with this cmdlet. Select the best…
A: EXPLANATION: Get-ChildItem cmd is used to get the items and child items that are present in one or…
Q: C++ Code Mr. Naughty loves to play with balls. So, his friend, Mr. Nice, gave him n balls to play…
A: Code process The first line contains the same number n - the number of balls. Inext n lines contain…
Q: assign a double variable d to an int variable x, you write ____.
A: This is an explicit type conversion. If we want to assign a value of larger data type to a smaller…
Q: Modify the above program to compute the side area, total area, and volume of a cylinder and the area…
A: PROGRAM STRUCTURE: Include the required header files. Write the definition of the first function.…
Q: Modify the following program so that it will read in and average four exam scores rather than two:…
A: Step 1:- The given instructions of the program are explained in two programming languages. I am…
Q: An electronic shop wants you to write a program to take orders from the clients and print the…
A: function main: Start read item read price read quantity read delivery type if delivery is fast then…
Q: Write a program that allows the user to enter the last names of five candidates in a local election…
A: Actually, program is a executable software that runs on a computer.
Q: In city street grids, intersections are often defined by two integers, counting the position of…
A: We need to add the line int distance = Math.abs(h2-h1) + Math.abs(v2-v1); in the given code to…
Q: Two people play the game of Count 21 by taking turns entering a 1, 2, or 3, which is added to a…
A: Program intiates necessary variables and accepts only values 1/2/3 from the user if not, asks for…
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: When you use a mortgage to purchase a home, the lending institution effectively owns the home. You…
A: Answer :
Q: Let's modify the program from this section so that the user can supply the interest rate. For very…
A: Step 1: Declare a constant to store initial balance. Step 2: Declare and initialize year to be 0.…
Q: [thirteenth question]
A: Given bscs = "The final exam in PROG 1" ------------------------------------- s1 = bscs[4:14]…
Q: Modify the above program to compute the side area, total area, and volume of a cylinder and the area…
A: The program is written in java
Q: You'll write a poem in this program. However, there are two types of poems you'll have to print out:…
A: Actually, Java is a programming language originally developed by James Gosling at Sun Microsystems…
Q: There is an offer that says that he will get a 20% discount if both he and his brother are less than…
A: According to the question , we have to Write a code that prints ‘true’ if he is eligible for the…
Q: A corporation named XYZ needs a program to calculate how much to pay their part-time and full-time…
A: The program code is : - for XYZ company : class Employee: def…
Q: "XYZ" Company is planning to raise its employees' salaries based on the following percentage basis:…
A: The question did not say which programming language is used. Hence C++ has been used .A C++ program…
Q: Write a program that uses a switch statement as follows: If game contains the letter p , or P the…
A: C++ Program: #include <iostream>using namespace std; // Function print the words Play Station…
Q: Suppose you want to deposit a certain amount of money into a savings account and then leave it alone…
A: PROGRAM: #include <bits/stdc++.h> #include <iostream> #include <stdio.h> using…
Q: Suppose that billingAmount is a double variable, which denotes the amount you need to pay to the…
A: Algorithm: Declare and initialize the constant variable creditOnFullBillingPayment with 10.00.…
Q: Q/lf 72 = mark is an integer variable and grade is a symbolic variable then the output to be printed…
A: The if-else-if ladder statement executes one condition from multiple statements. Exceution happens…
Q: . Given a situation where Alex and Andrew share a bank account with Current Balance RM600 for their…
A: A race condition will happen when the shared region (critical region) was used parallelly by…
Q: Your program will calculate the cost of orders on Amazon.com witha quantity and price, and add…
A: Program in Java: import java.io.*;public class Ordering_System{ public static void main(String…
Q: What are the final values of x, y, and z. int x = 2; int y = 3; %3D int z = 0; X = -X; X = x & OxF;…
A: Integer takes 4 bytes of memory int x=2 x = 00000000 00000000 00000000 00000010 int y=3 y = 00000000…
Q: "XYZ" Company is planning to raise its employees' salaries based on the following percentage basis:…
A:
Q: You have a red lottery ticket showing ints a, b, and c, each of which is 0, 2. If they are all the…
A: Given:
Q: What is the last value of x, y and z? int x = 3, y =5, z = 0; %3D if (x > 0) Z - X; if (z > 0) x =…
A: I have provided both answer with it's output in step 2
Q: By using Loop in c++, you are responsible to develop a Credit Limit Calculator, which will determine…
A: Find Your Code Below
Q: Remember the Collatz function? If x is odd, then collatz(x) = 3.x +1 but if x is even then…
A: def collatz(num): if num % 2 == 0: return num // 2 else: return 3 * num + 1…
Q: If you are flying with an economy ticket, there is a possibility that you may get upgraded to…
A: A decision table is a graphic representation that describes the logical link ( in understandable…
Q: Answer to the following: Suppose x, y and z are int variables and w and t are double variables.…
A: The expression mentioned above is executed by the c++ program written below. Please refer the code…
Q: Test if the value of the variable age is greater than 18 and less than or equal to 40. If it is,…
A: According to the Question below the Solution: Output:
Q: (This is how the output should come and please answer it as soon as possible) Output:…
A: The python code is
Q: Q2:What is the range of variable (num) that makes the variable (x) equal to 120: int num,x=100;…
A: x is already assigned to 100
Q: Answer the following true/false questions using the following code. And state why it is true or…
A: 1. Yes we can tell what type of variable match is by seeing the above code. True 2. Yes we can tell…
Q: Write a unit conversion program that asks the users from which unit they want to convert (gal, oz,…
A: //Code In Java import java.util.*; public class Main{ public static void main(String[] args) {…
Q: In Saudi Arabia, the Kudai Parking AreNa is a parking lot that is next to the Ajyad Police Station…
A: Prolem Statement: Write a program that calculates the occupancy rate for each zone of a massive…
Q: Suppose that overSpeed and fine are double variables. Assign the value to fine as follows: If 0 <…
A: An if..else statement is used to write the specified details.
Q: (10 points) Suppose you have just finished approximating f(x) = x5 for 0 ≤ x ≤a and ended up with…
A:
Q: In the given code, the values of installment1.dueDate and installment2.dueDate is getting printed…
A: There is a small error of just a 'new' keyword before Date() method and it is fixed by using 'new…
Q: (PYTHON) For Checkpoint B, you will extend your code from Checkpoint A by calculating the WCT for…
A: Objective: According to the given question, the input validation check for the number of locations…
Q: Declare an integer variable named ones and initialize it to the value in the ones position from…
A: In a number, the position of each digit is identified by its place value. For example, if number,…
Q: Please do this in Python Programming and provide Screenshots The output should be exact same like in…
A: According to the Question below the Solution: As per our guidelines we are supposed to answer?️…
Q: CREATE A SIMPLE CALCULATOR THAT PICKS TWO NUMBERS FROM A USER AND CALCULATES THE FOLLOWING: //…
A: C - Programming : #include<stdio.h>int sum(int n,int m){ return n+m;}int product(int n,int m){…
Q: if a=7 and b=3, write the values of vector d if >>d=[5, a+b, a^2, a*b] * Your answer write the…
A: I give the code along with output in matlab
Q: 1)Write a shell scriptthat calculate electricity bill.The rates of electricity per unit are as…
A: In first question error is there units condition must be <= 300 beacuse >=300 is covering in…
Q: Suppose that overSpeed and fine are double variables. Assign the value to fine as follows: If 0 15,…
A: Explanation: The given scenario is achieved through “if-else-if” statement. Here, the two variables…
Shannon and Jasmine bowl as a team. Each of them bowls three games in a tournament. They would like to know their individual averages for their three games and the team average. Allow the user to input the scores for each player. Output Shannon’s average, Jasmine’s average, and the team’s average. You will need the following variables: Score1 Score2 Score3 avgJasmine sumShannon sumJasmine avgShannon teamAvgYou will need the following formulas: teamAvg = (avgShannon + avgJasmine)/2. write this
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 3 images
- In your favorite open world adventure video game, currency conversion is as given below: 1 Gold coin 23 Bolts 1 Gem 13 Gold coins Write a program that takes a number of Bolts as user input (as an integer) and converts it to the number of whole Gems, Gold coins, and Bolts as shown below. The conversion information between these measurement metrics is provided in the table above. The number of Bolts should be converted in such a way that maximizes the whole number of Gems and Gold coins. Expected output 1 (bold is user input) Enter the number of Bolts: 32 0 Gems(s) 1 Gold coin(s) 9 Bolt(s) Expected output 2 (bold is user input) Enter the number of Bolts: 3000 10 Gem(s) 0 Gold coin(s) 10 Bolt(s) The file should be named as convertCurrency.cpp. Don’t forget to head over to Coderunner on Canvas and paste your solution in the answer box!Please note that on the last line of the code, we need to print out the 'and" with the smallest and the largest number for min and max functions in order to maximize our credit with the zyBooks lab assignment for 3.9. Code Hints: smallestnum = min(usernumbers) #The smallest number is printed out - for example 5, 10, 15 - 5 would be printed out largestnum = max(usernumbers) #The largest number is printed out - for example 5, 10, 15 - 15 would be printed out Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the list values and the smallest and largest integers in the list using min and max built-in functions . This code runs in zyBooks..... Ex: If the input is: 10 5 3 21 2 -6 the output is: [10, 5, 3, 21, 2] 2 and 21 user_numbers = [] user_input = int(input())while user_input > 0: user_numbers.append(user_input) user_input = int(input())print(user_numbers) ''' Complete code here.…Please note that on the last line of the code, we need to print out the 'and" with the smallest and the largest number for min and max functions in order to maximize our credit with the zyBooks lab assignment for 3.9. Code Hints: smallestnum = min(usernumbers) #The smallest number is printed out - for example 5, 10, 15 - 5 would be printed out largestnum = max(usernumbers) #The largest number is printed out - for example 5, 10, 15 - 15 would be printed out Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the list values and the smallest and largest integers in the list using min and max built-in functions . Ex: If the input is: 10 5 3 21 2 -6 the output is: [10, 5, 3, 21, 2] 2 and 21 user_numbers = [] user_input = int(input())while user_input > 0: user_numbers.append(user_input) user_input = int(input())print(user_numbers) ''' Complete code here. '''smallest_num=min(user_numbers)largest_num =…
- Choose the best data type for each of the following, so that no memory storage is wasted. Give an example of a typical value that would be held by the variable, and explain why you chose the type you did. the number of years of school you have completed your final grade in this class the population of China the number of passengers on an airline flight one players score in a Scrabble game the number of Electoral College votes received by a U.S. presidential candidate the number of days with below freezing temperatures in a winter in Miami, Florida one teams score in a Major League Baseball game(This is how the output should come and please answer it as soon as possible) Output: 1.==================================== Hogwart's Dragons is a Quidditch team. Number of players in Hogwart's Dragons is 2 The Players are: Seeker: Player name: Harry Potter, House: Gryffindor Chaser: Player name: Katie Bell, House: Gryffindor 2.==================================== We do not have enough players to form a squad. 3.==================================== 4.==================================== Hogwart's Dragons is a Quidditch team. Number of players in Hogwart's Dragons is 4 The Players are: Seeker: Player name: Harry Potter, House: Gryffindor Chaser: Player name: Katie Bell, House: Gryffindor Beater: Player name: Vincent Crabbe, House: Slytherin Keeper: Player name: Miles Bletchley, House: Slytherin 5.==================================== We do not have enough players to form a squad. 6.==================================== We have enough players to form a squad. But we cannot form a perfect…When you use a mortgage to purchase a home, the lending institution effectively owns the home. You buy back part ownership in the home with each monthly payment. The part you have bought back is your equity in the home. If the mortgage amount is P dollars, the monthly interest rate is r as a decimal, and the term of the mortgage is t months, then your equity after k payments is E(k) = P((1 + r)k − 1) (1 + r)t − 1 dollars. In this exercise, assume that the mortgage amount is $200,000, the APR is 6% so r = .06/12 and the term of the loan is 30 years (360 months). (a) Find a formula for the equity. (b) Make a graph of the equity over 360 months, the term of the loan. (c) Does the graph show that you have half-ownership in the home halfway through the term of the mortgage? Halfway through the term of the mortgage corresponds to k1 = _______ payments. From the graph, we see that E(k1) is ________ half of the mortgage amount, so we _______ have half-ownership in the home…
- Suppose that billingAmount is a double variable, which denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00 or 1% of the billingAmount, whichever is smaller, as a credit on your next bill; If you pay at least 50% of the billingAmount, the penalty is 5% of the balance; If you pay at least 20% of the billingAmount and less than 50% of the billingAmount, the penalty is 10% of the balance; otherwise the penalty is 20% of the balance. Design an algorithm that prompts the user to enter the billing amount and the desired payment. The algorithm then calculates and outputs the credit or the remaining balance. If the amount is not paid in full, the algorithm should also output the penalty amount.You are given an integer variable dollarAmount that will have an integer value of ten or larger. It is a value that we want to display on a check. In order to write out the amount in words, the first step is to determine the digit from the ones position and from tens position. We are going to take those first steps! Declare an integer variable named ones and initialize it to the value in the ones position from dollarAmount. Declare an integer variable named tens and initialize it to the value in the tens position from dollarAmount. Declare an integer variable named hundreds and initialize it to the value in the hundreds position from dollarAmount. e.g. If dollarAmount = 1729,we would expect ones = 9, and tens = 2, and hundreds = 7. Sample input/output: Input Output 1729 Ones: 9 Tens: 2 Hundreds: 7 19452 Ones: 2 Tens: 5 Hundreds: 4 Output has been taken care of for you.The interest paid on a savings account is compounded daily. This means that if you start with startbal dollars in the bank, at the end of the first day you’ll have a balance ofstartbal * (1 + rate/365)dollars, where rate is the annual interest rate (0.10 if the annual rate is 10 percent). At the end of the second day, you’ll havestartbal * (1 + rate/365) * (1 + rate/365)dollars, and at the end of n days you’ll havestartbal * (1 + rate/365)ndollars. Write a program that processes a set of data records, each of which contains values for rate, startbal, and n and computes the final account balance.
- 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…Suppose you want to deposit a certain amount of money into a savings account, and thenleave it alone to draw interest for the next 10 years. At the end of 10 years, you would like tohave $10,000 in the account. How much do you need to deposit today to make that happen?You can use the following formula, which is known as the present value formula, to find out:The terms in the formula are as follows: [5 marks]• P is the present value, or the amount that you need to deposit today.• F is the future value that you want in the account. (In this case, F is $10,000.)• r is the annual interest rate.• n is the number of years that you plan to let the money sit in the account.Write a method named presentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years asarguments. It should return the present value, which is the amount that you need to deposit today.Demonstrate the method in a program that lets the user experiment with…Let's modify the program from this section so that the user can supply the interest rate. For very small interest rates, it may take a very long time for the balance to double. Assume the user can't wait for more than twenty years. Stop adding interest when the balance has doubled or twenty years have elapsed. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 finaldoubleTARGET=2*INITIAL_BALANCE; doublebalance=INITIAL_BALANCE; intyear=0; Scannerin=newScanner(System.in); System.out.print("Interest rate in percent: "); doublerate=in.nextDouble(); // TODO: Count the years required for the investment to double // but no more than 20 years /* Your code goes here */ System.out.println("Year: "+year); System.out.printf("Balance: %.2f%n", balance); }