Question 1: Write a Java class named (TriangleArea) that reads from the user the base of the triangle and its height as real numbers. Then calculates and prints the area of the triangle (rounded to 3 decimal places) Hint: area = % (base)(height)
Q: In a C# Console Ap Write a method that takes an int and a double and returns their product.
A: The requested C# program by using a method is provided in next step.
Q: Let A, B, C, D be the vertices of a square with side length 100. If we want to create a minimum-wei...
A: The Answer is
Q: Convert 100 1100 0011 base 2 to base 16. How would this be done?
A: Your answer is given below in detail.
Q: D. Single Phase Circuit Consider the circuit in Figure 2 - 1 Rídr Lfdr ZL Figure 2 -1 Given that Ra ...
A:
Q: What have you observed and conclusion about looping statements at c++
A: Looping statements: An looping statements are allows you to execute statement or group of statement...
Q: A. What is recursion and how does it work?
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other questio...
Q: Write a Python program to check whether a string is palindrome or not which is taken from the user i...
A: Write a Python program to input a string and check whether the string is palindrome or not.
Q: Discuss the evolution of the internet and its technological underpinning.
A: Internet in simple words means network of networks i.e. connection of large no devices to each other...
Q: What is the difference between logical data flow diagrams and physical data flow diagrams?
A: What is the difference between logical data flow diagrams and physical data flow diagrams?
Q: What are the advantages of implementing integrity requirements throughout the database design and im...
A: DATA INTEGRITY : Data integrity alludes to the general accuracy, completeness, and realibility qual...
Q: JAVA PROGRAMMING LAB Write a Java program to takes 2 numbers from the user and print true if one or ...
A: Required:- JAVA PROGRAMMING LAB Write a Java program to take 2 numbers from the user and pri...
Q: What exactly is the difference between sequential and combinatorial logic?
A: Introduction: Combinational CircuitA combinational circuit can be defined as a circuit whose output ...
Q: class. Using arrays of various sizes, the program should count the number of comparisons and count t...
A: the code is an given below :
Q: Suppose we are using gradient descent to learn linear regression. The hypothesis is ho(x) = 00 + 01x...
A: h(x) = 1 + 2x at x = 10 h(10) = 21. alpha = 0.5
Q: Discuss how data quality audits can help verify the accuracy of information obtained from the Inform...
A: huge volume of data is available in companies, maintanance of the these data is difficult. these dat...
Q: Make a topic / problem that can be solved in terms of software engineering
A: Software developers work on a range of tasks, from pure coding to system-level design and troublesho...
Q: efer to Figure 2. Using Dijkstra’s Algorithm, determine the shortest distance from ertex S to other ...
A: Here in this question we have given a graph and we have asked to apply dijkastra algorithm on this g...
Q: Suppose a computer having 5 GHz processor with cycle time of 4ns and main memory access time 200ns w...
A: Here , the processor is of 5 ghz , and we are given the three level memory structure , the cache mem...
Q: 2. 2 independent problems about Elgamal: (a) what things go badly if Alice picks the private keys 0 ...
A: Plain text in cryptography: Packet headers are generally plain visible text before it will be secure...
Q: 3. Minimize the following DFA using Table Filling Algorithm. Show the steps. Draw the minimized DFA....
A: Given DFA contains 5 states that are A, B, C, D and E. Input alphabets={0,1} Initial state=A Set of...
Q: Write the sequence of nodes produced by the inorder traversal of tree in figure. Write the name of t...
A: The question is to find the ignorer traversal for the given ternary tree.
Q: sms in a trusted compute based? Given me at least 6 of them and explain their function in your own w...
A: Trusted Computing BaseA computer system's trusted computing base is the collection of all hardware, ...
Q: create python program with a lambda function that multiplies argument a with argument y and prints t...
A: We are going to write a Python code which will use lambda function to multiply two arguments which a...
Q: Give details, and explain briefly on each of the following Core Practices: 1. Collective Code Owner...
A: The answer is given below.
Q: Illustrate a minimum spanning tree (MST) using Kruskal’s Algorithm for the graph in Figure 4. Determ...
A: A minimum spanning tree or MST is a subgraph of the graph where all the vertices are present and con...
Q: How to write a turing machine that organizes/sorts an input binary string. For example: given 1110 t...
A: Here we have given solution with transition drawing to sort the binary string
Q: Q2. What are the various access specifiers for Java classes?
A: Q2. What are the various access specifier for java classes? Answer: Access specifier for java class...
Q: (g.) 1 0000 0000 binary representation, and show negative numbers in sign- (h.) 1 0000 0001 magnitud...
A: We only add an extra sign bit to recognize negative and positive numbers. Sign bit has 1 for negativ...
Q: What are the names of the two Windows applications that use the RDP protocol and port 33899?
A: Introduction: Application of RDP protocol and port 33899 in windows
Q: Write a query which set the following constraints in Customers table (in MySQL). First Name and cit...
A: We are going to add constraints to the columns in the table Customers. First we will add constraint ...
Q: How do I write a python program that iterates the integers from 1 to 50? For multiples of three pri...
A: The python program to print different string for some condition and for starting 50 numbers. If num...
Q: t process is sup
A: Traditional system development The process of designing and developing simple software is known as ...
Q: C. Plot time-varying sinusoid signals v(t) from Vms and phase on the same plot. Label the graph. 1. ...
A: According to the question, we have to plot a time-varying sinusoidal signals by given fields. So Fir...
Q: Justify why a web server can be considered an end system.
A: The web server is an essential part of every web application. It handles requests, files, and databa...
Q: Use relational algebra (operation like selection, procejection, etc.) to find names, age, rating of ...
A: Relational algebra is also known relational query language Query languages: It allows manipulation a...
Q: a) Learning rate = 0.0005 is corresponding to curve: b) Learning rate = 1.3 is corresponding to curv...
A: One of the optimization algorithms used in deep learning and machine learning is the Gradient Descen...
Q: Question 2: Write a java program that prompt the user for a string telephone number of the form ddd-...
A: According to the Question below the solution: Output:
Q: Create a Java class that displays that accepts a number and displays the left most digit The number...
A: import java.util.*;public class Main{ public static int lastDigits(int num){ // keep looping till o...
Q: write an if command to choose betwheen apple or oranage
A: You don't give a any programing language so I choose a Basic conceptual Language C. The Answer is gi...
Q: c++ beginers given 10 numbers a1 a2 ... a10 calculate (do not use an array)
A: The cin object is used to accept input from the standard input device i.e. keyboard.
Q: Java programming help please. Thank you so so much. i have to Write a program that does the follow...
A: Input function to take array and rearrange. Rearrange positive ang negative elements of array. Shift...
Q: ements for using the AWS SDK S3 with a Spr
A: Below the requirements for using the AWS SDK S3 with a Spring Boot application?
Q: Write a console application that uses at least five(5) different methods of Math class. Provide a me...
A: In C#, Math class It is used present mathematics operation which contains static methods and constan...
Q: How will you secure the safety precautions and reminder before maneuvering a shaper machine?
A: Given:
Q: 1. Write a Visual Logic program that calculates the following. a) The user enters an amount b) The p...
A:
Q: 1. This program should obtain a number of exercise routines from the user. Then, for each exercise r...
A: ANS: I Had provide the code in C++ and also I had running this code on online C++ compiler with 2 di...
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a ...
A: To write a code to computes the tuition in ten years and the total cost of 4 years’ worth of tuition...
Q: If a process forks two processes and these each fork two processes, how many processes are in this p...
A: When a process forks, the operating system makes a copy of that process. The only difference is that...
Q: Design a Turing machine
A: Input : 0 0 c 0 0 0 // 2 + 3 Step-1: Convert 0 into X and goto step 2. If symbol is “c” then co...
Q: Prove or disprorve the following: Please show ypur solution 1. T(n) = 3n^3 + 2n - 4 is O(n^3
A:
please solve question 1, Java
Step by step
Solved in 3 steps with 1 images
- Java Class: Fundraiser You are a fundraising distributor who needs to to pre-sell a limited number of doughnut coupon books. Each buyer can buy as many as 4 coupon books. No more than 100 coupon books can be sold. Implement a program called Fundraiser that prompts the user for the desired number of coupon books and then displays the number of remaining coupon books. Repeat until all coupon books have been sold, and then display the total number of buyers.Ugly Numbers: Numbers whose only prime factors are 2, 3 or 5. 1 is also a ugly number by convention. Write a Java program to take input an integer n from the user and check whether n is a ugly or not.Write a structured Java program to calculate the parking fare forcustomers who park their cars in a parking lot when the following information isgiven:a) A character showing the type of vehicle: C for car, B for bus, T for truck An integer between 0 and 24 shows the hour the vehicle entered the lotc) An integer between 0 and 60 showing the minute the vehicle entered the lotd) An integer between 0 and 24 showing the hour the vehicle left the lote) An integer between 0 and 60 showing the minute the vehicle left the lotThis is a public lot. To encourage people to park for a short period of time, themanagement uses two different rates for each type of vehicle, as shown in thefollowing table:Vehicle First Rate Second RateCAR RM 0.00/hour first 3 hour RM 1.50/hour after 3 hourTRUCK RM 1.00/hour first 2 hour RM 2.30/hour after 2 hourBUS RM 2.00/hour for first hour RM 3.70/hour after first hourThe input data consist of a character and a set of four integers representing thetype of vehicle and…
- Write an java application that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic average. import java.util.*; public class QuizScoreStatistics { public static void main (String args[]) { // Write your code here } }JAVA CODE ONLY 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 perimeter of a given rectangle…Java Programming Assignment: Sammer, a smart child, just learned about series and numbers. He wrote the numbers in sequence and went to have milk. Unfortunately, while going to the shop he had a small accident and the coins are mixed with the other lady coin (May also mixed negative numbers) Now that you have been given these mixed numbers, your task is to help the little one finds the first missing natural number by using the Java programming language. Sample Input: 1 265-88 6 7 Sample Output: 1
- Kinetic energy is the measure of the work that an object does by virtue of its motion. It is best illustrated by the formula: KE = 0.5 mv² Create a java class that will call a method that will compute for the kinetic energy. Sample output: Enter mass of an object: 54 Enter velocity of an object: 2.87 The kinetic energy of an object is: 222.40 joules Note: 1. The result should be in 2 decimal places. 2. Apply the exception handling method. 3. SCREENSHOTS NOT ALLOWED! 4. Save your file as KineticPT.java.java Exercise 1:Write a program to do the following using the Math class: Ask a user to enter two integer numbersFinds the square root of each numberFinds the minimumFinds the maximum. Exercise 2:Write a program to calculate area of circle. The main method should pass the radius of the circle to a static method named calculateArea(). The program should display the calculated area inside the main method.In Java Write a program that lets the user guess whether the flip of a coin results in heads or tails. The program randomly generates an integer 0 or 1, which represents head or tail. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.
- Write an application that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic average. ***Java please***Create a Java class that accepts a number The input number must be between 10 and 99. You must validate this. If the input number is outside of this range, output a message "Invalid Input" and exit the program. If its a valid number: Check if the square of the sum of its digits is equal to the input number If the square of the sum of its digits is not equal to the input number, find the reverse of the number and display it. For example: Input: 81 Output: 81 because 81 = (8 + 1)2 Input: 23 Output: 32 because 23 is not equal to (2 + 3)22. Write a program with a user interface which allows the user to enter 2 integers. It should then give him the option of adding them, subtracting them, multiplying them or dividing them. It should then print the result. 3. Write a program with a user interface to allow a user to enter a number and to tell him whether the number is even or odd Use the truncating property of int