You will be given 2 variables and your task will be to print false using those vars:
public class PrintingFalse {
public static void main(String[] args) {
int first = 9;
int second = -17;
//write code here
}
}
In the given code snippet you should pick correct primitive type to allow division by zero. Which means that the program must be able to perform division without any exception, etc. In order to do this you will have to search for additional info yourself.
public class DivisionByZero {
public static void main(String[] args) {
_ number = 10;
System.out.println(number/0);
}
}
Instead of "_" sign set correct var type.
Implement program that will print if number is positive true, otherwise false (no if or ternary). Code snippet:
public class NumbersPrinter {
public void printIsPositive(int number) {
}
}
Where number - variable that should be used within the program.
Revert 3-digit number that will be passed (e.g.: given -> 489, expected -> 984) and print it. Code snippet:
public class NumberReverter {
public void revert(int number) {
}
}
Where number - variable that should be used within the program.
You will be given a four-digit number your task will be to find the sum of all digits in the given number. Code snippet:
public class DigitsSumCalculator {
public void calculateSum(int number) {
}
}
Where number - variable that should be used within the program.
You will be given temperature in celsius and your task will be to print this temperature in fahrenheit (formula will be required). Code snippet:
public class TemperatureConverter {
public void toFahrenheit(int temperatureCelsius){
}
}
Where temperatureCelsius - variable that should be used within the program.
stage0-module3-taskfinal's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.