๐๐ก๐๐ญ ๐ฐ๐ข๐ฅ๐ฅ ๐๐ ๐ฅ๐จ๐ ๐ ๐๐ ๐ญ๐จ ๐ญ๐ก๐ ๐๐จ๐ง๐ฌ๐จ๐ฅ๐?
๐๐ก๐๐ญ ๐ฐ๐ข๐ฅ๐ฅ ๐๐ ๐ฅ๐จ๐ ๐ ๐๐ ๐ญ๐จ ๐ญ๐ก๐ ๐๐จ๐ง๐ฌ๐จ๐ฅ๐?
task by b2broker
Test task: Financial transactions system
We expect you to use SOLID, GRASP principles, design
patterns. Code check must be passed by phpstan, phpcs
analyzers. In README file in the test task you should
describe which patterns did you use and why.
Only business logic code required. MVC pattern is
forbidden, UI Interface is not required because there
is no reason for start application. That means you
should not write controllers and views.
Task Question:
Implement a set of classes for managing the financial
operations of an account.
There are three types of transactions: deposits, withdrawals
and transfer from account to account.
The transaction contains a comment, an amount, and a due
date.
Required methods:
get all accounts in the system.
get the balance of a specific account
perform an operation
get all account transactions sorted by comment in
alphabetical order.
get all account transactions sorted by date.
The test task must be implemented without the use of
frameworks and databases. This is necessary in order to see
your coding style, ability to understand and implement the
task and demonstrate your skills.
task by myverkoper.com
<!-- SELECT Rank
implement sorting without sort in php
task
task 1:<?php //Complete sorting functionality without using any inbuilt sorting related functions $arr = [50,20,35,15,45]; echo "Before Sorting <br/>"; print_r($arr); //sorting logic start //write your code here //sorting logic end echo "After Sorting <br/>" print_r($arr); ?>
programm
<?php
$arr = [50, 20, 35, 15, 45];
echo "Before Sorting <br/>";
print_r($arr);
// sorting logic start
$length = count($arr);
for ($i = 0; $i < $length - 1; $i++) {
for ($j = 0; $j < $length - $i - 1; $j++) {
if ($arr[$j] > $arr[$j + 1]) {
// swap elements
$temp = $arr[$j];
$arr[$j] = $arr[$j + 1];
$arr[$j + 1] = $temp;
}
}
}
// sorting logic end
echo "After Sorting <br/>";
print_r($arr);
?>
<!-- With out using limit in query, display 2nd highest rank person -->
<!-- SELECT Rank
FROM Persons
WHERE Rank < (SELECT MAX(Rank) FROM Persons)
ORDER BY Rank DESC -->
laravel tables
add column
move from old column to new column
drop column
rename column
Hey Folks, It’s Worse Than We Thought — Claude’s Privacy Mess Just Got Bigger
What started as a leak of shared Claude chats has turned into something much bigger — and much worse. The same thing is now happening with...
-
https://drive.google.com/drive/u/0/folders/1tnOqp3maCiEHUV8QrxKj-rzev2cD2993?fbclid=IwAR33nthTFczEOcEYs0Npgc02Wu3ckOxi4FkLzwFJQvUvayOR2zv3C...
-
s directives are modifying the html dom elements or oding some actions on dom elements Directives in Vue.js are special attributes that a...
-
it will caliculate time gap bewtween each request if it is request cross greater thatn 10 minutes its logout axios.interceptors.request.use...