Skip to main content

Posts

Showing posts with the label code java

How To Control A Loop In Javascript

  How To Control A Loop In Javascript Let’s discuss on how you can control your loop in javascript program, here we will discuss on the the use of  break and continue statements ,when you wish to come out of the loop without reaching the bottom or you just wish to skip a part of your code block and start a next iteration of the loop, remember to follow us in our social media platforms for more tutorials and live sessions we hold; 1. Break statement It is applied when you wish to exit the loop early, lets have a syntax for break statement. var x=1; while(x<20) { if(x==5){ break; //it breaks out of loop completely } x=x=1; document.write(x+ “<br />”); } 2. CONTINUE STATEMENT Continue statement tells the interpreter to skip the remaining code block and start a new iteration immediately. When it is encountered in a program it flows to the top to check the expression immediately and if the condition remains true it starts the iteration otherwise it comes out of the loop. Let’s have

Test your knowledge on analytical thinking

  Test your knowledge on analytical thinking #google coursera #week2 #challenged TOTAL POINTS 5 1 . Question 1 What practice involves identifying, defining, and solving a problem by using data in an organized, step-by-step manner? 0 / 1  point Context Visualization Data design Analytical thinking Incorrect Analytical thinking involves identifying and defining a problem, then solving it by using data in an organized, step-by-step manner. Data design describes how analysts organize information. 2 . Question 2 Data visualization is the graphical representation of information, including which of the following? Select all that apply. 1 / 1  point Graphs Correct Graphs, maps, and charts are used in data visualization. Charts Correct Graphs, maps, and charts are used in data visualization. Reports Maps Correct Graphs, maps, and charts are used in data visualization. 3 . Question 3 Gap analysis is used to examine and evaluate how a process currently works with the goal of getting to where you

ELECTRICITY BILLING SYSTEM

ELECTRICITY BILLING SYSTEM https://knowledgestreams.blogspot.com/ Create a electricity biilling system using JAVA #knowledge #stream #blog you can find the full source code for the project below. A - Below is the source code of the project. B - Create separate class files for every class. C - Copy the code of one class (ex: login.java) and paste it in Login class file, do it for every class. 1 - Create your first class with name 'conn' and paste the code package Electricity; import java.sql.*;   // knowledgestreams.blogspot.com public class conn{     Connection c;     Statement s;     public conn(){           try{               Class.forName("com.mysql.jdbc.Driver");               c =DriverManager.getConnection("jdbc:mysql:///project","root","");                 s =c.createStatement();           }catch(Exception e){              System.out.println(e);