Category Archives: Samples

Mastering Java Web Scraping: A Comprehensive Guide

The Ultimate Guide to Web Scraping with Java

Web scraping has become an indispensable tool for extracting data from websites. Whether for data analysis, research, or automation, mastering web scraping opens doors to a wealth of information. In this comprehensive guide, we’ll explore the world of Java web scraping, uncovering the best libraries, techniques, and practices to help you extract data efficiently and effectively.

Continue reading

Understanding Indentation in Python

In the programming world, indentation has been essential for structuring code. Unlike most languages, which use braces and keywords to mark code blocks, Python uses whitespaces and indents only to distinguish code blocks as they return. 

Such a feature is crucial to how Python programs are written, read, and executed, as well as the heart of the role of the language in the world of programming. This article unravels the mysteries of space and invades the indentation of Python, importing its rules, benefits, and shortcomings and giving the techniques for their use.

Continue reading

Gravity Calculator Java Example

GRAVITY CALCULATOR JAVA TASK:

Create Java gravity calculator, able to determine the object’s final position after falling through the Earth’s atmosphere through the predetermined time. The initial parameters include: gravity (-9.81), falling time (10 seconds), as well as initial position and initial velocity of the object (both set to 0 by default). However the user should be able to modify the last 3 parameters according to his liking, with the calculator providing him with corresponding final position each time one of parameters changes. Continue reading

The Algorithm of Pyramid Sort

This guide presents a pyramid sort that is a classical algorithm that any programmer should probably know. This guide is remarkable in that it can help students deal with their own assignments. There are no best samples on this topic, so feel free to use it to deal with your own task, but don’t present this sample as your own. Because many students have problems with IT tasks, AssignmentShark.com offers its online assignment help. On our site, you can find a list of experts you can choose from.

Our experts work fast, so you will get a completed assignment even before the deadline. At the same time, we have reasonable prices, so any student can afford using our service. We offer help with any type of assignment. You just need to place an order on our site with your requirements and set the deadline. For those who are not knowledgeable in the pyramid sorting subject, we present the following guide.

Continue reading

Law of Conservation of Energy Problems with Solutions

Problem 1:

An intrepid physics student decides to try bungee jumping. She obtains a cord that is h=12 m long and has a spring constant of K=3.00 * 10^2 N/m. When fully suited, she has a mass of m=69 kg. She looks for a bridge to which she can tie the cord and step off. Determine the minimum height of the bridge L, that will allow her to stay dry (that is, so that she stops just before hitting the water below). Assume air resistance that is negligible.

law-conservation-of-energy-problem Continue reading

Find Out Whether Or Not Your Array is Balanced

Task:

An array is considered to be balanced if it can be divided into two parts so that the sum of the elements of the left-hand side is equal to the sum of the elements of the right-hand side. For example, the array [1, 1, 1, 2, 1] can be divided into two parts: [1, 1, 1] and [2, 1]. The sum of the elements of both parts is equal to 3, thus, the array is balanced. Continue reading