Exercise 1: Write a program to calculate the volume and surface area of a sphere from its radius, given as input. Here are some formulas that might be useful: V = 4/3r A = 4Tr2
Q: What exactly is a cache, and how does it work? To improve performance, use parallelism and/or locali...
A: Answer: Cache Memory: It is a software or hardware component that keeps previously used information...
Q: Go to any clothing websites, and list the feature(s) of the web application that can substitute hapt...
A: As e-commerce being a very high competitive world, where differentiating your product or service thr...
Q: It's exactly what it sounds like: a jump drive.
A: There are many devices which are used to store information. Jump drive is one of them. It is highly...
Q: 2. Please sort the input array [3 -10 9 21 -7 8 14 1] using QUICKSORT algorithm to output an increas...
A: Divide and Conquer approach is followed in the Quicksort algorithm, which helps in sorting. Subarray...
Q: create functions to draw BMW and Mazda logos in C++.
A: Answer: I have done code in C++ programming language
Q: a) Let O be the set of odd numbers and O' = {1, 5, 9, 13, 17, ...} be its subset. Define the bijecti...
A:
Q: 1. Using Boolean algebra, DeMorgan's theorem or Karnaugh mapping to simplify the following expressio...
A: Here in this question we have given some boolean expression and we have asked to find the simplified...
Q: Do you have any recommendations for data flow recording methods?
A: Data flow documentation or data flow diagramming. Despite the fact that all data-flow diagrams use t...
Q: 2. a. What kind of hazard may exist in clock cycle 11 and why it may exist? b. Why there is no struc...
A: Below is the answer of the above question. I hope this will be helpful.
Q: Write a Java program to find the second highest number from an user entered array of integers.
A: For this question, we will be first asking the user how many elements the user want to add to the ar...
Q: Alice and Bob use the ElGamal scheme with a common prime q = 131 and a primitive root a = 6. Let Bob...
A: The answer is
Q: A. Write an Assembly program to load the register E with the value 12 and the register H with the va...
A: Answer :-
Q: a class, Team.java, that has the following: * two private instance variables: a String named color ...
A: // Java Code: import java.io.*; class Team{ //declaring the private variables private String color; ...
Q: What are the disadvantages of using the SSTF disc scheduling algorithm?
A: Here in this question we have asked that what are the disadvantage of SSTF disk scheduling algorithm...
Q: Perform an experimental analysis on the two algorithms & Visualize their running times as a function...
A: Below find the solution import java.io.FileWriter;import java.io.IOException;public class HW3 {publi...
Q: Examine the advantages and disadvantages of various system models.
A: Introduction: System modeling is constructing abstract models of a system, each of which gives a dif...
Q: Question 2: Consider the following premises: 1. A - (B - A) is a Theorem of Propositional Calculus/L...
A: Given The answer is given below.
Q: Write a complete C++ program that computes total mark for the Computer Programming subject. The outp...
A: In C++, to put a tab between the string use /t. to read a string we have gets() method.
Q: What is the time complexity of the following function- T(n)=7T(n−1)+1 (a) θ(n)
A: Given Recurrence relation => T(n)=7T(n−1)−1 T(n) = 7T(n-1)-1 ….. (1) lets find the value of T(n-1...
Q: Transform the wff below into clause form. For each step required give a brief description of the ste...
A: solve it with proper steps: ========================================================================...
Q: Create a program for water sort puzzle in java
A: Water sort puzzle is a game in which same colour water is filled in the single bottle. Here...
Q: Question: A fixed percentage of water is taken from a well each day. Request values for W and P wher...
A: If W and P are the water in the well and the percentage of water taken from the well then the below ...
Q: Examine the advantages and disadvantages of various system models.
A: Introduction:- System modeling is constructing abstract models of a system, each of which gives a di...
Q: What causes the four major security breaches in purchasing and merchandisine systems, and how do the...
A: Security is one of important aspect which secures personal or sensitive data. Online transactions ar...
Q: You need to show detail work on how you get the answer. Dont use answers from other websites plea...
A: Given The answer is given below
Q: Why are watchdog timers required in many embedded systems?
A: Introduction: When a computer processor, memory, and input/output peripheral devices are integrated ...
Q: Convert the NFA to a DFA a, b а, b 2
A: We know that the power of NFA and DFA is same. So every NFA can be converted to an equivalent DFA. I...
Q: Why are watchdog timers required in many embedded systems?
A: Introduction: Essential for embedded systems: The basic system's watchdog timer (WDT) is an importa...
Q: 1.Write a comments for the below python code print("The Longest chain occured with starting number ...
A: Describe various type of comments for python code.
Q: Based on your knowledge of IRQ levels
A: Explainations:-
Q: Using opt-out links is the safest and most reliable way to reduce the amount of spam you get. Is thi...
A: Introduction: According to the given statement, the safest and most reliable approach to decrease th...
Q: Examine the advantages and disadvantages of various system models.
A: 1 - Can collect the requirements when you want. 2 - Can improve your understanding when it will be w...
Q: Q5: An output program resides in memory starting from address AF3, It is executed after the computer...
A: Given that the memory with the starting address 2300 contains the output program. When FGO is 1(whil...
Q: Write an SQL query to report the movies with an odd-numbered ID and a description that is not "borin...
A: 1. To get moving we use where clause with condition and order by. 1. first we filter id by MOD inbu...
Q: Use a truth table to represent the following statement. Ensure that you ...
A: The truth table is a table that includes results for all conceivable input values. If we examine thr...
Q: The organization and connectivity of a computer's many components are referred to as its architectur...
A: According to the information given: We have to define the architecture that's component referred to...
Q: Question: In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding languag...
A: Below is the answer to above question. I hope this will be helpful for you.
Q: From time to time Yetis who live high up in the Himalayan mountain ranges come down from the mountai...
A: Step 1 : Start Step 2 : Define a function isValidYeti() which takes the code as argument and return ...
Q: Consider that you hav excention 1 and 30%
A: Number of instructions that cause Exception 1: 20% of 400,000 = 80,000 Number of instructions that ...
Q: In terms of emphasis, what distinguishes the TPC from the SPEC?
A: Difference between TCP & SPEC given below :
Q: Create an AVL Tree by inserting the following elements one at a time: 35, 55, 25, 45,50 Note: Don’t...
A:
Q: Write a Matlab function named reflect_polynomial that will: [a] accept a univariate polynomial defin...
A: The objective is to write MATLAB code for the given data.
Q: n the SELECT statement, the FROM clause is optional. TRUE/FALSE
A: SQL (Structured Query Language) is a quality programming language that helps in managing the relatio...
Q: Describe a recent security compromise involving access control or authentication in the headlines. H...
A: Any event that leads to unauthorized access to computer data, applications, networks, or devices is ...
Q: Which statement of the following is the most appropriate? Group of answer choices When you design a ...
A: An invariant in OOP refers to some set of conditions that holds for all instances of a class, always...
Q: What the different between java and dart in the object oriented?
A: Java is a programming language and a computation platform which was developed in 1995 by Sun microsy...
Q: i = 0, j = 0 For(a = 0; a*a < n; a++){ For(b = 0; b < n; b *= 2){ For(c = 0; c*c...
A: For all intialization 1 time complexity Like i=0,j=0, c,a,n And statement inside for loop also sam...
Q: B. If Alice uses the same k to encrypt two messages Mị and M2 as (12, 65) and (12, 64), what is the ...
A: The answer is
Q: *** Entity and Attributes *** · PKG_CUSTOMER CS CO CODE CS CODE VARCHAR2(4 BYTE) VARCHAR2(20 BYTE) V...
A: Answer: I have given answered in the handwritten format in brief explanation.
Q: Basic home page using HTML5 and minimal CSS
A: Code: <!DOCTYPE html> <html> <head> <title>Home Page</title> <styl...
For the given problem, we need to implement a program that calculates volume and surface area of a sphere. Radius is given as input to the program.
The formula for calculating the above is given in the problem.
As no programming language is specified, I have given the code in C++.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Write a program to calculate the position of a projectile at a given time t. For an initial velocity vo and angle of departure ®g, the position is given by x and y coordinates as follows (note: the gravity constant g is 9.81 m/s²): X= V0 Cos (0)t y=vo sin (8,)t –; gt The program should initialize the variables for the initial velocity, time, and angle of departure. It should then call a function to find the x and y coordinates, and then another function to print the resultsAirline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderGiven an airplane's acceleration and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula. length=v^2/2*a. write a program that prompts the user to enter V in meters and acceleration an in meter/second and display the minimum runway length.
- In physics, an object that is in motion is said to have kinetic energy. The follow. formula can be used to determine a moving object’s kinetic energy: KE = (1/2 mv²) Where KE =the kinetic energy m= the object's mass in kilograms v = the object's velocity in meters per second. %3D Write a program to calculate the amount of kinetic energy that the object has wh given the object's mass (in kilograms) and velocity (in meters per second). Here sample run: Input the object's mass (kg):10.0 Input the object's velocity (m/s): 5 The kinetic energy (Joules): 125Write a program that calculates and prints the volume of a pyramid given the base (b) and the height (h) of the pyramid. The formula to calculate the volume is: Volume = (1/3) *b * h Enter the base of the pyramid: 3 Enter the height of the pyramid: 2 The volume is 1.9998Write a Phyton program that computes the duration of a projectile’s flight and its height above the ground when it reaches the target. As part of your solution, you should display instructions to the program user. Relevant formula: time = distancevelocity xcos (θ) height = velocity xsin x time- g x time22 use the following variables: g = gravitational constant = 32.17 = angle of elevation in radian v = velocity or the projectile velocity (ft/sec) d= distance to target t = time of flight in seconds. h = height at impact Try your program on these data sets.
- Given an airplane’s acceleration a and take-offspeed v, you can compute the minimum runway length needed for an airplane totake off using the following formula:length =v2/2aWrite a program that prompts the user to enter v in meters/second (m/s) and theacceleration a in meters/second squared (m/s2), then, displays the minimum runwaylength. Here is a sample run: Enter speed and acceleration: 60 3.5The minimum runway length for this airplane is 514.286Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. Write a program which prompts the user to enter the weight in kgs (integer value) and height in feet and inches (both integers) and then calculates the BMI of the person. Your program first need to convert inches to meters (i.e. inches * 0.0254) and then use the following formula to calculate BMI: weight kilogram / (height_meter)^2 Your program displays the BMI value in two decimal places and the corresponding status as shown in the examples below. Note that one inch is 0.0254 meters and 1 foot is 12 inches. For example: Input Result 62 5 10 89 6 0 45 BMI BMI < 18.5 18.5 s BMI < 25.0 25.0 ≤ BMI < 30.0 30.0 ≤ BMI 7 82 5 Interpretation Underweight Normal Overweight Obese 2 Enter weight (kg): Enter height (feet): Enter height (inches): BMI is 19.61, Normal Enter weight (kg): Enter height (feet): Enter height (inches): BMI is…When Jacob Steinberg began his trip from California to Vermont, he filled his car’s tank with gas and reset its trip meter to 0. After traveling 324 miles, Jacob stopped at a gas station to refuel; the gas tank required 17 gallons. Jacob wants a program that calculates and displays his car’s gas mileage at any time during the trip. The gas mileage is the number of miles his car can be driven per gallon of gas. Desk-check your solution’s algorithm using 324 as the number of miles driven and 17 as the number of gallons used; then desk-check it using 280 and 15.
- The following formula gives the distance between two points, (x1, yl) and (x2, y2) in the Cartesian plane: V(x2 – x1)2 + (y2 – y)²Create a program which transforms the number of days to years, weeks and days. For example: 375 days = 1 year 1 week 3 days. Use the remainder of the bigger unit. ( in C language)A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-life of about 6 hours in humans. Given caffeine amount (in mg) as input, output the caffeine level after 6, 12, and 24 hours. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: System.out.printf("After 6 hours: %.2f mg\n", yourValue); Ex: If the input is: 100 the output is: After 6 hours: 50.00 mg After 12 hours: 25.00 mg After 24 hours: 6.25 mg Note: A cup of coffee has about 100 mg. A soda has about 40 mg. An "energy" drink (a misnomer) has between 100 mg and 200 mg. 1 import java.util.Scanner; 3 public class LabProgram { 06∞VOSAWNA 2 4 5 7 8 9 10 } PER 11 } 12 public static void main(String[] args) { Scanner scnr = new Scanner(System.in); double caffeineMg; // "double" supports floating-point Like 75.5, versus int for integers Like 75. LabProgram.java caffeineMg = scnr.nextDouble(); /* Type your code…