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*nsides
Q: What difficulties does using mobile technologies present? How much money will I really save if I…
A: Start: You can save time and a money by using mobile technology, which benefits both you and your…
Q: pecified value of the name parameter. :param name: The value that the first name of the student will…
A: class Student: # Constructor def __init__(self, name, rollno, m1, m2): self.name =…
Q: How can hardware and software disruptions be recognized from one another?
A: Operating System "OS" System software that manages a computer's hardware and software resources and…
Q: Please create the MAC table for the switch below OA OB Fa1 OC Fa9 Fa3 SW Fa7 Fa5 OD OE Hub OF
A: The complete answer is below:
Q: What are the corresponding wrapper classes for the following primitive types? int char boolean short
A: Please find the answer below :
Q: What are some defining characteristics of the imperative paradigm?
A: Paradigm It can likewise be named as a technique to take care of some issue or do some task. A…
Q: Why would someone use formal methods? The use of specifications in software development must be…
A: Introduction: A requirements document for software specifications assists all parties engaged in…
Q: Why would someone use formal methods? The use of specifications in software development must be…
A: Given: Where do formal methods fit into the big picture? The application of specifications during…
Q: Give an example of a vertically coded control unit and describe your design strategy.
A: We have to give an example of a vertically coded control unit and describe the design strategy.
Q: How perform garbage collection in java Program?
A: Garbage collection :It is the process by which Java programs perform automatic memory management.…
Q: Personal preference determines the difference between BFS and DFS (DFS)
A: Introduction: The Depth-first search (DFS) a algorithm starts at the root of the tree (or any node…
Q: Which information system components fall under the organizational, management, and technological…
A: Information system The information system is an integrated set of the components for collecting,…
Q: #8 Fiftytally Redo #2 but this time put it in a loop that keeps going asking for numbers until you…
A: Required language is Python3:
Q: To be successful, test-driven development must meet a number of requirements. What would you change…
A: Definition: In the test-driven development (TDD) methodology, test cases are created to specify and…
Q: What challenges do mobile technology deployments present? When I switch to a web-based system, what…
A: Introduction: Technology that travels with the user is known as mobile technology. It consists of…
Q: Utilize an array of analytical tools to help you record your findings.
A: Given: Describe the array of analytical tools used in Data Analytics and record findings.
Q: Developers have tested software for as long as there have been developers. What makes testing a…
A: Answer is
Q: A computer is a piece of technology with several elements and no energy requirements, correct?
A: Energy Requirements: The amount of food energy required to maintain a body's size, composition, and…
Q: Methodologies for non-systems analysis should be described using clear language. Using organized…
A: Non-systems analysis: A systems analysis excludes the following processes. It's important to…
Q: the research into computers How does the word "interdependence" relate to other terms in the context…
A: The term "interdependence" refers to a situation in which two or more parties depend or rely on one…
Q: How to remove space in string both end in java Program
A: Answer:
Q: What function do design patterns serve in the development of software? Name three patterns of design…
A: Introduction: A reusable response to a typical problem in software design is a software engineering…
Q: How distinct are the definitions of "test criteria" and "test requirements" when it comes to…
A: Test criteria are the specific conditions that must be met in order for a software component or…
Q: Can you provide me a practical instance of a SQL database and describe how it functions?
A: For data analysis, SQL Database use structured query language and a predefined schema. SQL is a…
Q: in python code and screenshot is necessary take dataset wine dataset from kaggle platform Create…
A: Here is the python code of above problem. See below steps for code.
Q: In order to get the most from a computer science course, one should take notes in the way described…
A: Answer: We need to write about the what is the most important computer science course .so we will…
Q: Exercise 3: (Closest-Pair Problem) Can you design a more efficient algorithm than the one based on…
A: Answer: SOLUTION: We are given an array of n points in the plane, and the problem is to find out the…
Q: What distinguishes logical data flow diagrams from physical data flow diagrams? MetaData is the most…
A: The response: DFD based on logic: focuses on issues in business. Meetings. It provides a list of…
Q: defining the qualities necessary for successful test-driven development. If you wanted to use it in…
A: TDD is a software development process that uses test cases to define and confirm the functioning of…
Q: Explain RSA Encryption Algorithm
A: Given the public key e and the modulus n, the private key d for decryption has to be found by…
Q: What is the Waterfall method's purpose?
A: The waterfall methodology, a method for managing projects, stresses taking a sequential approach…
Q: Although model-driven engineering offers numerous benefits, how effective is it in actual use?
A: Answer is
Q: Talk about the computer system's core functions
A: primarily based on the essential working of a computer gadget, a pc in particular has 4 basic…
Q: In Python, create a telephone dictionary where the user is asked whether they wish to add, remove,…
A: first, i have created a class with four methods for adding, deleting, updating, search for numbers.…
Q: How Can a Vertical Code Be Used to Create a Control Unit's Strategy?
A: Control Unit's Purpose: The central processing unit's control unit coordinates and controls all…
Q: HAT DO YOU MEAN BY LYMORPHISM?
A: Solution -Polymorphism refers to the existence of assorted forms. Polymorphism may be merely…
Q: me good great ---Select--- super worthwhile ---Select--- ---Select--- excell
A: Solution - In the given question, we have to put the given words into a binary search tree.
Q: Write a select statement to form the union of the twos table and the threes table.
A: union - It gives us the unique records union all - it gives us all the records
Q: Requirements ● ● ● Provide the missing information in the Addressing Table. Name the router RTA and…
A: Given: Addressing Table with missing fields To solve: Provide the missing information in…
Q: Methodologies for non-systems analysis should be described using clear language. Using organized…
A: INTRODUTION: Computer organization is the understanding of a computer's functional components, how…
Q: Exist any names for software that has a specific purpose, like a virus scanner, a file compression…
A: Definition: Software designed to assist in researching, designing, advancing, or maintaining a…
Q: Establishing four project components can help you execute software engineering, and they are…
A: On any project, you will have a number of project constraints competing for your attention. They are…
Q: Software modeling and software development have important differences. Describe the role that each…
A: The Methodology of Software Development In software engineering, the practise of segmenting…
Q: What are some possible applications for SSH? List the acronyms related to SSH and provide a short…
A: By having a shared understanding of how to communicate, SSH, or Secure Shell, is a network protocol…
Q: Question 20 Consider the stack s: [33, 51, 4, 7], s.top: Selected Answer: b. 7 Answers: a. 4 b. 7 c.…
A: Stack The last in, first out (LIFO) principle underlies the conceptual structure of a stack, which…
Q: 3) Using Excess-8 notation convert following fractional numbers into decimal. a) 01010100 b)10111100
A: a) 84/8 = 10.5 To convert a fraction in Excess-8 notation to decimal, divide the numerator by 8 and…
Q: List the three most important design characteristics you will consider during design and explain why…
A: The three most important design characteristics to consider when designing a remote control are…
Q: In Python, Given the 2D list below, convert all values to 255 if they are above a threshold or to 0…
A: Code a =[[77,68,86,73],[96,87,89,81],[70,90,86,81]] # 2d array #printing the orignal…
Q: A problem-to-algorithm translation procedure is referred to as a computer program.
A: A problem is a description of something that is difficult to comprehend or involves massive…
Q: How to convert all char in string lower case in java Program
A: convert all char in string lower case in java Program:-
Easy
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*nsides
Step by step
Solved in 4 steps with 2 images
- In this assignment you will write a program that shows the valid moves of chess pieces. Your program will draw a board with 64 squares using the traditional layout, next ask the user to choose a move, and then, depending on the user's choice, redraw the board with the selected chess piece and its valid moves. Please see the examples of valid moves of chess pieces and the traditional chess board layout below:Summary When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is (first image which R=....): You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is (second image which L'=....) : where R is the periodic payment. (Note that if the payments are monthly, then m = 12.) Instructions Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the…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…
- For My Java class, this being my first programming class, I have been asked to complete the following to learn Loops. Next is arrays but I was hoping to get help understanding this first. Thanks 1-Design a program that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been entered, the program should display their sum. 2-The distance a vehicle travels can be calculated as follows: Distance = Speed x Time Design a program that asks a user for the speed of a vehicle in miles per hour and how many hours it has travelled (Assume the two values are integers). Your program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. (For example, entering 50 mph and 4 hours should produce output like: Hour 1: 50 miles, Hour 2: 100 miles, Hour 3: 150 miles, Hour 4: 200 miles. ) 3-Design a program that uses nested loops to display a…Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of 5.5 using the formula:• Perimeter = 2 * radius * PI• Area = radius * radius * PI• Use Math.PI for PI in your programSee the sample outputs for more clarification. Project Specifications Input for this project: Values of the grid (row by row) Output for this project: Whether or not the grid is magic square Programmer's full name Project number Project due date Processing Requirements Use the following template to start your project: #include using namespace std; // Global constants // The number of rows in the array // The number of columns in the array // The value of the smallest number // The value of the largest number const int ROWS = 3; const int COLS = 3; const int MIN = 1; const int MAX = 9; // Function prototypes bool isMagicsquare(int arrayRow1[], int arrayRow2 [], int arrayRow3[], int size); bool checkRange (int arrayRow1[], int arrayRow2[], int arrayRow3[], int size, int min, int max); bool checkUnique(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size); bool checkRowSum (int arrayrow1[], int arrayrow2[], int arrayrow3[], int size); bool checkColiSum(int arrayrow1[], int…
- Use Visual Basic Write a RainFall program that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following: the total rainfall for the year the average monthly rainfall the month with the most rain the month with the least rain Input Validation: Do not accept negative numbers for monthly rainfall figures. Use Visual BasicThe quadratic formula is used to solve a very specific type of equation, called aquadratic equation. These equations are usually written in the following form:ax2 + bx + c = 0The Quadratic Formula x = ( -b ± √( b^2 - 4ac ) ) / ( 2a ) Where a, b, and c are constants with a ≠ 0. (If a = 0, the equation is a linear equation.)The discriminant is the part of the formula in the square root. If the value of the discriminant is zero then the equation has a single real root. If the value of thediscriminant is positive then the equation has two real roots. If the value of thediscriminant is negative, then the equation has two complex roots.Write a program that finds the roots of the quadratic equation using the Quadratic Formula. Write a function named discriminant in the file, Disc.py, to calculate and return the discriminant of the formula. Let the main function call the discriminant function and then calculate the solution(s) of the equation. Do not calculate the solutions in the discriminant…Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of 5.5 using the formula: Perimeter = 2 * radius * PI Area radius * radius * PI Use Math.PI for PI in your program.
- 2) A BMI Calculator: the body mass index (BMI) is a measure used to determine whether 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 have to create a BMI calculator, i.e., a Java program, 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.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greaterThe 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 between two points using…Suppose you want to deposit a certain amount of money into a savings account, and thenleave it alone to draw interest for the next 10 years. At the end of 10 years, you would like tohave $10,000 in the account. How much do you need to deposit today to make that happen?You can use the following formula, which is known as the present value formula, to find out:The terms in the formula are as follows: [5 marks]• P is the present value, or the amount that you need to deposit today.• F is the future value that you want in the account. (In this case, F is $10,000.)• r is the annual interest rate.• n is the number of years that you plan to let the money sit in the account.Write a method named presentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years asarguments. It should return the present value, which is the amount that you need to deposit today.Demonstrate the method in a program that lets the user experiment with…