10 - In an examination, 500 students appeared. Out of these students, 38 % got A+ grade, 45 % got B+ and the remaining just passed. Assuming that no student failed, find the number of students who got A+, B+ and the number of students who just passed.(Python code)
Q: #include int main() float Bread = 1.09, Water = 2.18, Banana = 1.00, Meat = 7.99; // Unit for bread…
A: Solution: These two line are: //line-1 printf("You have %d loaves of bread, %d bottles of…
Q: Th e following sta tement should determine if x has a value other than 1 or 2.What is wrong with…
A: Value should be 0<x<1 and x>2
Q: aList = ["Cat", "Apple", "Dog", "Lion", "Orange"] animals = [] for i in range (len(aList)) : if…
A: GIVEN: aList = ["Cat", "Apple", "Dog", "Lion", "Orange"] animals = [] for i in range (len(aList))…
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: 9. Do in while.
A: Given : table students, course are given with column names From the above information, we will…
Q: Computer Science This is an introductory exercise to the manipulation of random variables with…
A: Solution:: import numpy as np def f(x): return np.exp(- 0.1*x**2)*x**4 def A(x): return…
Q: MATLAB QUESTION - As of 2018, the population of "A city" is 646 thousand and the population of "B…
A: %Data givencity_A = 646000;city_B = 269000;year = 2018;A_dec = 7.1;B_inc = 12.9; %checking passing…
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: craps (Perkovic, Problem 6.31a) Craps is a single player dice game, that proceeds as follows: 1. the…
A: The answer is given below:-
Q: Good Programming practices help in improving programs readability and understandability both for a…
A: The following are the changes done in program: Ask the user to enter the number. change the…
Q: F. Use the cyclical alphabetic encrypting code that shifts each letter 12 positions to code the…
A:
Q: Assume you work as a cashier in a restaurant. You must keep track of the amount of money your…
A: Solution:-- 1)The given question has required for the solution to be provided with the help of an…
Q: (using recursive function) Write programs that implement the following equations п Y 7K k=0
A: Since language is not defined so it is solved in C. The idea of solution is keep decreasing k untill…
Q: 3- Enter a=3; b=5; e=7, then clear the variable b only Matlab
A: Step 1 : Start Step 2 : Take user input for the variable a , b and c using the input() function.…
Q: BALLISTICS The range of an object (see Figure 5.12) shot at an angle 0 with respect to the waxis and…
A: % Defining the paramtersv = 20.0;g = 9.8; % Create vector thetatheta = linspace(0,pi./2,63);R =…
Q: ogramming problem Consider data points (xị, Y;), i = 0,..., n. We would like to interpolate them…
A: Newton's interpolation method.
Q: 6.57 (Computer-Assisted Instruction) The use of computers in education is referred to as…
A: Actually, c++ is a powerful general purpose language.
Q: 1. How many courses will you have on the first day? 2. If you want to attend courses only 2 days…
A: as per our guidelines we are supposed to answer only 3 sub-parts, please repost the remaining part…
Q: -Write the algorithm and the Pseudo code for the following the questions? 1. Write an algorithm to…
A:
Q: NOTE: (what your answer will contain) 1. Use C PROGRAMMING LANGUAGE ONLY 2. Use RECURSION type of…
A: The program is written in C Language. Please find the source code and output in the following steps.…
Q: In an ancient land, the beautiful princess Eve had many suitors. She decided on the following…
A: Iam using list instead of vector. c++
Q: given a non-negative integer x, the decimal portrayal of which contains n digits. You need to…
A: Here have to determine about red and black code problem statement.
Q: 2.16 LAB: Musical note frequencies On a piano, a key has a frequency, say f0. Each higher key (black…
A: Required: python On a piano, a key has a frequency, say fO. Each higher key (black or white) has a…
Q: After following statements have executed, find the value of the variable a. int a=2, i=0; while…
A: Here we are given with a = 2 and i = 0 Now we have a while loop whose condition is true till the…
Q: Check if number is prime
A: This is very simple. I have written a simple Python code to solve the problem. I have also attached…
Q: In C++ Please if you could show your work.
A: The answer is given below.
Q: 2. Write a program containing the recursive function that will find the following series of numbers…
A: I give the code in C(because you asked in C only) and also provide the output screenshot as well.
Q: A lecturer intends to separate his students into 2 groups based on their INDEX Numbers, those with…
A: Declare a static integer variable at class level, index, to hold the INDEX number of the student.…
Q: Write a program that takes in a year and determines whether that year is a leap year.
A: /******************************************************************************…
Q: Display the list of only leap years from years 2000 to 2025. If year/4 is equal to 0 and years/100…
A: #include <iostream>using namespace std;int main(){ int year;…
Q: NOTE (what your answer will contain) 1. Use CPROKGRAMMING LANGUAGE ONLY 2. Uae RECURSION type of…
A: Hey there, I am writing the required solution (code) below for the above stated question. First , I…
Q: How is the body of a for loop defined? A. The body of a for loop is defined by an indented block of…
A: Repetition statements or looping statements are used to repetitively perform a set of statements as…
Q: Exams.cpp) Suppose a teacher weights the four exams he gives 10%, 25%, 30%, and 35%. Write a program…
A: We have to create one C++ program which can solve the given problem and display the expected output.…
Q: Modified coin-row problem: If we modified the coin-row problem, so that you cannot take the adjacent…
A:
Q: 21. The five line bellow are used to determine the profit or loss of a sale based on the buying cost…
A: Given:
Q: main.c 2. Hide and Seek (Integral) by Catherine Arellano #include 2 #include"decimalPos.h" Your…
A: Paste the code that i provide below #include"decimalpos.h" or at the bottom of decimalpos.h file.…
Q: PROBLEM 23 – 0560: Write a Basic program to solve the following puzzle: A and B are the players. A…
A: The game is centered on the notion of congruence. Let x be the unknown number chosen by B, 1 ≤ x ≤…
Q: 3.6 LAB: Leap year A year in the modern Gregorian Calendar consists of 365 days. In reality, the…
A: The program approach: The program will take in a user input for year. It will then check the input’s…
Q: (in python 3) Take the username and password from a user and check the validity of the password…
A: 1. Take username and password as input from user 2. Check if password contains username, if yes…
Q: Assume that name and age have been declared suitably for storing names (like "Abdullah", "Alexandra"…
A: Actually, string is a sequence of characters.
Q: Python program - It must show the correct final grade debug the code: subjects = ["Math",…
A:
Q: Print the odd numbers between (100,200) using function void odd (int).
A: Here, Code instruction is given to print odd numbers between 100 and 200.
Q: [Python (py3)] The error in the code below is if the number of rows of the matrix is not equal to…
A: The modified program checking the equality of dimension is shown below: import numpy as npimport sys…
Q: Correct answer will be upvoted else Multiple Downvoted. Computer science. You are given two positive…
A: Here have to determine about the Row GCD programming problem statement.
Q: YTHON CODE FOR- Suppose an insurance company is insuring against burglary that happens with…
A: Task : Code the insurance policy in python. Add the histogram for the results.
Q: Q: Code using C++ You are given two integers, n and m. You want to make m equal to 0. You decide to…
A: We are given two, n and m. you want to make m equal to 0. we decide to keep repeating the following…
Q: ar in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longe sun. To…
A: Solution :
Q: Perform any two arithmetic operations on 'n' polynomials using the following options Structures in C…
A: Perform any two arithmetic operations on 'n' polynomials using the following options Structures in C…
10 - In an examination, 500 students appeared. Out of these students, 38 % got A+ grade, 45 % got B+ and the remaining just passed. Assuming that no student failed, find the number of students who got A+, B+ and the number of students who just passed.(Python code)
Step by step
Solved in 3 steps
- pizza (python)Mario owns a pizzeria. Mario makes all of his pizzas from 10 different ingredients, using 3 ingredients on each pizza. Mario’s cousin Luigi owns a pizzeria as well. Luigi makes all his pizzas from 9 ingredients, using 4 ingredients on each pizza. Mario and Luigi have made a bet: Mario believes that customers can order a larger selection of pizzas in his pizzeria than they can order in Luigi’s pizzeria. Use functions for this assignment. Implement a factorial() function yourself (do not use the one from the math module) When choosing k items from n possible items, the number of possibilities can be obtained using the following formula: (??)=?!?!(?−?)!(nk)=n!k!(n−k)! Make a function called choose with two parameters n and k, that implements the above formula. Write a program that calculates the number of pizzas Mario and Luigi can make. The outcome should look like this: Mario can make 120 pizzas.Luigi can make 126 pizzas. Luigi has won the bet.Section: FactThyroid function is measured using a factor called TSH, which stands for thyroid-stimulatinghormone. A TSH test is a blood test that measures this hormone. TSH normal values are 0.5 to 5.0mIU/L. If TSH is over 5.0 thyroid is underactive. On the other hand, if TSH is less than 0.5 thyroid isoveractive.Context: Measuring Air Quality Levels of various air borne pollutants such as Nitrogen Monoxide (NO), Nitrogen Dioxide (NO2) and particulate matter (also called particle pollution) are all major contributors to the measure of overall air quality. For instance, NO2 is measured using micrograms in each cubic metre of air (㎍/m3). A microgram (㎍) is one millionth of a gram. A concentration of 1 ㎍/m3 means that one cubic metre of air contains one microgram of pollutant. To protect our health, the UK Government sets two air quality objectives for NO2 in their Air Quality Strategy The hourly objective, which is the concentration of NO2 in the air, averaged over a period of one hour. The annual objective, which is the concentration of NO2 in the air, averaged over a period of a year. The following table shows the colour encoding and the levels for Objective 1 above, the mean hourly ratio, adopted in the UK. Index 1 2 3 4 5 6 7 8 9 10 Band Low Low Low Moderate Moderate Moderate High…
- Read carefully please!Question-1 Friend's Party Circle: There are a few friends living in the same area. They have a party every weekend and the place of party change each week. It is always a difficult task to select a place which is nearest for everyone. They all decided advantage of Computer Science to solve this problem. to take Names of friends are Ahmed, Rehman, Careem, Basit, Dawood, Ghani, and Farid. Ahmed lives at 5 minutes’walk from rehman and at 10 minutes' walk from Careem. Careem lives at 3 minutes' walk from Dawood. Rehman lives at 4 minutes' walk from Basit and 2 minutes' walk from Dawood. Dawood lives at two minutes' walk from Farid. Ghani lives at 2 minutes' walk from Basit. b. In above directed graph G. You are required to devise an algorithm to find all possible paths.Question-1 Using Python Friend’s Party Circle: There are a few friends living in the same area. They have a party every weekend and the place of party change each week. It is always a difficult task to select a place which is nearest for everyone. They all decided to take advantage of Computer Science to solve this problem. Names of friends are Ahmed, Rehman, Careem, Basit, Dawood, Ghani, and Farid. Ahmed lives at 5 minutes’ walk from rehman and at 10 minutes’ walk from Careem. Careem lives at 3 minutes’ walk from Dawood. Rehman lives at 4 minutes’ walk from Basit and 2 minutes’ walk from Dawood. Dawood lives at two minutes’ walk from Farid. Ghani lives at 2 minutes’ walk from Basit. If we represent a graph G = V (V, E) in which set of vertices are home of each Friend and an edge represents a path between two homes. Provide the adjacency matrix of directed graph of the graph G. In above directed graph G. You are required to devise an…
- Question-1 Friend's Party Circle: There are a few friends living in the same area. They have a party every weekend and the place of party change each week. It is always a lifficult task to select a place which is nearest for everyone. They advantage of Computer Science to solve this problem. all decided to take Names of friends are Ahmed, Rehman, Careem, Basit, Dawood, Ghani, and Farid. Ahmed lives at 5 minutes' walk from rehman and at 10 minutes' walk from Careem. Careem lives at 3 minutes' walk from Dawood. Rehman lives at 4 minutes' walk from Basit and 2 minutes' walk from Dawood. Dawood lives at two minutes' walk from Farid. Ghani lives at 2 minutes' walk from Basit. a. If we represent a graph G = V (V, E) in which set of vertices are home of each Friend and an edge represents a path between two homes. Provide the adjacency matrix of directed graph of the graph G. b. In above directed graph G. You are required to devise an algorithm to find all possible paths.Transcribed Image Text A student took four quizzes in a term and would like to compute their average. He also would like to know what will be the remarks. Follow the range of grades and its equivalent remarks, and then fill-up the table below: 100-95 - Excellent 94-90 – Very Satisfactory 89-85 - Satisfactory 84-80 - Fine 79-75 - Fair 74 and below - Poor(MASTERY CHECKIN Sp1) Spreadsheet Use Response Read the following passage below. Then describe the 3 important ways spreadsheets can help you or a professional do their job. I will use this response for your Mastery Check! What does spreadsheet software do? Spreadsheet software is used to store, organize and analyze data. Most of the time, the data that is entered is numerical, though spreadsheets can also store addresses and contact information. Spreadsheets automatically calculate data based on the formula or function that you create and modify for them. For example, let's say you're using a spreadsheet to track how much money you're using from a budget. You can set up the spreadsheet so every time you enter an item you purchased from the budget, the software automatically subtracts the cost from the total budget. Íf the budget starts at $5,000 and you buy a product that is $400, you input the product and its cost into the spreadsheet, and it automatically does the calculation,…
- python code Input: Name of a person Age of that person Original Price of an item Process: For every vowel in the name of that person, add 0.5% to the discount. If that person is below 18 years old, add 10% discount. If that person is above 60 years old, add 2% multiply by the number of consonants in the person’s name If the length of that person’s name is odd, remove 15% discount else add 10% discount. If the original price of the item is odd, add 20% discount else remove 15% Output: Discounted Price of the item: A large eCommerce company wishes to list the best-selling products, overall and bycategory. For example, one product might be the #1056th best-selling product overall but the #13thbest-selling product under "Sports Equipment" and the #24th best-selling product under "Safety:·Describe how you would design this system.Descriptive form Symbolic form Español ロ~ロ ロヘロ ロvロ (a) Ivan is not wearing sandals or it is not spring. ロ→ロ (b) It is false that "Ivan is wearing sandals or it is spring". (c) (Choose one) - p^q