Q3: complete the function that returns the area of a segment of a circle with radius r and angle theta (in degrees). Note, use math.pi for pi. import math def segment_area(r,theta): """calculate the area given radius r and angle theta, return the segment's area. Use the variable named area' to hold and return the correct value # your code here return area
Q: Ada Lovelace is well-known for what she did.
A: A program is source code which is written in human readable format. It gets converted into machine l...
Q: in python write a function where it makes a dictionary from given text file. If no value is present ...
A: SUMMARY: - Hence, we discussed all the points.
Q: What is the mathematics behind AI machine learning?What kind of math's is needed for machine learni...
A: What is the mathematics behind AI machine learning?What kind of math's is needed for machine learni...
Q: Figure out how many subnets are available given the following network addresses: 1. 244.0.0/20
A: Below is the answer to above question. I hope this will be helpful for you....
Q: What two conditions must be met before an entity can be classified as a weak entity? Give an example
A: Introduction: What two conditions must be met before an entity can be classified as a weak entity? G...
Q: Create the Median class that has the method calculateMedian that calculates the median of the intege...
A: Given :- Create the Median class that has the method calculateMedian that calculates the median of ...
Q: Create flowchart for constructing a Binary Tree.
A: let us see the answer:- A complete binary tree is one in which all of the levels are completely fill...
Q: Which of the following is a drawback of DDA line drawing algorithm? floating point arithmetic...
A: What Is DDA Algorithm? The DDA method is the simplest of all the line generating techniques in compu...
Q: Which measures for usability and user experience were used in the review, and how were they distribu...
A: Intro The usability and user experience metrics, that are utilized in the evaluation are: Testing ...
Q: 8. For the following circuits, find a Boolean expression and construct the truth table. a) A B b) А ...
A: Defined the boolean expression and truth table for the given circuits
Q: When would you utilize a data mart instead of a data warehouse for business intelligence? Describe a...
A: Introduction: Data storage is a term that describes a sort of technology that is used to store data ...
Q: code a c++ program, game of 23 (please do not use break) The game of "23" is a two-player game that...
A: #include<iostream> using namespace std; class Game//Class { public: int logic(int x, int t...
Q: Write a C++ program to implement the Queue Class. Write implementations for the methods of the Queue...
A: Step 1 : Start Step 2 : Declare the node of the queue. Step 3 : Declaring the Queue class. Step 4 : ...
Q: Your task for this assignment is to create a network diagram for two projects. The activity, immedia...
A: Project 1: Critical path, Total float, Free float, Independent float A - 3 B A 4 C - 6 D - ...
Q: Write an 80x86 Intel assembly language program: Declare two integer arrays and initialize the firs o...
A: Declare Array A and B with given elementCreate Array C with ? reserved byteinside main procedure loa...
Q: In chapter 4, MARIE instructions are 16-bit long (4-bit opcode and 12-bit address). So, MARIE can ad...
A: We need to describe why MIPS instructions that are 32-bit long (with 6-bit opcode) but can address u...
Q: ossus computer come
A: The Colossus computers were created by British codebreakers between 1943 and 1945 to aid in the cryp...
Q: 3. Suppose you are asked to build a database application P for a bicycle rental shop. Assume your da...
A:
Q: The six components of an information system must be identified, listed, and described.
A: Introduction: Information System (IS): An information system is a system for organizing, storing, c...
Q: type your answer not picture 3. Explain the following MIPS addressing modes with the use examples (...
A: A) Register mode : Hee the register is stored in the CPU and operand is stored in the register , ...
Q: 1- Which SQA class and components this statement is applicable? A series of meetings to initiate and...
A: Software quality assurance (SQA) is a process which assures that all software engineering processes,...
Q: e Evaluation Criteria to evaluate Java programming Language. Provide suitable example as well. 2. W...
A: given - Use Language Evaluation Criteria to evaluate Java programming Language.Provide suitable exam...
Q: When did the first video camera appear on the scene?
A: The Evolution of Video Cameras: Video cameras have evolved significantly over the years. Although vi...
Q: Write a program that uses two classes. The first class is called “dAta" and holds x and y coordinate...
A: Summary: -Hence, we have discussed all the points.
Q: 5: Complete the function that takes in a number x, and returns the value 1 if x > 0, otherwise it is...
A: Logic:- within step_function use if else to check value of x is greater than or equal to 0 or not. ...
Q: ficant contribution to the field of c
A: Ada Lovelace made a significant contribution to the field of computer science.
Q: Question 1. Discuss a new technology in the engineering or computer science field, explaining: d. H...
A: The ethics in a code determine the proper usage of the code in a helpful and impactful way.
Q: Ada Lovelace is an important figure in mathematics for a variety of reasons.
A: Ada Lovelace: Ada Lovelace (1815-1852 AD) was Lord Byron and Annabella Milbanke's only child. She is...
Q: 1. An NFA accepts a string w only if all possible computation branches end up in accepting states on...
A: Ans:- True
Q: Give context-free grammars to generate the following languages: (a) L = {b"c™ :n m+ k} (c) L3 = {a"b...
A: Lets understand context free grammar: Context free grammar has following type of productions: A->...
Q: What are a few key computer hardware developments you expect to see over the next ten years? What im...
A: Given: What are some important computer hardware breakthroughs you anticipate in the next 10 years? ...
Q: AI, Death, and Mourning An Ethics Case Study {Should we develop "griefbots"?} As technology imp...
A: Is the development of “grief bots” ethical? How might this action be perceived through the ethical p...
Q: Consider a process that contains 3 threads and suppose each thread consists of exactly 4 steps. Comp...
A: Given Data : Number of threads(n) = 3 Number of steps in each thread(m) = 4
Q: When did the first microchip appear on the scene?
A: A microchip is small packed circuit which is used for program logic and it is made of silicon.
Q: Who was the first to invent the computer mouse?
A: Introduction: Computer Hardware: Computer hardware refers to its physical compo...
Q: Explain dynamic memory allocation in a nutshell.
A: Introduction: Dynamic memory allocation is the process of allocating memory space during execution o...
Q: Project communication plan for the project Attendance fingerprint system need in paragrapgh, tq so ...
A: Project communication plan for the project Attendance fingerprint system Anwer: Working of this fing...
Q: (20) Let Dor = {a"b™ | n t m or 2n # m} %3D and Dand = {a"b™ | n +m and 2n # m}. Prove that Dor and ...
A:
Q: For i E No let bi denote the ith byte in a byte string. You must not use technical support in this e...
A: A byte can be defined as a collection of 8 bits where each bit can either have the value 0 or 1. The...
Q: Explain Russell’s approach to “knowledge about” and denotation. Do denoting phrases have meaning? In...
A: One of the most important thinkers in the history of philosophy, Bertrand Russell (1872-1970) was a ...
Q: Create a program that will ask the user how much they would like to tip.
A: using System; using System.Collections.Generic; namespace App { class Program { stat...
Q: Files and folders; we all use them today on our varying computer devices. Discuss with your peers tw...
A: Reasons to have our files and folder properly managed are- If file is stored in a structured manner...
Q: When it comes to software and hardware, what's the difference between the two?
A: A computer is an electronic machine that takes input, processes it and produces output. There are tw...
Q: Write a C program that will start an editor process, get its PID, wait 3 seconds, and terminate the ...
A: Given :- Write a C program that will start an editor process, get its PID, wait 3 seconds, and termi...
Q: 17. 2D Array Operations Write a program that creates a tw
A: Write a program that creates a two-dimensional array initialized with test data. Use any primitive d...
Q: How Do Amazon Rds, Dynamodb, and Redshift Differ from Each Other
A: Introduction: How Do Amazon Rds, Dynamodb, and Redshift Differ from Each Other
Q: Example of words in the language are abaa, baaa abbbbbbaa, abababbbbb, bbbbbbabbbbbbbbabbbbbba etc. ...
A: L = {ab, a, baa,bbb}
Q: Why is Access a better tool than Excel for keeping track of this data?
A: Access and Excel are both Microsoft programmers. MS Access and MS Excel are two of Microsoft's most ...
Q: Design a GUI using the following control: label, text field, button, checkbox, radio button, combox ...
A:
Q: Indexes that are not clustered and clustered are compared.
A: Comparison between clustered and non clustered index are mentioned below,
can you please give me the answer in a way that i could copy paste it thank you
Step by step
Solved in 2 steps with 1 images
- Using the CelsiusToKelvin function as a guide, create a new function, changing the name to KelvinToCelsius, and modifying the function accordingly. #include <iostream>using namespace std; double CelsiusToKelvin(double valueCelsius) {double valueKelvin; valueKelvin = valueCelsius + 273.15; return valueKelvin;} /* Your solution goes here */ int main() {double valueC;double valueK; valueC = 10.0;cout << valueC << " C is " << CelsiusToKelvin(valueC) << " K" << endl; cin >> valueK;cout << valueK << " is " << KelvinToCelsius(valueK) << " C" << endl; return 0;} Please help me with this problem using c++.HOW DOI I CALL THIS USING THE FUNCTION AFTER THIS getchar(); printf("Enter name : "); // Here we are using '^' to be able to use a space in the input - > scanf("%[^\ns]",p->name_1920213); printf("Enter last name : "); scanf("%s",p->lastname_1920213); printf("Enter mobile number : "); scanf("%ld",&p->contactnum_1920213); printf("Enter email : "); scanf("%s",p->email_1920213); void search_person()/* this function allows the user to search a specific contacts using the input name, last name, conatact number or email*/{ int choice_1920213; printf("\nChoose one option search for the contact details: \n\n1.First Name \t\t2.Last Name \n3.Mobile Number \t4.Email address \n ");scanf("%d",&choice_1920213); while(1) { switch(choice_1920213) /*Switch statement tests the value of a variable and compares it with multiple cases. Once the case match is found, a block of statements associated with that…Please design another function called: multiply_up (int n), which will multiple up from 1 to n, like 1*2*3*4*5....*n, and return the result.
- Complete the convert() function that casts the parameter from a float to an integer and returns the result.Note that the returned value of the convert() function is printed. Ex: If the float value is 19.9, then the output is: 19 Ex: If the float value is 3.1, then the output is: 3 this is what i have def largest_number(num1, num2, num3): if(num1 > num2 and num1 > num3): return num1 elif(num2 > num3): return num2 else: return num3 def smallest_number(num1, num2, num3): if(num1 < num2 and num1 < num3): return num1 elif(num2 < num3): return num2 else: return num3 if __name__ == '__main__': n1 = float(input()) n2 = float(input()) n3 = float(input()) print("largest:",largest_number(n1,n2,n3)) print("smallest:",smallest_number(n1,n2,n3)) it says Test convert() with random float value test_passed function missing Traceback (most recent call last): File "main.py", line 18, in <module> n1 = float(input()) EOFError: EOF when reading a line Your output Your…Write the following function to draw a regular polygon:def drawPolygon(x = 0, y = 0, radius = 50, numberOfSides = 3):The polygon is centered at (x, y) with a specified radius for the bounding circle for the polygon and the number of sides. Write a test program that displays a triangle, square, pentagon, hexagon, heptagon, and octagon, as shown in Figure 6.12a.(Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point numbers with random numbers that have been scaled to the range 1 to 100. Then determine and display the number of random numbers having values between 1 and 50 and the number having values greater than 50. What do you expect the output counts to be?
- Write a program that reads in a line consisting of a students name, Social Security number, user ID, and password. The program outputs the string in which all the digits of the Social Security number and all the characters in the password are replaced by x. (The Social Security number is in the form 000-00-0000, and the user ID and the password do not contain any spaces.) Your program should not use the operator [] to access a string element. Use the appropriate functions described in Table 7-1.What is the output of the code below? def mystery_func(input, num, t = 0, x = 10, y = 10)[this function multiples all arguments together (except t) and raises the result to the power of t and returns this]print(mystery_func(2, 3))Question 3: Write a function that computes the ratio of vowels vs. consonants (????????????????����������������) in a given sentence. The ratio should be given as a floating-point number rounded off to two decimal places. When writing your function, be sure to appropriately cater for the following punctuation marks: apostrophes (') quotations (") full stops (.) commas (,) exclamations (!) question marks (?) colons (:) semicolons (;) Arguments: sentence (string) →→ sentence required to compute the ratio. Return: ratio (float) →→ a ratio that describes the number of vowels to consonants: vowels/consonants. ?HINT? Remember to cater for the white spaces that appear in your sentence. Expected outputs vowel_consonant_ratio("This is a random sentence!")==0.62 vowel_consonant_ratio("Thomas! Where have you been?")==0.83
- write a function to compute the fewest number of coins that you need to make up that amount. Please find the error in my code and explain it with comments #include <iostream> using namespace std; int countChange(int denoms[], int denomsLength, int amount) { // Edge cases if( denomsLength < 0) return 0; int i, j, x, y; // We need n+1 rows as the table // is constructed in bottom up // manner using the base case 0 // value case (n = 0) int lookupTable[amount + 1][denomsLength]; // Fill rest of the table entries // in bottom up manner for (i = 1; i < amount + 1; i++) { for (j = 0; j < denomsLength; j++) { // Count of solutions including denoms[j] x = (i - denoms[j] >= 0) ? lookupTable[i - denoms[j]][j] : 0; // Count of solutions excluding denoms[j] y = (j >= 1) ? lookupTable[i][j - 1] : 0; // total count lookupTable[i][j] = y; } } return 0; } int main() { int…Create a function that will validate if given parameters are valid geographical coordinates.Valid coordinates look like the following: "23.32353342, -32.543534534". The return value should be either true or false.Latitude (which is first float) can be between 0 and 90, positive or negative. Longitude (which is second float) can be between 0 and 180, positive or negative.Coordinates can only contain digits, or one of the following symbols (including space after comma) -, .There should be no space between the minus "-" sign and the digit after it.Here are some valid coordinates:-23, 2543.91343345, 1434, -3And some invalid ones:23.234, - 23.4234N23.43345, E32.64576.325624, 43.34345.3450, 1,2"""# I'll be adding my attempt as well as my friend's solution (took us ~ 1 hour) # my attempt.This function should reverse the words in a string. A word can be considered to be any characters, including punctuation, separated by spaces (only spaces, not tabs, \n etc.). So, for example, if s is “The Giants won the Pennant!” the function should change s to “Pennant! the won Giants The” void reverseWords(char *s)