Problem Solving in Java - 20 problems clear your basic. | Java Programming



This Article for them who have basic knowledge of java but begainer in problem solving. it covered concepts of if-else statement , Array and String manipulation.


At first try your self. you can get help of video tutorial if you failed several time. Solution link given at the bottom of this article.

1. Print the following shapes using loop(s)



2. Write a program to generate the following output (in the given layout) using
loop(s).


3. Write a program that takes the height and width of a square and print the box of
that height and width with alphabet ‘B’. E.g. if user presses 5 for height and 8 for
width, your program should print the following. (Restrict the user such that
height or width should not be equal to zero).

4. Develop a program that inputs 10 different integers within a while loop and
displays the largest as well as smallest. (Repetition of numbers is not allowed).


5. Write a program that asks the base and exponent (power) from user and print
the result using do while loop. e.g. If base is 2 and exponent is 3, so 2*2*2 is 8.


6. Using for loop, print the result of multiplication of all odd numbers from 1 to 20
and the result of sum of all even numbers from 1 to 100.


7. Print the following shapes using loop(s)



8. Take an integer input from the user, print YES if it is prime number and NO if it
not a prime number. (Prime number is a number which is only divisible by 1 or
itself).


9. using do while print the number of digits this number contains.


10. Take two numbers from the user and print the result of multiplication and
sum of all the numbers between these two numbers. E.g. if user presses 3 and 8
then 4+5+6+7 is 22 and 4*5*6*7 is 840. (Restrict the user such that first
number must be less than the second number).


11. Take an integer input from the user and count all prime numbers from 1 up
to that number, print the total number of prime numbers as well as the largest
one. E.g. if user presses 20, your program should print “Total number of prime
numbers are: 8” (as prime numbers from 1 to 20 are 1, 3, 5, 7, 11, 13, 17, 19)
and “Largest prime number is: 19”.


12. Write a program which asks the user “How many prime numbers you want to
print: “, you have to print that much prime numbers as well as the sum of all
printed prime numbers. If user presses 11, your program should print first eleven
prime numbers, these are 1 3 5 7 11 13 17 19 23 29 31 and sum of these
printed numbers, that is 159. (Restrict the user such that input should not be
negative).


13. Take two integer arrays of 10 indices each and initialize them. Then copy
the contents of both of the arrays in a third array, one consecutive index from
one array at a time.
E.g. if the array1 has 1 2 3 4 5 6 7 8 9 10 stored and array2 has 11 12 13 14 15 16 17 18 19 20 stored then array three will have 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 stored.


14. Initialize integer array with 10 random values. Then print the second
smallest as well as second largest element from that array. (E.g. 23 7 2 56 3 8 9.
here second largest is 23 and second smallest is 3). you code might not work for 1 2 2 2 2 5 5 8 8 8 8 8, second largest is 5 and second smallest is 2. You have to
check ur program with many test cases.


15. Declare an array and take input from the user in that array, ask the user to
enter an integer and you have to print index number of that integer. if that
number exists 2 or more time at different indexes then u have to print all indexes
having that integer input.


16. Declare array and take input from the user to fill that array, take two
integer input from the user, you have to find indexes of those numbers and than
exchange those number. if 45 comes at index 3 and 67 comes at index 9. After
exchange, index 3 should contain 67 and index 9 should contain 45.


17. Declare and take input from the user in two arrays a and b, you have to print
all the numbers which exist in both the arrays.


18. Declare and take input from the user in character array, and you have to
print total number of vowels in that array (e.g. d t i o o a r w h s h w q n x b , total number of vowels are 4 (as i o o a ) ).


19. Take two arrays of character type and take input from the user, you have to
exchange the elements of both arrays. array A should contains elements of B, and
B should contain the elements of A.


Credit and Solution Link: https://youtu.be/Sny9Rta3k_Q

No Audio Output Device is installed (Code 19) After Update Windows 10 | How to Fixed



