Write the java program for the following problem. The program will accept the values of the radius and height. If the value radius is less than or equal the value of the height, it will compute for the Cone. Otherwise, it will compute for the Cylinder. Cone = 1/3 a radius^2height Cylinder = t radius^2 height
Q: Charles Babbage is known as the "Father of the Computer" for a reason.
A: Computer is an electronic device which made life of human very simple starting from basic calculatio...
Q: Please write a Python program which accepts a sentence (input via keyboard), and convert uppercase l...
A: For the given program, we ask the user the input using the input() function and loop through each ch...
Q: In the following AppendTo Tail method for a double linked list: public void AppendToTail(int newltem...
A: Given: In the following AppendToTail method for the doubly linked list Given. We have to answer ...
Q: What is the a) "The Weakest Link In Cybersecurity" and b) what can be done to prevent it?
A: a) "The Weakest Link In Cybersecurity Ans:- the weakest link is the employee of any organization. t...
Q: Storage locations on a disk that are divided into pie-shaped sections?
A: Yes, storage locations on a disk that are divided into pie shaped sections and that is the architect...
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: 2. Microsoft SQL server, how to copy 1 table from database1 and paste in database2, Each server is...
A: So , There is simple trick that you are able to copy one table from database1 and paste it on databa...
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: Write a Circle Class that has the following fields: Radius: A double PI: A final double initialize...
A: import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc=ne...
Q: Name and distinguish between the two main storage device categories.
A: INTRODUCTION: In the given problem statement, we are asked with two main storage devices categories ...
Q: Write a Python program that will generate 1000 random numbers between 1 and 100 inclusive from the r...
A: PROGRAM INTRODUCTION: Import the required libraries. Start the definition of getRandom method that ...
Q: Explain the difference between Low-Fidelity Prototype and High-Fidelity Prototype.
A: Introduction: Here we are required to explain the difference between Low-Fidelity Prototype and High...
Q: t for the store. She would like to know how much the merchandise should be marked up so that after ...
A:
Q: the following is logically equivalent to [(p ∨ q) ∧ (p ∨ ¬q) ∧ (p ∨ r)] → [(p ∨ ¬q) ∧ (¬p ∨ ¬q) ∧ (¬...
A: Lets see the solution.
Q: Without regard for physical storage and representation, logical data modeling portrays the arrangeme...
A: Data models are those models that form they foundation for an organization's project planning. Data ...
Q: USB stands for Universal Serial Bus.
A: I have described about USB below,
Q: Draw a schematic logic diagram for a binary adder that could properly sum numbers as large as the bi...
A:
Q: A Moving to the next question prevents changes to this answer. estion 14 If a number is divsible by ...
A: Solution:
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: There are two integer data values in locations num1 and num2. Create these two variables in an assem...
A: the program is an given below :
Q: What Is the Hierarchy of Data Warehousing?
A: Hierarchies play a crucial role in the processing and monitoring of data in data warehouse systems. ...
Q: A computer consumes what kind of energy?
A: A computer consumes what kind of energy?
Q: Input a non-zero positive integer. Using while loop, print out each digit of the inputted integer in...
A: C Code as per the given instruction #include<stdio.h>int main() {int n;int x;int y=0;int count...
Q: .How do l create Content Web for engaging teaching and learning
A: Creative content web for engaging teaching and learning.
Q: Suppose you have a packet to send of N bytes. What will happen when you send it using the below swit...
A: the answer is
Q: tion tha
A: #create method which is used for creating account as per your requirement
Q: Discuss the basic concepts behind computer networks and the benefits of computer networking
A: Computer Network: It is a process of connecting more than two computers which purpose to share data,...
Q: I keep on getting syntax errors can someone fix it and also put into JOptionpane for me. And attach ...
A: Note: I am giving answers based on the given code and rewriting the code. the logical part according...
Q: 1. Give the name of a function that returns an int and generates a random number in the C Standard L...
A: 1. ions that allow us to get the absolute value of a number located in different headers. What two h...
Q: Please code the following problem in Python. Please follow the instructions. Thank you, I'll give up...
A: Introduction: Make a Big-O function that accepts, as an input, a list of size n and prints all the i...
Q: 6. Prove or disprove that the two propositions in each pair are equivalent. a) (p → (9 → r)) ((p→ q)...
A:
Q: Create an unsigned 16-bit number that stores the value 13330 (decimal). Show what the memory contain...
A: Create an unsigned 16-bit number that stores the value 13330 (decimal). Show what the memory contain...
Q: Write a C++ program to store the names of students in the class. The program should display the name...
A: Given: Write a C++ program to store the names of students in the class. The program should display t...
Q: 5. How many point correspondances do we need to estimate transform with 6 degrees of freedom? 4 5. W...
A: Solution:
Q: How do I write a 7 segments display code in VHDL? Please help
A: According to the information given:- We have to the write VHDL of 7 segments display
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: Bourne/Bash shell) a) Write a shell script that checks to see if your PATH environment variable con...
A: ach shell session keeps track of its own shell and environmental variables. We can access these in a...
Q: Is it necessary in Java for Exception handling for a Try Block to be followed by a Catch Block?
A: Introduction: The try statement allows you to define a block of code to be tested for errors while i...
Q: For a linear search, explain what the terms "best time" and "worst time" mean. Be specific.
A: According to the Bartelby guideline we are suppose to answer only one question at a time Kindly repo...
Q: The next 4 questions are based on the following description: In all following calculations, assume K...
A:
Q: What role do data models play in database development?
A: Introduction: Data modelling is a method for defining and organising business operations. It allows ...
Q: Multiple-core processors offer a number of advantages.
A: Given: Multiple-core CPUs come with a slew of benefits.
Q: Define the Exception Classes? what are the characteristics of these classes?
A: Please refer below for explaination for both questions:
Q: Find Multiplicative Inverse of the following i)15-1 mod 17 ii)12-1 mod 77 b) Per...
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any ...
Q: How does CSS enhance a website?
A: Note- As per the Bartleby process we have to attempt only one question. Cascading Style Sheets is ...
Q: X609: Magic Date A magic date is one when written in the following format, the month times the date ...
A: Create as MagicDate class and main method. Inside main method take month, day and year of a date as ...
Q: this is image analysis you need to write matlab code no built in function include signal to nois...
A: C++ code: #include<iostream> #include<cstdlib> #include<cmath> #include<ctime&g...
Q: Big-O Coding Exercise Show your solution and explanations. Problem 6 def oneloop (n) : while n != 1:...
A: We need to find the time complexity of the given code.
Q: What is the output of the following program segment? * c = putchar (c); putchar (F(c)); putchar (c);...
A: As per the requirement program is executed in c language. If we execute the same program as it is we...
Q: x^4-x-10=0 Find the root/s using fixed-point iteration
A:
Subject: Computer Education
Step by step
Solved in 3 steps with 1 images
- The following problem shows up in a number of Java texts, including Savitch's textbook: The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do no exercise. This is called your basal metabolic rate, or BMR. The calories needed for a woman to maintain her weight is: WBMR = 655 + (4.3 × weight in pounds) + (4.7 × height in inches) − (4.7× age in years) The calories needed for a man to maintain his weight is: MBMR = 66 + (6.3 × weight in pounds) + (12.9 × height in inches) − (6.8 × age in years) A typical chocolate bar will contain around 230 calories. Write a program that allows the user to input his or her weight in pounds, height in inches, and age in years. The program should then output the number of chocolate bars that should be consumed to maintain one’s weight for both a woman and a man of the input weight, height, and age. NOTE: This is an application of a selection statement! Input Data: Use a named constant for the…The body mass index, BMI, is a measure used to determine if a person is overweight or not. We can calculate BMI from the weight of the person (in pounds) and the height (in inches) of the person.The formula for calculating BMI is:BMI = (weightInPounds * 703) divided by (heightInInches squared)In this problem, you will develop a Java program as a BMI calculator, that reads the user’s weight in pounds and height in inches, then calculates and displays the user’s body mass index BMI. Also, display the following information {from the US Department of Health} so the user can evaluate his/her BMI:BMI values:Underweight: less than 18.5Normal: between 18.5 and 24.9Overweight: between 25 and 29.9Obese: 30 or greaterHelp code in Java 21. Compound InterestWhen a bank account pays compound interest, it pays interest not only on the principal amount thatwas deposited into the account, but also on the interest that has accumulated over time. Suppose youwant to deposit some money into a savings account, and let the account earn compound interest for acertain number of years. The formula for calculating the balance of the account after a specifiednumber of years is:A = P ( 1 + r n ) n tThe terms in the formula are:A is the amount of money in the account after the specified number of years.P is the principal amount that was originally deposited into the account.r is the annual interest rate.n is the number of times per year that the interest is compounded.t is the specified number of years.Write a program that makes the calculation for you. The program should ask the user to input thefollowing:The amount of principal originally deposited into the accountThe annual interest rate paid by the accountThe…
- Use java Only. Introduction: The equation of a straight line is written as y = mx + b where m is the slope of the line and b is the value of y when x = 0. If there are two coordinate points of the line are given, then it is very easy to compute the line equation. Also you can find the distance between two points. Problem: Write a program to compute lines equation for a set of lines. The number of lines is read from the user. Each line is computed by generating two points randomly using Point2D API. In addition, distance between two points is computed. The program should display a table which include all information about each line. See sample runs below. Take into consideration: 1. Number of generated lines should be greater than zero. 2. Two point objects are constructed only once. Then just update the location of two points for each line using Point2D API methods. 3. x and y values of each point are generated randomly to be less than 100 and greater than 0. 4. Compute the distance…in Java Tasks Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. 1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Don't display the computer's choice yet.) 2. The user enters his or her choice of "rock", "paper", or "scissors" at the keyboard. (You can use a menu if you prefer.) 3. The computer's choice is displayed. Tasks 4. A winner is selected according to the following rules: a. If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.) b. If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.) C. If one player chooses paper and the other player chooses rock, then paper wins. (Paper wraps…Control structures: In Java only please. Output the position of the largest number and the largest number in the squence a0, a1, a2....ak. For example, the largest number of the squence is 75, 226, 113, 340, 170, 85, 256, 128, 64, 32, 16, 8, 4, 2, 1 is 340, and it's position is 4. Test your program for the following values of x: 75, 111, 678, 732, 873, 2048, and 65535. Thank you
- PLEASE HELP ME FIND THE JAVA CODE FOR THIS PROBLEM 2. Rectangle by CodeChum Admin A rectangle can be formed given two points, the top left point and the bottom right point. Assuming that the top left corner of the console is point (0,0), the bottom right corner of the console is point (MAX, MAX) and given two points (all "x" and "y" coordinates are positive), you should be able to draw the rectangle in the correct location, determine if it is a square or a rectangle, and compute for its area, perimeter and center point. To be able to do this, you should create a class for a point (that has an x-coordinate and a y-coordinate). Also, create another class called Rectangle. The Rectangle should have 2 points, the top left and the bottom right. You should also implement the following methods for the Rectangle: display() - draws the rectangle on the console based on the sample area() - computes and returns the area of a given rectangle perimeter() - computes and returns the…In CORAL LANGUAGE please and thank you! Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part. Ex: If the input is: 130 50 130 the output is: 80 0 80 Hint: Find the smallest value, and then subtract it from all three values, thus removing the gray.Prime number is the number that is divided by one and itself only, Twin Prime is a pair of prime numbers that differ by 2. For example, 3 and 5 are twin primes, 5 and 7 are twin primes, and 11 and 13 are twin primes. Write a java program to find all twin primes within a range of 1 up to a number entered by user, such that, that the entered number should be greater than 10. The program has to have a method that takes an integer as a formal parameter and returns if that number is prime or not. Display the output as follows: Enter an integer (greater than 10): 7 Not accepted number! Enter an integer (greater than 10): 50 The number of twin prime numbers up to 50 are: (3, 5) (5, 7) (11, 13) (17, 19) (29, 31) (41, 43)
- Easy Program Please answer fast: you will write a program that calculates the area for ANY regular polygon. Ask the user for the side length of the polygon (the type should be double) and the number of sides (the type should be int). The formula for calculating the area can be seen below and comes in three parts. First, calculate the perimeter of the polygon: given:- perimeter(reg_polygon)=slen*nsidesCalculate your Physics final Write a Java program to solve the following problem: grade based on the following: Assessment Percent Lab Activity(ies) Quiz (zes)/Test (s) 10% 10 Assignment (s) 208 Midterm Exam (8) 20% Final Exam 40% Theory grade is the quiz/test, midterm and final exam marks. Practical grade is the assignment and lab marks. Final grade is all five marks. But the calculation of Final grade needs to comply with the following rule: If either of the practical or theory grade is less than 50%, the final grade is the lesser of the two. A grade letter must be assigned based on the final grade (See the courses outline for the distribution of grades) You must implement input validation for each mark as follows: Lab mark must be out of 10. Quiz/Test mark must be out of 10. Assignment mark must be out of 20. Midterm mark must be out of 20. Final Exam must be out of 40. Bonus: Modify your code so that you can calculate and display grade for N number of students. Your program must…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…