Task:
Given n names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers.Â
You will then be given an unknown number of names to query your phone book for.Â
For each named queried, print the associated entry from your phone book on a new line in the form name=phoneNumber;Â
if an entry for name is not found, print Not found instead.
Note: Your p
Date: June 25, 2022, 7:20 am Author: Akram Hossain
Task
Given an array,A, of N integers, print A's elements in reverse order as a single line of space-separated numbers.
Example
A=[1,2,3,4]
Print 4 3 2 1. Each integer is separated by one space.
Input Format
The first line contains an integer,N(the size of our array).
The second line contains N space-separated integers that describe array A's elements.
Constraints
1
Date: January 4, 2022, 11:33 am Author: Akram Hossain
Razorpay is the only payments solution in India that allows businesses to accept,Â
process and disburse payments with its product suite.Â
It gives you access to all payment modes including credit card, debit card, netbanking,Â
UPI and popular wallets including JioMoney, Mobikwik, Airtel Money, FreeCharge, Ola Money and PayZapp.
Now we will try to integrate Razorpay in Yii2 application.
Aft
Date: December 28, 2021, 12:58 pm Author: Akram Hossain
Hacker Rank: Day 6: Let's Review
Task
Given a string,S, of length N that is indexed from 0 to N-1, print its even-indexed
and odd-indexed characters as 2 space-separated
strings on a single line (see the Sample below for more detail).Note: 0 is considered to be an even index. Â
Example
s = abdecf
Print abc def
Input Format
The first line contains an integer, T(the number of test cases).
Date: November 20, 2021, 4:12 pm Author: Akram Hossain
Task:
Write a Person class with an instance variable, age, and a constructor that takes an integer, initialAge, as a parameter.
The constructor must assign initialAge to age after confirming the argument passed as initialAge is not negative;
if a negative argument is passed as initialAge, the constructor should set age to 0 and print Age is not valid, setting age to 0..
In addition, you must
Date: June 13, 2021, 12:58 pm Author: Akram Hossain
Task:
Given an integer,perform the following conditional actions:
If n is odd, print Weird
If n is even and in the inclusive range of 2 to 5, print Not Weird
If n is even and in the inclusive range of 6 to 20, print Weird
If n is even and greater than 20, print Not Weird
Input Format:
A single line containing a positive integer, n.
Constraints:
1 0 && $i =2 && $i =6 && $i 20){Â Â Â
Date: June 10, 2021, 1:46 pm Author: Akram Hossain
In this blog post, i will try to explain how to integrate ccavenue payment gateway in Yii2.
ccavenue  is one of India's leading digital payments and e-commerce solutions provider.Â
They provide extensive suite of web services to extend digital payment solutions. Before getting started with implementation
you need to clone or download my github repository https://github.com/akramrana/yii2-ccav
Task:
Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip),Â
and tax percent (the percentage of the meal price being added as tax) for a meal,Â
find and print the meal's total cost. Round the result to the nearest integer.
Example:
meal cost = 100
tip percent = 15
tax percent = 8
A tip of 15% * 100 = 15, and the taxes are 8% * 100
Smart app banner is an important element which is used to motivate user to download mobile application instead of using the website. The usage of a smart banner is only to promote app.To implement smart banner in Yii2 web application we need to do the following
Download the javascript library from github using this https://github.com/kudago/smart-app-banner as .zip format
Put smart app bann
Task:
Declare 3 variables: one of type int, one of type double, and one of type String.Â
Read 3 lines of input from stdin (according to the sequence given in the Input Format section below) and initialize your 3 variables.Â
Use the + operator to perform the following operations:Â
Print the sum of i plus your int variable on a new line.
Print the sum of d plus your double variable to a
Task:
To complete this challenge, you must save a line of input from stdin to a variable, print Hello,
World. on a single line, and finally print the value of your variable on a second line.
Input Format:
A single line of text denoting inputString (the variable whose contents must be printed).
Output Format:
Print Hello, World. on the first line, and the contents of inputString on the second