How to fixed Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged. (Code 19)

Last Day I face a problem in my computer sound system after update my windows. That was like No Audio Devices is installed. Than after 3 hr of searching i got the solution. so, i write this process for you guys.

At first I'm going to find solution as this way than i face a new problem like 
Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged. (Code 19)  So I'm going to share it on Stage one and than solution it on Stage two.

Stage 1:  At first you have Search from the taskbar - Device Manager and than open it.





After Open you find this type of interface. After click anywhere you have to go on Action button and than Add legacy hardware.





Than Complete the next step by following the pictures bellow.





If it Done - Than Congratulations.

But If not you will see a Error Message like  Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged. (Code 19) And we are going to solve it in this Sage 2 Section.


Stage 2

At first you have Search from the taskbar - Registry Editor and than open it.







An error occurred in the Recorder: Video Codec Open Failed Camtasia Screen Recorder | How To Fixed



Camtasia Screen Recorder An error occurred in the Recorder: Video Codec Open Failed Problem Fixed






Step 1: Go to ( https://www.techsmith.com/codecs.html ) to Download Codec.



Step 2: Download Three Codec Files from this webpage (For 3rd file Mac/Windows download as your operating System) and Install them simply in your PC.

Remember - At the time of installation make sure your camtasia studio is open.



Done !

If it would be useful to you. make a comment and react to inspired me.

Camtasia Studio 2018 Free Download - Lifetime license without Any Serial key (Cracked)



Problems are going to solve by it: how to remove watermark in camtasia studio, camtesia studio active serial key, camtasia studio crack free download, portable camtasia studio download, camtasia lifetime free license.


Camtasia Studio 2018 (Cracked) 

Free Download


Camtasia Studio 2018 is a professional screen recording and video editing software. In addition to the main function is to record the screen, it also supports you to edit existing videos with functions such as: merge or split video clips, trim and speed up or slow down the footage.

Camtasia Studio will create videos where you can share your videos with anyone and anywhere, this software will provide digital interactive videos in a FLASH and HTML5 environment. Users can also upload videos to Google Drive so they can access and watch videos from many different browsers. Camtasia Studio works on multiple platforms and also supports sending files from one platform to another.

Using Camtasia Studio, computer photography, video recording software will be a great choice for those who do computer tricks and especially for webgame gamers, Camtasia Studio supports video recording. with audio, and users can edit the video just recorded easily.


System requirements of Camtasia Studio 2018

  • Microsoft Windows 7 SP1, Windows 8, and Windows 10
  • Cpu Core i3 or higher
  • 4 GB RAM (Recommended: 8 GB or more)
  • 2 GB hard drive or higher
  • Screen resolution of 1024×768 or higher
  • Microsoft .NET 4.6.0 or higher
  • Sound card compatible with dedicated Windows, microphone, and speakers

Camtasia Studio 2018 (Portable)
Lifetime License Free


An Introduction to C & GUI Programming by Simon Long | PDF Book Free Download


An Introduction to C & GUI Programming 

by Simon Long

This book is for them who want to develop software by C/C++ programming language. Let's know how to develop GUI software by C/C++

Book Review: For a long time I wanted to be a true software engineer by developing apps with C / C ++. This book is very good help. There is no extra talk, all that is offered is straightforward. First of all the common language stuff that needs to be done. Then teach the graphical user interface programming with GTK. At first it was twelve o'clock to set up the environment, but now I can catch it slowly. If anyone wants to program graphical user interface with C / C ++ you can try it out. Straight-forward.

Screen Shot:








Free download: An Introduction to C & GUI Programming by Simon Long PDF Book Download for free.



InBefore - News Aggregator with Search Engine, Youtube Downloader Free Download | PHP Script


InBefore - News Aggregator with Search Engine,Free Download | PHP Script

InBefore is an automated news aggregator, that can import latest content from unlimited RSS feeds. With no-cost Google CSE based search engine that searches different portions of the web. Including different types of search sections, like web, videos, torrents even subtitles. No API keys are needed.

InBefore is not your average RSS aggregator, it comes with special features like HTML DOM based full-text fetching for articles, cron based automatic content fetching and deletion of the old content after a certain period and many more.



InBefore is the perfect choice for anyone who’s looking to build their very own Yahoo/AOL like content portal with no much server load to worry about.


Requirements:


Before you buy or try to install inbefore please make sure your server meets the following requirements


PHP 7.0+ – Linux/unix web-server.

Apache 2.4+
MySQL 5.6+
cURL - PHP Extension
PDO-MySQL - PHP Extension
Mbstring - PHP Extension
fileinfo - PHP Extension



Screenshot:











Live Preview

Admin Dashboard: https://inbefore.mirazmac.com/dashboard

Admin Info:
E-Mail: demo@mirazmac.com
Password: 123456

View Demo

Free Download

I suggest you to buy it from @MirazMacStudios  at 19$ to respect author's work. 
but , if you haven't ability to buy this you can download for free from here.

 Free Download



OpenGL Basic Code and Function | for Beginners - Full Tutorial Series



OpenGL Basic (2D) Code and Function | for Beginners

Today we will learn the General Structure of OpenGL  Programs and Some Basic Function componets in OpenGL for the graphics. 
If you new in OpenGL you can see, How To SetUp OpenGL Glut In Codeblocks

You Can Download Base Code form here.


General Structure of OpenGL  Programs: see this base code 2 times very carefully before continued to next.





From this Base Code we can see some basic function. If we understand the uses of this function OpenGL will be very easier for us, believe me.


So, Now we studied these functions and their utilities one by one.



Header Files

#include <windows.h>           }

#include <GL/gl.h>                }   →    #include <GL/glut.h>        
#include <GL/glu.h>              }


           Glut - openGL Utility Toolkit


* In addition, we will often need to iclude header fiels that are required by C++ code.


#include <stdio.h>

#include <stdlib.h>
#include <math.h> 



Display-Window Management Using GLUT

* glutInit(&argc, argv)


Scince we are using the OpenGL Utility Toolkit, our first step is to initialize GLUT.


* glutCreateWindows("Program Name");


Title Bar  now, we can state a display window is to be creayed on the screen with a given caption for the title bar.


* glutDisplayFunc(lineSegment);


We need to specify what the display windows is to contain.For this, we create a picture using OpenGL function and pass the picture definition to the GLUT routine glutDisplayFunc, which assigns our picture to the display window.


 * glutMainLoop();


But the display window is not yet on the screen. We need one more GLUT function to complite the window-processing operations.


* glutInitWindowPosition(50,100);


* glutInitWondowSize(400,300);





We can also set a number of other options for the display window, such as buffering and a choise of color of color modes, with the glutInitDisplayMode function.

* glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);


