Ahmad Nawaz Khan

PDF Reader with Admob App Using Android Studio

This tutorial is about:✓Create PDF app.✓Display Specific or all pages from PDF✓Display PDF from Assets folder.✓Add padding between pages✓Passwords✓Scroll PDF pages vertically or Swipe horizontally. Step 1: Create a new project OR Open your projectStep 2: Add following library in build.gradle(Module:app) Step 3: Create Assets folder and place a pdf file in that folder.Step 4: …

PDF Reader with Admob App Using Android Studio Read More »

Android RecyclerView, Android CardView Example Tutorial

Android RecyclerView and Android CardView got introduced in Android Lollipop with Material Design. For those who’re not aware of Material Design, its a comprehensive guide of UI Widgets introduced since Android 5.0 and it improves the visual appeal of the apps. Android RecyclerView Android RecyclerView is a more advanced, powerful and flexible version of the ListView. Android RecyclerView is similar to ListView …

Android RecyclerView, Android CardView Example Tutorial Read More »

Rewrite the program written for Task-2, where instead of asking to choose between 1 through 4, user directly enters symbols like ‘+’, ‘-’, ‘*’, and ‘.’ for quitting.

Rewrite the program written for Task-2, where instead of asking to choose between 1 through 4, user directly enters symbols like ‘+’, ‘-’, ‘*’, and ‘.’ for quitting. Solution : include include using namespace std; int main() { char ch; int num1, num2, total; //we use while loop and it closed when we press 4 …

Rewrite the program written for Task-2, where instead of asking to choose between 1 through 4, user directly enters symbols like ‘+’, ‘-’, ‘*’, and ‘.’ for quitting. Read More »

Write a menu-driven C++ program that performs the following according to user’s choice: 1. Add 2. Subtract 3. Multiply 4. Quit

Write a menu-driven C++ program that performs the following according to user’s choice: Add Subtract Multiply Quit The program shall ask user to choose an option between 1 and 4, and then perform the desired calculation. For instance, if user specifies 1, then the program requests from the user two values, calculates addition of them, …

Write a menu-driven C++ program that performs the following according to user’s choice: 1. Add 2. Subtract 3. Multiply 4. Quit Read More »

Write a C++ program that makes use of the cout statements and prints the following values to the screen.

Write a C++ program that makes use of the cout statements and prints the following values to the screen.4 // printing an integer_ _ 4 // printing within 3 spaces4 _ _ // printing within 3 spaces but left adjusted3.141559 // printing a floating-point value3.14 // printing floating-point value using 2 digits after the decimal …

Write a C++ program that makes use of the cout statements and prints the following values to the screen. Read More »

Write a C++ program adds two user-specified integer values and displays the result to the screen.

Task-2: Write a C++ program adds two user-specified integer values and displays the result to the screen.  Sample scenario: Enter first value: 3 Enter second value: 4 Addition of 3 and 4 is 7 Try to obtain the last line as below. 3 + 4 = 7 Solution : Input Screen #include<iostream> using namespace std; …

Write a C++ program adds two user-specified integer values and displays the result to the screen. Read More »