Write a program that reads the height h and radius r of Right Circular Cone and finds the surface area and volume where: Volume = (1/3)* Pi *r 2 *h %3D Surface Area = Pi * r* sart (r2 + h2)
Q: What is the distinction between a subsystem and a logical subdivision, and why does it matter?
A:
Q: Define a class RESORT in C++ with the following description: Private Members: Rno //Data member to s...
A: Here we define a class RESORT in C++ language of the given description , so the programming for the...
Q: What does each removeMin call return within the following sequence of priority queue ADT operations:...
A: The given sequence of function calls are : • insert(5, A),• insert(4, B),• insert(7, F),• insert(1,...
Q: computer science - When a stalemate is found, those who are unable to go forward are given the requ...
A: Introduction: We must now recover from a stalemate that has been discovered. There are generally two...
Q: Homework: Compute the delay time generated by the following subroutine, if you know that CPU frequen...
A: The delay time generated by given subroutine is calculated below.
Q: Write a C++ program that declares the following 2 arrays: const int Rs = 8, Cs = 8; ...
A: I have provided C++ CODE along with OUTPUT SCREENSHOT---------------
Q: Problem 2. Give a sum-of-products expression for each of the following circuits:
A: SOP(sum-of-products) form for this circuit will be: A'B + AC'D + AB'C
Q: d2f Q2/ Find the derivative ( ) of the following functions using the Matlab program 1) f(t) = e3t co...
A: I give the code and output in Matlab
Q: Perform the following binary operations. 1. . (101110010110)Exess-3 = ( ??? )2421 2. (00011110)2 +...
A: This question comes from Number System which is a paper of Computer Science. Let's discuss it in the...
Q: To begin, what exactly is the function of a router? 2) What is a data packet, and how is it const...
A: Introduction: Network of Computers: A computer network is a computerized media communications networ...
Q: Hash table valsTable is shown below. The hash function is key % 5. Assume items are inserted at the ...
A: Examples given has function is key % 5 so 5 is in 0th because 5 % 5 is 0 26 is in 26 1st slot becau...
Q: 3. Ask the user to enter 2 words and store them in memory as separate Determine the length of each o...
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner sc=new Sc...
Q: the programmer should concentrate while defining the problem when the inputs, outputs, and processes...
A: Algorithm An algorithm is a set of instructions for solving a problem or accomplishing a task
Q: What does the phrase "checkpoint" signify in SSIS?
A: Introduction: A CHECKPOINT file may be configured in the SSIS package to record package execution in...
Q: Assembly to Binary 2 An LC-3 assembly language program contains the instruction LEA R6, Z The symbol...
A: Explaination, As we know that the value stored at Y ie at x3005 will be the 16 bit binary code for t...
Q: Identify major software failures in the history of computer science that resulted in significant los...
A: MAJOR SOFTWARE FAILURES: The following are the most significant software failures in computer scienc...
Q: Identify and briefly describe four of the causes of the rising number of computer-related errors.
A: Intro With the increase in use of computer at work or at personal level, humans are dependent on com...
Q: What exactly is a consistent database state, and how does it come about?
A: Solution A database constitutes a set of data relevant to some real-world aspect. For a certain miss...
Q: For hard clustering algorithms such as K-Mean, each instance can be in more than one clusters. Is T...
A: In this type of clustering algorithm each data item has been grouped together such that each item is...
Q: What exactly is the distinction between a homogeneous and heterogeneous relational database manageme...
A: Intro What is Relational Database: A relational database is a digital database based on E. F. Codd'...
Q: How far have robots come, and how intelligent do you believe they will become in the future?
A: Introduction: Some experts believe that by 2045, robots will outsmart humans. Others believe it will...
Q: Why is networking expertise required of a computer scientist?
A: Computer science: A computer scientist has studied computer science, which is the study of the theor...
Q: In supercomputing, grid computing, and cluster computing, what role does Moore's law play?
A: Introduction: Moore's Law asserts that every two years, the number of transistors on a microchip dou...
Q: Briefly describe Dots per Inch technology.
A: Dot Per Inch is is the technology which is used to measure the sharpness and the resolution of the p...
Q: What is NOT the direct benefit of reducing dimension? Select one: a. Increase efficiency of ML algo...
A: Dimensionality reduction refers to techniques for reducing the number of input variables in training...
Q: Instruction: Write a Java program and make a drawing of the flowchart (make sure to use proper flowc...
A: PROGRAM EXPLANATION: Import the scanner class. Create the main class. Define the main method. Creat...
Q: What is the definition and use of multiprocessing?
A: Intro Definition of multiprocessing :- It refers to a system's capacity to use many CPUs to do tasks...
Q: Give an example of each of the three types of IP addresses.
A: Introduction: Publicly Available IP AddressesA public IP address is a unique primary address issued ...
Q: What exactly are the benefits of database encryption ?
A: Introduction: Everyone is concerned about the migration of private data to the cloud since many firm...
Q: In C++, add movies and prices to an existing text file using STL iterators, containers , or algorith...
A: In this program we have to code a C++ program in which it will store movie name and movie price in a...
Q: What programming language is used to program routers?
A: A router connects your devices to each other and in hard-wired connection setups to the modem.
Q: onsole application to print alphabets from a to z.
A: Given: Create a VB.NET Console application to print alphabets from a to z.
Q: Using SJF scheduling algorithm, answer the follwing. What is the waiting time for P1? What is the wa...
A: SJF stands for Shortest Job First So, for given arrival time the job which has the minimum burst get...
Q: When a cell in Microsoft Excel is filled with hashtags, what does it mean?
A: Introduction: When the column in an Excel spreadsheet isn't large enough to show the information, it...
Q: he National Weather Service (NWS) implemented the new wind o measure the coldness using temperature ...
A: Code for it: import java.util.Scanner; class WindChillIndex { public static void main(String[] ar...
Q: What what is dynamic scoping, and how should it be applied? What effect does dynamic scoping have on...
A: Intro According to the question The scoping control done how to variable value is the resolved and ...
Q: Why is knowing how to work with compressed zip files and folders so important? Computer science
A: Introduction: The subject of this article is compressed zip files and folders. A ZIP file is a compr...
Q: what types of facilities use Application Based IDS?
A: Answer :
Q: Create a new project. Add a textbox, a Label and a button to your new Form. Then write a program tha...
A: Steps to create the VB.Net windows project application. Step1: Open the Microsoft VB.Net applicatio...
Q: 1. Prove that L is a context-free language using a
A:
Q: Examine the many ways in which different companies use information systems.
A: Introduction: The Executive Support System (ESS), Management Information System (MIS), Decision Supp...
Q: I need help with question 2 please.
A: Proof:1. Assume that C = {w | 1's equal to number of 2's, 3's, 4's}2. Assume that w is a word in C3....
Q: Alice and Bob use the ElGamal scheme with a common prime q= 131 and a primitive root a = 6. Let Bob'...
A: Below is the answer to above question. I hope this will meet your requirement...
Q: Compute and print the state income tax. Net Income is Gross Income minus Deductions. Tax is 3% on ea...
A: The code implementation in the C++ programming language is given in the below steps.
Q: Create a UEmployee class that contains member variables for the university employee name and salary....
A: Java Program: class UEmployee{private String employeeName;private double salary;//store and return e...
Q: d2f Q2/ Find the derivative ( ) of the following functions using the Matlab dt2 program 1) f(t) = e3...
A: Dear learner, hope you are doing well , I will try my best to answer this question. Thank You!!
Q: The program has four steps: Read the size of an integer array, followed by the elements of the arra...
A: The code is given below.
Q: To create a JSON for Population census with objects and arrays Scenario: def Census Company is mai...
A: sample.json { "Country":"India", "State":"Uttar Pradesh", "YearOfSurvey":2015, "TotalPopulat...
Q: Reference the Insertion Sort flowchart. What symbol(s) would need to change to get the algorithm to ...
A: Due to company policies I am compelled to solve only one part and that is the first part. Please pos...
Q: In the case of extensions, plug-ins, and add-ons, what constitutes a security concern?
A: Introduction: The term "add-on" refers to a software utility or a hardware component that may be add...
Step by step
Solved in 3 steps with 1 images
- JAVA Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2 / 2 * a Write a program that prompts the user to enter v in meters/second (m/s) and the acceleration a in meters/second squared ( m/s2 ) , then displays the minimum runway length needed to take off. Here is a sample run: Enter speed and acceleration: 60 3.5 [enter] The minimum runway length for this airplane is 514.286Write a program that helps a company manage salaries of its employees. Your program should ask for the number of hours worked and the hourly rate of an employee than, display the salary. This program should allow the user to enter the information of many employees until enters -1. Sample Run: Enter the number of hours worked (-1 to end): 32 Enter hourly rate of the worker: 100 Balary is 03200 Enter the number of hours Worked (-1 to end) : 40 Enter hourly rate of the worker: 5 Balary is 3200 Enter the number of hours worked (-1 to end): 42 Enter hourly rate of the worker: 10 Salary is 0420 Enter the number of hours worked (-1 to end) : -1Java program At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes): -2 Time should be positive
- In Python A soup company is interested in finding out how much of their soup will go into various sized cans. The user will input the diameter of the can end, and the height of the can. The volume of a cylinder is the well known formula: volume = area of the ends * height of cylinder. The twist is that a can of soup can not be completely filled to the top; only 95% of the volume can be filled with soup; the remaining 5% must remain empty to allow for expansion. NOTE: when computing the area, use pi to at least 5 significant digits (eg, 3.14159) or use the constant math.pi. You should define a function named soup_volume which takes two parameters, the diameter of the can in cm, and the height of the can in cm, in that order. The function should return a float value, which is the volume of soup that the can is able to hold. The function should not round the value, but when printing the value in the main program, format it to show only 2 decimal places. Example run of the program: Enter…Write a program that generates a random integer N between 0 and 20 (included). Then it will ask the user continuously to enter a value V between O and 20. • If the V is equal to N the program displays "you win!!" and ends • If the difference between V and N is equal or greater than 12 the program dispiays "Very Cold" • If the difference between V and N is less than 12 and equal or greater than 6 the program displays "Cold" • If the difference between V and N is less than 6 and equal or greater than 3 the program displays "Hot" • if the difference between V and N is less than 3 the program displays "Very hot" The program ends if the user guess the correct number or if he enters 10 wrong numbers. If the user enters 10 wrong numbers the program displays "You lost" and the correct number. Hint: To compute the difference between V and N use Math.abs(V-N) Using java Runi Enter a number between 0 and 20:5 Very hot Enter a number between 0 and 20: 10 Run2 Enter a number between O and 20: 15…write a java program A twin prime is a prime number that is either 2 less or 2 more than another prime number. For example (41, 43) are both primes and are twin primes because 41 + 2 = 43. Write a program that asks the user to enter a positive number and checks if this number is prime. If the number is prime then the program must check if it has a twin prime. So if n is prime, then n - 2 or n + 2 should be checked. The program repeats until the user enters -1. Sample Run: Enter a positive integer (-1 to end): -5 Invalid Number Enter a positive integer (-1 to end): 61 61 is prime 59 and 61 are twin prime Enter a positive integer (-1 to end): 137 137 is prime 137 and 139 are twin prime Enter a positive integer (-1 to end): 30 30 is not prime Enter a positive integer (-1 to end): 23 23 is prime 23 does not have a twin prime Enter a positive integer (-1 to end): -1
- Write an application in Java that asks the user to enter two integers, obtains them from the user and prints their sum, product, difference and quotient (division). Sample Run Enter first integer: 18 Enter second integer: 5 Sum is 23 Product is 90 Difference is 13 Quotient is 3 Note: The exact division of 18 by 5 is 3.6. However, assuming you are using only integer (int) variables in your program, then the integer division of 18 by 5 is 3. IMPORTANT. Follow the various style conventions we've discussed in class (variable naming, constants, spaces, etc) including putting comments in your program.write a program in python Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether their answer was right or wrong, and accumulate the right values. After the 10 questions are asked, calculate the average that was correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that checks to see if the answer is correct and accumulates the number correct. A function that calculates the…in java pls: You have been asked to produce a report for a hardware store The name for each item is widget with the word designating the number of the widget. There are ten widgets in all. Your program will ask the user for the range of the cost for items, range of the price of the items in doubles. The range for the quantity in stock will be between 0 and 9999 as an int. Your program will randomly generate the cost of the items, price of the items the number in stock for this sample report based upon the ranges entered. Make sure the price of the item is greater than the cost. Profit is calculated as (price- cost) * in stock. Any time quantity falls below 25 the reorder column will display Yes, otherwise it will display No. Your chart will generate data for ten items and the chart will look like the one below. Part QuantityName Cost Price in Stock…
- Write a program that allows the user to enter a number between 1 and 1000. If the number is invalid, provide an error message and allow the user to try again until he enters a valid value. Once you have a valid number, use it to determine and print the following information: *Note that in the list of factor pairs, you should not include duplicates. program in python Number squared Number cubed Number Type: Even composite numberOdd or Even Prime (Exactly 2 factors) or Composite (More than 2 factors) Whether the number is a perfect square: No (6 does not have an integer square root like 4 or 9) Square Root: (Print this line only if the number is perfect square) List of factors that exclude duplicates and are printed horizontally on a single lineFactors: (1, 12) (2, 6) (3, 4) (4, 3) (6, 2) (12, 1) should not be includedISP-Java Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. For coding simplicity, output a space after every integer, including the last. Ex: If the input is: -15 30 the output is: -15 -5 5 15 25 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first.Write a program that implements a tip calculator. Your program should ask the user for the bill amount and the percentage of the tip, and then output the dollar amount of the tip and the final bill in three different formats. (see sample below) Example: Enter the bill amount: 27.95 Enter tip percentage: 17 A 17.0% tip on $27.95 equals $4.7515. The total bill is: 32.701499999999996 The total bill is $32.7. The total bill is $32.70.