Part II: Write a program to calculate the area of a triangle given the length of its three sides-a, b, and c- using these formulas: S= a+b+c 2 A = √√s(s — a)(s — b)(s — c) Write a function that will calculate the area of the triangle. When passed the necessary values, the function should return the area.
Q: Give a linear time algorithm to compute the smallest number of edges that one would need to add to G…
A: Answer:- G can be connected with as few as 1 edge. which is equal to the number of connected…
Q: What is the most important difference between generic software product development and custom…
A: Introduction: Generic software is a ready-to-use solution that is intended to suit the needs of a…
Q: Problem 7 - A mouse wants to find cheese in a 5x5 grid. The cheese is in random place in the maze.…
A: * Python Code * [a, b] = [3, 4] # This is where the cheese lies # This function calculates the…
Q: : vowelcap (str) n = len (str) strl = "" for i in range (n): if (str[i]=="a" or str[i]=="e" or…
A: The correct python program is: def vowelCap(str): n = len(str) str1 ="" for i in range(n):…
Q: minimize the time spent for the maintenance. Therefore, the Car Maintenance team wants to store…
A: Provided the Create Table statement to create the table Maintenance_Types with given attributes,…
Q: Table: Author Author_ID Author_Name DZN9010 J.K. Rowling VC8931 Arthur Conan Doyle STA7686 Suzanne…
A: Introduction: A transitive dependency in a database is a functional dependency where some non-prime…
Q: PROBLEM 9 The Darby Company manufactures and distributes meters used to measure electric power…
A: Managerial Report 1. Distribution plan and costs will be as follows
Q: reate a Use Case Diagram for a library system with primary actors librarian and student.
A: Use case diagrams: Use case diagrams referred as a Behavior model or diagram. It simply describes…
Q: Problem 2 In the INSERTIONSORT implementation we showed in class we compared the element we were…
A: Insertion sort is a sorting algorithm in which the elements are sorted by taking one by one and…
Q: Part 2: import java.util.*; import java.util.stream.*; public class Demo { public static void…
A: Part 1: import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public…
Q: draw and explain the agile methodology diagram
A: Agile SDLC version is a mixture of iterative and incremental method models with recognition on…
Q: a.Using a cisco packet tracer Connect 3 computers to a switch, and router and configure statically…
A: Computer Networks is the set of the computers which are connected by the transmission medium either…
Q: Simply to minimum number of literals using Boolean Algebra. Answer both parts and show all steps.…
A: Boolean Algebra is a branch of mathematics that works on logical values. They are used in various…
Q: Explain features of Windows operating system
A: Operating System: An Operating System (OS) is a software that acts as an interface between computer…
Q: 2. Write a complete Java program that provides two methods named randomInteger() and…
A: The answer is given below step
Q: SabaA Ab|BC| aaD | X BA| Ba| Db CDCa | aCb Da → a | b | Сbb | B |X BC | aCa | B
A:
Q: Write a Python program that reads a word and prints all substrings, sorted by length, or an empty…
A: Python String: A string is a collection of Unicode characters. It consists of a succession of…
Q: This activity shall determine the rank and nullity of a matrix. Create a function that will be able…
A: Matlab code:
Q: Suppose you own a tourism company for and would like to calculate the fees to be paid by a client.…
A: The answer is given below.
Q: 3. Let (M, C, e, d, K) denote the affine cipher with Σ = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,…
A:
Q: Write a python code that takes a string as an user input and finds out all the duplicate characters…
A: Python code: # defining method for creating shortestdef sort_string(n_list): # sorting list in…
Q: How many 6-character license plates are possible if the first character must be a letter that is not…
A: solution: it required 6 character license plates first characters must be a letter (26) except…
Q: 3 Turing Machines Produce a Turing Machine state diagram that decides the following language. You do…
A: Given: La = {anbn : n>=0} Logic to build turing machine for La is : step1) start reading input,…
Q: I need ideas for a Python programming project that includes the handling of an input file (data or…
A: # Python program to read image using OpenCV # importing OpenCV(cv2) module import cv2 # Save…
Q: Discuss any four levels in System protection.
A: Four levels in System protection: Levels of security Four levels of system protection: The…
Q: DO NOT ANSWER THIS IF YOU ALREADY ANSWERED. I NEED DIFFERENT SOLUTIONS. USE EXCEL PLEASE AND SHOW…
A: The answer for the above question is given in the following steps for your reference.
Q: 15) Find the maximum flow from source A to sink F. A 16 13 4 10 B 12 6 14 7 E 20 F
A: Maximum flow is the maximum amount of flow that the network would allow to flow from source to sink.…
Q: Who is the forerunner of virtual reality?
A: Virtual reality is a computer generated environment with many objects and scenes which are appears…
Q: Q6. Write pseudocode to compute an using right to left binary exponentiation algorithm and perform…
A: Binary exponentiation is used to find out the 'a^n’ expression in logarithmic time where a and n are…
Q: Is the following statement TRUE or FALSE? If it is TRUE, prove it, and if it is FALSE, provide a…
A: The function is the relationship from the elements of one set S to the elements of the other set T.…
Q: Q1- Convert the following: a- 1011 1100B to hexadecimal b- 173D to binary c-4 1. 6875 to binary
A: Note: As per Bartleby's answering guidelines, only 3 first sub-parts can be answered. Please re-post…
Q: having symbol rate of 500 symbols/s. Your task is to calculate the bit rate for
A: The answer is
Q: How many non-empty contiguous substrings does a string of length n have? For example, “cde” is a…
A: In programming languages, strings are the array of bytes for representing the Unicode characters.
Q: Q1: Let F1=X., F2=AB, F3 = F1+F2 Implement the above Boolean expression with logic circuit truth…
A: Using demorgans law, F1 can be represented as F1 = X'' + Y'' => F1 = X + Y
Q: In the context of query optimization, what is an SQL query block?
A: Answer:
Q: Q1: Write an algorithm to find the average of three marks.
A: ANSWER:
Q: Write a java program that calculates a customers' electric bill. The program should ask the user to…
A: Program Approach:- 1. Import util package 2. Create the user-defined class whose name is Main 3.…
Q: Suppose we solve the linear system Ax = 2.00 1.00 [ ] x = [ 1.99 1.00 Cz= 1.00 -1.00 Now suppose…
A:
Q: Q2: write an algorithm to print the numbers between 1 and 20 that divide by 2. (hint :(%) use to…
A: An algorithm should be written to obtain and print the numbers that are divisible by 2 within the…
Q: Input a list of employee names and salaries and store them in parallel arrays. End the input with a…
A: Solution - Programming Language - Java All necessary comments are included in program code.…
Q: If the system fails repeatedly during recovery, what is the maximum number of log records that can…
A: Here, I have following description about the following questions: 1. Analysis phase: In the analysis…
Q: What is software re-engineering?
A: Let us see the details about software re-engineering.
Q: Q2. What is the Master Theorem? What kind of the problems are solved through this theorem. Use…
A: Master Theorem is a formula which we use to solve recurrence relation problems. Recurrence relation…
Q: Data Structures and Algorithm Question: Average insertion time to a dynamically expanding list…
A: What Is Insertion Sort? An algorithm for sorting called insertion sort involves moving each element…
Q: An alternative to hexadecimal notation for representing bit patterns is dotted decimal notation in…
A: The dotted decimal representation means representing each 8 bits binary numbers into it's decimal…
Q: What is an unsafe query? Give an example and explain why it is important to disallow such queries.
A:
Q: Write short notes on Client-Server networking
A: A client / server network is a communication model in which multiple client programs share the…
Q: Simply to minimum number of literals using Boolean Algebra. Answer both parts and show all steps.…
A: Here, we are given two Boolean functions and we are asked to simplify them using Boolean algebra. We…
Q: Explain what an overridden method is and give an example by writing some Java code
A: Introduction First lets understand method overriding: Suppose we have classes A and B. class B…
Q: Q2. What is the Master Theorem? What kind of the problems are solved through this theorem. Use…
A: The question has been answered in step2
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- (Physics) Buoyancy is the upward force a liquid exerts on a submerged object, as shown in Figure 6.9. The buoyancy force is given by this formula: B=pgV Bisthebuoyancyforce( lbforN).isthefluiddensity( slug/f t 3 orkg/ m 3 ).gistheaccelerationcausedbygravity( 32.2ft/se c 2 or9.8m/ s 2 ).Vistheobjectsvolume( f t 3 or m 3 ). a. Using this formula, write a function named buoyantForce(double ro, double vol, int units) that accepts a fluid density, the volume of an object placed in the fluid, and the units to be used(1=U.S.Customaryunits,2=metricunits), and returns the buoyancy force exerted on the object. b. Include the function written for Exercise 6a in a working C++ program, and use your program to complete the following chart:(Numerical) a. The following is an extremely useful programming algorithm for rounding a real number to n decimal places: Step 1: Multiply the number by 10n Step 2: Add 0.5 Step 3: Delete the fractional part of the result Step 4: Divide by 10n For example, using this algorithm to round the number 78.374625 to three decimal places yields: Step1:78.374625103=78374.625 Step2:78374.625+0.5=78375.125 Step3:Retainingtheintegerpart=78375Step4:78375dividedby103=78.375 Using this algorithm, write a C++ function that accepts a user-entered value and returns the result rounded to two decimal places. b. Enter, compile, and run the program written for Exercise 11a.(Time in Seconds) Write a function that takes the time as three integer arguments (forhours, minutes, and seconds) and returns the number of seconds since the last time the clock “struck12.” Use this function to calculate the amount of time in seconds between two times, both of whichare within one 12-hour cycle of the clock
- change.py Create a program, change.py, that has a function that takes 5 arguments thatcorrespond to the number of $1 dollar bills, quarters, dimes, nickels, andpennies, respectively. Calculate the total value of that change, and print "Thetotal value of your change is $x" where x is equal to the total value.Que: 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 languageWrite a function that displays the sum of two fractions (a/b) and (c/d). Example function sum(a, b, c, d). As much as possible print the lowest term. Ex. sum(1,2, 3,4) = 1 & ¼ or 5/4.
- What does the following function do? float hypot(float x, float y) { return sqrt(x*x+y*y); }//end of hypot Write a statement in c++ to call this function with arguments a and b and stores the final result in c.One foot equals 12 inches. Write a function, using python, named feet_to_inches that accepts a number of feet as an argument and returns the number of inches in that many feet. Use the function in a programs, using python, that prompts the user to enter a number of feet then displays the number of inches in that many feet.“Days Into Year (C++)” By using my code (photo is attached), implement a Days Into Year function. It MUST BE of this form: int daysIntoYear ( int year, int month, int day ) ; In terms of "Days Into Year," how many days are we into the year based on a given date? For example, January 1 is 1 day into the year. Please have the code display 12 test cases with the result from the function, and the number of days into the year from some other source. So you can hand calculate the days into the year or use an internet web page. The typical output might look like this: (Please make the format better but be sure to automatically calculate agree/disagree column) You must include a leap year function that returns a bool and takes as a parameter the year. This function must be used in your code. Year Month day Days Into Year Value expected Agree/Disagree 2020 1 1 1 1 agree 2020 1…
- 09. PlWrite a function to gather the following costs from the user: Travel cost: $9,800Hotel cost: $3,500Rental car cost: $1,600Labor cost: $15,500 Part 2Write a function to convert the costs from United States dollar (USD) to Australian dollar (AUD). Note: Look up the current USD to AUD exchange rate to use in your function. Test the program 3 times by providing different costs in USD. Provide the code, and take a screenshot of the output. Then, paste the screenshot(s) into a Microsoft® Word document. Write a half-page response in the same Microsoft® Word document and address the following: Provide a manual for the user, explaining how to use the program.Explain what type of user input validations you should have. What happens if the user enters a negative number? What happens if the user puts a $ in the input? .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"') ])Q1. Write a program to take input for a number, if the number is palindrome, then display its half on the screen, otherwise take input for 2 more numbers, and display their product on the screen. Use minimum two functions including main function