The above command specifies that a single refresh buffer is to be used for the display window and that we want to use the color mode which uses red,green and blue (RGB).


Background color for the display window:-

* glClearColor(1.0,1.0,1.0,0.0);
* glClearColor(  r  , g  , b  , a  );

The fourth parameter in tha glClearColor function is called the alpha value.
One use for the alpha value is as a "blending" parameter.
Wheb we activate the OpenGL blending operations, alpha values can be used to determine the resulting color for two overlapping object.

0.0 indicates a totally transparent object.
Alpha value of 1.0 indecates an apaque object.

* glClear(GL_COLOR_BUFFER_BIT);

Although the glClearColor command assign a color to the display womdow, but it does not put the display window om the screen.

To get the assigned window color displayed, we need to invoke the glClear(GL_COLOR_BUFFER_BIT); OpenGL function.



Object Color

* glColor(0.0,0.4,0.2);

The suffinx 3f on the glColor function indicates that we are specifying the three RGB color components using floating-point (f) values.

This function requires that the value be in the range form 0.0 to 1.0.



We can set the projection type (mode) and other viewing parameters that we need with the folloing two functions:

* glMatrixMode(GL_PROJECTION);

* glOrtho2D(0.0,200.0,0.0,150,0);

World-coordinate rectangle will e shown within the display window.
Anything outside this coordinate range will not be displayed.


