Calculate Degree Write a program i
Q: What is the main function of the CPU?
A: The CPU is also known as central processing unit.
Q: Write a python program to print the first word that is present in uppercase manner in the user enter...
A: string = input("Enter a string: ") lst = string.split(" ") lst[0] = lst[0].upper() new_string = " "....
Q: Identify three areas where data can be stored and describe the positive and negative issues of data ...
A: Introduction: When it comes to data storage, humans need a spot to save the information they process...
Q: Who invented the first laptop?
A: The concept of portable computer given by the Alan kay in 1968 but Adam Osborne invented the laptop ...
Q: On your own computer, find four files that are stored in four different directories. For each file, ...
A: System used: Windows 10 (Dell inspiron PC) Relative filename and complete filename: The relative fil...
Q: What is meant by the idea of storing data at the event level ?
A: Introduction: Data: Data is unprocessed information recorded, gathered, and analyzed from various so...
Q: Who invented the first mainframe computer?
A: The answer is
Q: Write a program to enter a number and create a (3X3) matrix with (1) in all elements if the inserted...
A: It is defined as set of instructions that a computer uses to perform a specific function. Programs a...
Q: The totality of computer systems in a firm is called its: a) Applications portfolio b) Systems burd...
A: A computer along with additional hardware and software together is called a computer system.
Q: What principles are preferred to bring data into cache, so that low amount of miss ratio is being ob...
A: Cache misses can be diminished by evolving limit, block size, or potentially associativity. The init...
Q: What part of the brain retrieves memory?
A: What part of the brain retrieves memory?
Q: what is the choice which best completes the following sentence Computing performance be improved by ...
A: the answer is given below :
Q: C- Answer with True or False (4 only) 1- The "Listl.AddItem (i)" is used to add an item into the lis...
A: Note: Answering the first three subparts as per the guidelines. Task : Given the statements. The ta...
Q: Explain DHCP
A: Please find the detailed explanation of the Dynamic Host Configuration Protocol(DHCP).
Q: puter and
A: Who invented computer and in which year?
Q: Write a java program to take the elements of n xn matrix from the user and print it's transpose matr...
A: Code: import java.util.Scanner; public class Main { public static void main(String[] args) { int...
Q: (iv) How many bytes in memory will be required to store 10 integers and 6 boolean variables.
A: Find the size of memory in bytes required to store 10 integers and 6 boolean variables.
Q: Write a program to enter a number and create a (3X3) matrix with (1) in all elements if the inserted...
A: I give the code in Python as per your requirement along with code and output screenshots.
Q: In the Fortran language as follow: (the matrix is defined (3,4 .) ?
A: Lets see the solution.
Q: Step Response From: r To: y 0.9 System: 1OTransfer, 2y 0.8 System: 1OTransfer,2y VO: r to y Peak amo...
A: ANSWER: Lead-lag Controller: C(s) =1+aTs1+Ts [a>1] C(s) =Kc(s-z0)s-p0
Q: how many time the word('HELLO') will be printed for i=1:2 for j=1:4 disp('hello') end end O 5 4 6. 8...
A: The correct option that the word hello prints is as follows.
Q: Explain what is a web server , and how does they work ?
A: Defined a web server, and its work
Q: What is the difference between a thumb drive and a USB drive?
A: INTRODUCTION: A thumb drive is a compact solid-state drive that plugs into a USB port on a computer...
Q: What does a CPU look like?
A: The external view of a cpu is cuboidal in shape.
Q: int numbers15] = (2,4,6,8,10}; int numPer = numbers; cout « * (numbers + 3) « endl; cout << * (numbe...
A: Pointer is a variable that can hold memory address of another variable. Here pointers are used. The ...
Q: What is the history of computer science?
A: INTRODUCTION: The study of computers and computing, encompassing their theoretical and algorithmic ...
Q: Which device is utilised to control the networks data flow ?
A: To be determined which device is utilized to control the networks data flow ;
Q: Who invented the hybrid computer?
A: Solution :: Combination of two things/gas-electric vehicle computers are computers that show featur...
Q: What does personal computer mean?
A: Introduction: A personal computer (PC) is a digital computer that can only be used by one person at ...
Q: What is a class 4 SD card?
A: There are many type of SD card such as class 2, class 4, class6 and class 10 SD card stands for secu...
Q: It is required to design a 3-bit counter using T flip flop. The output sequence is: 000, 010, 100, 1...
A: 3-bit Counter: The 3-bit Asynchronous binary up counter contains three T flip-flops and the T-input ...
Q: What oxidizer is used to prepare the chemical referred to as "piranha" in the computer-chip industry...
A: Piranha solution It is also known as piranha etch it's mixture of sulfuric acid and hydrogen peroxi...
Q: Describe Data Sparsity, and how does it impact on aggregation?
A: The word "data sparsity" refers to the occurrence of not noticing enough data in a dataset. The data...
Q: hat is the Logical data model, Logical data modelling, Physical data model and Physical data modelli...
A: Data is a crucial corporate asset in today's competitive digital environment since it represents inf...
Q: Which device is utilised to control the networks data flow ?
A: Introduction: Flow control is the process of managing data flow between computers or devices, or bet...
Q: 2.c Write a Python program to input an integer greater than 99 and print the digit at the hundredth ...
A: Required:- Write a Python program to input an integer greater than 99 and print the digit at the hun...
Q: Write a Python program that contains the following functions: a function called area_cylinder, whic...
A: I give the code in Python as per the requirement along with output and code screenshot
Q: What is system image recovery?
A: System Image Recovery is one of the options in System Recovery of Windows. System Recovery is a tech...
Q: how many time the word('HELLO') will be printed for i=1:2 for j=1:4 disp('hello') end end O 4 6.
A: Loop will run for 4 times only when i=1. When i =2 , j has already reached j=4 ..so loop will end d...
Q: f(r)dr = 6. (b – a) " (f(a)+ 4f (a) + 45la + b) + + f(b)
A: We need to write a C++ program to compute the definite integral of f(x). let f(x) be a polynomial fu...
Q: What is unique about a multi-core processor?
A: Find Your Answer below
Q: how do we do an external criticism on a webpage?
A: A website's web page (or webpage) is a hypertext document that is presented to a user through a web ...
Q: how to draw the flowchart of Quicksort algorithm.matlab
A: Sort a row vector in ascending order using a variant of Quicksort. Original work: C. A. R. Hoare: Qu...
Q: Who invented the hybrid computer
A: Hybrid computers combine the advantages of both digital and analogue computing. Some calculations a...
Q: C- Answer with True or False (4 only) 1- The "Listl.AddItem (i)" is used to add an item into the lis...
A: Need to answer True or False for the given statement :
Q: What is plural of computer mouse?
A: Introduction: Computer Terminology: The invention of computers in the 1950s paved the way for the b...
Q: QUESTION 3 (1 hour: solution by 6.00pm) Based on Question 1, create a program that calculate the fol...
A: I give the code in Java as per your requirement along with code and output screenshot
Q: What is a gigabyte
A: your question is about what is a gigabyte? let's see the solution to the question
Q: What does a CPU look like?
A: Introduction: Central Processing Unit (CPU): The CPU is the main calculator within a computer. These...
Q: How do computers store data?
A: Defined the computers store data
Calculate Degree
Write a program in which you define the function called calculate_degree. This function must receive a float number between 0 and 1, and must return an alphabetical note according to the following table.
score
Note
> 0.9
TO
> 0.8
B.
>0.7
C
> 0.6
D
<= 0.6
F
Entry
A float number between 0 and 1.
Exit
The letter corresponding to the score assigned according to the table above.
If the input is not within the range of 0 to 1 (inclusive), the function should return the legend "bad score" (without the quotes).
Program execution examples
>>> 0.95
TO
>>> 10.0
wrong score
>>> 0.5
F
Step by step
Solved in 2 steps with 2 images
- FizzBuzz Interview Question Create a function that takes a number as an argument and returns "Fizz", "Buzz" or "FizzBuzz". If the number is a multiple of 3 the output should be "Fizz". If the number given is a multiple of 5, the output should be "Buzz". If the number given is a multiple of both 3 and 5, the output should be "FizzBuzz". If the number is not a multiple of either 3 or 5, the number should be output on its own as shown in the examples below. The output should always be a string even if it is not a multiple of 3 or 5. Examples fizz_buzz (3) "Fizz" fizz_buzz (5) → "Buzz fizz_buzz (15) "FizzBuzz" fizz_buzz (4) "4" 11Driving costs - functions Learning Objectives Create a function to match the specifications Use floating-point value division Instructions Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print(f'{your_value:.2f}') Ex: If the input to your program is: 20.0 3.1599 the output is: The gas cost for 10 miles is $1.58 The gas cost for 50 miles is $7.90 The gas cost for 400 miles is $63.20 Your program must define and call the driving_cost() function. Given input parameters driven_miles, miles_per_gallon, and dollars_per_gallon, the function returns the dollar cost to drive those miles. Ex: If the function is called with: 50 20.0 3.1599 the function returns: 7.89975 def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon) Your program should…er 6 Functions Programming Exercises te 1. Rectangle Area ngle Area The area of a rectangle is calculated according to the following formula: Area = Width X Length Design a function that accepts a rectangle's width and length as arguments and returns the rectangle's area. Use the function in a program that prompts the user to enter the rectangle's width and length, and then displays the rectangle's area.
- Domino's Time Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you ordered a lot of food from Domino's. Pizzas are $12, an order of pasta is $6, and chicken wings are $8. Write a function that asks the user how many of each food item they would like, and then print a response telling them what their order to- tal will be. The order total should be an integer. >>> dominosTime() How many pizzas do you want? 3 How many orders of pasta do you want? 2 How many orders of chicken wings do you want? 2 By ordering 3 pizzas, 2 orders of pasta, and 2 orders of chicken wings, your order total comes to $64.helppp meee Instructions: You are provided with the isLeapYear() function which is already declared and defined for you. Your task is to ask the user for a year and then call the isLeapYear function to check whether the year is a leap year or not. Input 1. Year to be checked Output should be like this: Enter year: 2020 2020 is a leap year note: If a certain year is a leap year, print "<INSERT_YEAR_HERE> is a leap year" Otherwise, print "<INSERT_YEAR_HERE> is not a leap year" MY CODE: (IN C LANGUAGE PLEASE) #include<stdio.h> int isLeapYear(int); int main(void) { // TODO: Write your code here return 0;} int isLeapYear(int n) { if( (n % 4 == 0 && n % 100 != 0) || (n % 100 == 0 && n % 400 == 0) ) { return 1; } return 0;}Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Write the following functions in the program: calc_average. This function should accept five test scores as arguments and return the average of the scores. determine_grade. This function should accept a test score as an argument and return a letter grade for the score based on the following grading scale: Score Letter Grade 90–100 A 80–89 B 70–79 C 60–69 D Below 60 F Write the following functions: getTestScore(): This function prompts user for five test scores and returns test score to the caller. calcAverage(): This function accepts five test scores as arguments and returns the average of the five test scores. determineGrade(): This function accepts an average as an argument and returns a letter grade for the score based on the grading scale. displayData(): This method displays all five…
- A(n) ____ variable is defined inside a function and is not accessible outsidethe function .Student Number, Grade 101029383,90 192736611,10 109800384,0 292833315,80 Complete the function below. If a line is long, you may write it in multiple lines at one blank, but please only write a single statement. def write_final_grades (assignment_grades: Dict, resubmit_grades: Dict, fname: str) -> None: """Write final marks to a final grade file named fname. assignment_grades maps student numbers to grades for the original assignment submission. resubmit_grades maps student numbers to grades for the resubmission of the same assignment. The resubmit penalty of 20% has not been applied within resubmit_grades. The higher mark, after resubmit penalties are applied, is the final mark for a student. Assume that the same student IDs are in both dictionaries. Assuming "grades.txt" is the original grade file shown (on the previous page) and "resubmit.txt" is the file above this function header: >>> original = make_dictionary ("grades.txt") >>> resubmit = make_dictionary ("resubmit.txt") >>>…____ are declared within the body of a function. (A) Variables (B) Local variables (C) Main functions (D) Arrays
- 7.Celsius Temperature Table //write code under void challenge and create function The formula for converting a temperature from Fahrenheit to Celsius is C=59(F−32)C=59(F-32) where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function named celsius that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents.\ my code below please adust and use chapter 1- 6 terminology //use only chapter 1-6 terminology!!// must validate input using do while loop examle line 98 - 108// //call functions and follow the challenge instructions//Description: Assignment6 C++ Chapter 6 #include <iostream>#include <string>#include <iomanip>#include <fstream>using namespace std; // Function prototypesint menuOption(); double getSales(string…The Problem__: Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: ⚫ void getScore() should ask the user for a test score, store it in a reference param- eter variable, and validate it. This function should be called by main once for each of the five scores to be entered. ⚫ void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores. ⚫int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop. Input Validation: Do not accept test scores lower than 0 or higher than 100. YOU MUST USE THE STATED FUNCTIONS AND COMPLETE Input VALIDATION. **DO NOT use an ARRAY OR GLOBAL VARIABLES!!. you MUST USE function prototyping TEST THE FUNCTION TWICE.…Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Write the following functions in the program: • calc_average-This function should accept five test scores as arguments and return the average of the scores. • determine_grade-This function should accept a test score as an argument and return a letter grade for the score based on the following grading scale: Score Letter Grade 90-100 A 80-89 B 70-79 60-69 D Below 60 F A sample run is as follows: Enter test score 1: 75.0 Enter test score 2: 95.0 Enter test score 3: 80.0 Enter test score 4: 90.0 Enter test score 5: 85.0 Your grades are as follows: Test 1: C Test 2: A Test 3: B Test 4: A Test 5 : B