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
- Driving 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…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…// HouseSign.cpp - This program calculates prices for custom made signs. #include <iostream> #include <string> using namespace std; int main() { // This is the work done in the housekeeping() function // Declare and initialize variables here // Charge for this sign // Color of characters in sign // Number of characters in sign // Type of wood // This is the work done in the detailLoop() function // Write assignment and if statements here // This is the work done in the endOfJob() function // Output charge for this sign cout << "The charge for this sign is $" << charge << endl; return(0); }
- Coin Toss Write a function named coinToss that simulates the tossing of a coin. When you call the function, it should generate a random number in the range of 1 through 2. If the random number is 1, the function should display "heads". If the random number is 2, the function should display "tails". Demonstrate the function in a program that sks the user how many times the coin should be tossed and the coin then simulates the tossing of the coin that number of times.TODO Create the function add func to complete the following TODO (). Create the add func() function, which accepts two arguments. The function should use the + operator to add the two arguments and then return the result. For instance, 3 should be returned if the arguments' input values are 1 and 2. Likewise, "good day" should be returned if the input arguments are "good" and "day." # TODO 6.1 print(f"add_func output for 1 + 2: {add_func(1, 2)}") print(f"add_func output for good + day: {add_func('good',' day')}") todo_check([ (add_func(1,2) == 3,'add_func() did not return 3 when using input values 1 and 2.'), (add_func('good',' day') == "good day",'add_func() did not return "good day" when using input values "good" and " day"') ])Feet to Inches Problem One foot equals 12 inches. Use pseudocode to design a function named feetToInches that accepts a number of feet as an argument, and returns the number of inches in that many feet. Use the function in a program that prompts the user to enter a number of feet and then displays the number of inches in that many feet.
- [CelsiusTemperature Table] The formula for converting a temperature from Fahrenheit to Celsius is C = 5/9 * (F - 32) where F is the Fahrenheit temperature and C is the Celsius temperature.Write a function named celsius that accepts two Fahrenheit temperatures (low and high) as arguments. The function will print a table list the Fahrenheit temperatures from low to high and the corresponding Celsuis temperatures. What is the function prototype? (assume only integers used for the temperate) void celsius (int, int); How to implement this function? The function will use a loop to convert the Fahrenheit temperatures to Celsius temperatures and display the values in the console. In the driver program, prompt for the user input for the low and high Fahrenheit temperatures. Call the the function to display the result in the console. Requirements: Use only for-loop for this exercise; Print the output in a table format Include the function prototypes before the main() All functions…Three cars drive a 500-mile route. Write a program that inputs the car's make and the number of gallons of fuel used by each car. After calling a "calcMPG()" function once for each car, have main determine and display which car was the most fuel-efficient and how many miles per gallon it got. The "calcMPG()" function should be passed the distance driven and the gallons of gas used as arguments, and should return the miles per gallon obtained.3. [fight_song.py] Write a program that outputs the following fight song. Your program is required to have a function named `sing_fight_song`. When the `sing_fight_song` function is called it should "sing" the song below by printing it out. You should create other functions to show structure and to eliminate redundancy in your program. More precisely, your `sing_fight_song` function should not consist solely of print statements printing each line of the song. That would be highly redundant. It should call other functions that print reusable parts of the song. Go, team, go! Defeat your foe. Go, team, go! Defeat your foe. Simply the best, Better than the rest. Go, team, go! Defeat your foe. Go, team, go! Defeat your foe. Simply the best, Better than the rest. Go, team, go! Defeat your foe. Go, team, go! Defeat your foe.
- c++ Write a function that returns a float value. The function will check the users entry. It will return a float value which is between 0 and 100 and is divisible by 17 If entered value is not a float, display “Error!!! Not a number”. If the number is out of range display “Error!!! Outside the range”. If the number is not between the range, the users will be prompted to enter another number. It will return only a valid numberQue: Write a function to convert temperature from Fahrenheit to Celsius named “ConvertFtoC” that takes one double value for Fahrenheit as argument, and returns the equivalent temperature in Celsius(type double). Create a program that exercise this function by obtaining a Fahrenheit value from the user, calling the function, and displaying the value of Celsius it returns. [Formula: Celsius = (Fahrenheit – 32 ) * 5/9 ] note: use C languageCustomized step counter Learning Objectives In this lab, you will Create a function to match the specifications Use floating-point value division Instructions A pedometer treats walking 2,000 steps as walking 1 mile. It assumes that one step is a bit over 18 inches (1 mile = 36630 inches, so the pedometers assume that one step should be 18.315 inches). Let's customize this calculation to account for the size of our stride. Write a program whose input is the number of steps and the length of the step in inches, and whose output is the miles walked. 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 is: 5345 18.315 the output is: You walked 5345 steps which are about 2.67 miles. Your program must define and call the following function. The function should return the number of miles walked.def steps_to_miles(user_steps, step_length) # Define your function here if __name__…