Finally, we need to call the appropriate OpenGL routines to crate out line segment. 


glBegin(GL_LINES);
glVertex2i(180,15);
glVertex2i(10,145);
glEnd();

Now we are ready to put all the pieces together.
The following OpenGL program is organize into three functions.

* We place all initializations and related one-time parameter setting function init. 

* Our geometric description of the "picture" that we want to display is in function line Segment, which is the function that will be referenced by the GLUT function glutDisplayFunc.

* The main function contains the GLUT functions for setting up the display window and getting our line segment onto the screen.

Thank You

URI 1040 : Average 3 Solve In C, C++, Java And Python Solution


Problem: URI Online Judge | 1038
URI Online Judge | 1040

Average 3

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Read four numbers (N1, N2, N3, N4), which one with 1 digit after the decimal point, corresponding to 4 scores obtained by a student. Calculate the average with weights 2, 3, 4 e 1 respectively, for these 4 scores and print the message "Media: " (Average), followed by the calculated result. If the average was 7.0 or more, print the message "Aluno aprovado." (Approved Student). If the average was less than 5.0, print the message: "Aluno reprovado." (Reproved Student). If the average was between 5.0 and 6.9, including these, the program must print the message "Aluno em exame." (In exam student).
In case of exam, read one more score. Print the message "Nota do exame: " (Exam score) followed by the typed score. Recalculate the average (sum the exam score with the previous calculated average and divide by 2) and print the message “Aluno aprovado.” (Approved student) in case of average 5.0 or more) or "Aluno reprovado." (Reproved student) in case of average 4.9 or less. For these 2 cases (approved or reproved after the exam) print the message "Media final: " (Final average) followed by the final average for this student in the last line.

Input

The input contains four floating point numbers that represent the students' grades.

Output

Print all the answers with one digit after the decimal point.
Input SampleOutput Sample
2.0 4.0 7.5 8.0
6.4
Media: 5.4
Aluno em exame.
Nota do exame: 6.4
Aluno aprovado.
Media final: 5.9
2.0 6.5 4.0 9.0Media: 4.8
Aluno reprovado.
9.0 4.0 8.5 9.0Media: 7.3
Aluno aprovado.

Solution In C:


URI 1038 : Snack Solve In C, C++, Java And Python Solution


Problem: URI Online Judge | 1038
URI Online Judge | 1038

Snack

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Using the following table, write a program that reads a code and the amount of an item. After, print the value to pay. This is a very simple program with the only intention of practice of selection commands.

Input

The input file contains two integer numbers and Yis the product code and is the quantity of this item according to the above table.

Output

The output must be a message "Total: R$ " followed by the total value to be paid, with 2 digits after the decimal point.
Input SampleOutput Sample
3 2Total: R$ 10.00
4 3Total: R$ 6.00
2 3Total: R$ 13.50


Solution In C:


URI 1037 : Interval In C, C++, Java And Python


Problem: URI Online Judge | 1037
URI Online Judge | 1037

Interval

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
You must make a program that read a float-point number and print a message saying in which of following intervals the number belongs: [0,25] (25,50], (50,75], (75,100]. If the read number is less than zero or greather than 100, the program must print the message “Fora de intervalo” that means "Out of Interval".
The symbol '(' represents greather than. For example:
[0,25] indicates numbers between 0 and 25.0000, including both.
(25,50] indicates numbers greather than 25 (25.00001) up to 50.0000000.

Input

The input file contains a floating-point number.

Output

The output must be a message like following example.
Input SampleOutput Sample
25.01Intervalo (25,50]
25.00Intervalo [0,25]
100.00Intervalo (75,100]
-25.02Fora de intervalo

Solution In C: