Skip to main content

Posts

Showing posts from 2020
1. activity_main.xml Inside the activity_main.xml. <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".MainActivity" android :background ="#182b5c" > <WebView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/webView" android :layout_alignParentLeft ="true" android :layout_alignParentStart ="true" android :layout_alignParentTop ="true" android :layout_alignParentRight ="true" android
 HOW TO USE MESSAGE BOX TO DISPLAY OUTPUT FROM A SELECTION CASE IN VB Public Class Form1     Dim mark As Double     Private Sub txtTest_TextChanged(sender As Object, e As EventArgs) Handles txtTest.TextChanged     End Sub     Private Sub btnok_Click(sender As Object, e As EventArgs) Handles btnok.Click         mark = Double.Parse(txtTest.Text)         Select Case (mark)             Case 0 To 49                 MsgBox("Fail!", MsgBoxStyle.Information, "COMMENT")             Case 50 To 64                 MsgBox("Pass", MsgBoxStyle.Information, "COMMENT")             Case 65 To 74                 MsgBox("Credit", MsgBoxStyle.Information, "COMMENT")             Case 75 To 100                 MsgBox("Distinction", MsgBoxStyle.Information, "COMMENT")             Case < 0                 MsgBox("Invalid! Cannot be less than 0", MsgBoxStyle.Information, "COMMENT")             Case > 100  

INTRODUCTION TO PROGRAMMING

Click here to watch this video on youtube and more from our channel TO REGISTER FOR A FREE TRAINING ON OUR MOODLE PLATFORM,  KINDLY SUBMIT YOUR DETAILS HERE Hello guys,  welcome to my blog,  I'll be taking you through an introduction to programming using C language.  I'll be doing it on my phone,  its my assumption we all have access to a smartphone,  whether you are computer or phone don't freak out, the codes are just the same. Am using  cppdroid  android app to do the coding,  to download cppdroid click  here. Lesson 1: My first program (Hello world!) #include <stdio.h> main() {     printf("Hello world!");     return 0; } Every C program contains a function called main. This is the start point of the program.  #include<stdio.h> allows the program to interact with the screen, keyboard and file  system of your computer. You will find it at the beginning of almost every C program. main() declares the start of the function, while the two curly brac

Sam's year debugger in C++

Programming is fun if you have the passion and time for it.  I became bored,  quarantined in my place,  scripted some codes in C++.  Only if they would come to reality. If you are aware of Artificial Intelligence,  this may entice you.  Let's have some fun fellow geeks,  copy and run in your devices.  The good thing is that you can even run it on your Android device but of course with a special editor app called CppDroid .  Leave a comment or question in the comments section below. #include <iostream> #include <string.h> using namespace std; int main() { int year,future;     char reb,skip;     string user;     cout<<"Enter first name: ";     getline(cin,user);    cout<<endl<<endl<<"Welcome to Sam's year debugger"<<endl; cout<<"You are logged in as "<<user<<endl;     yenter:     cout<<endl<<"Enter current year: "; cin>>year;     if(year!=2020
The computer scientist responsible for copy,  cut and paste passes away.  The advent of the personal computer wasn’t just about making these powerful machines available to everyone, it was also about making them accessible and usable, even for those lacking a computer science degree. Larry Tesler, who passed away on Monday, might not be a household name like Steve Jobs or Bill Gates, but his contributions to making computers and mobile devices easier to use are the highlight of a long career influencing modern computing. Born in 1945 in New York, Tesler went on to study computer science at Stanford University, and after graduation he dabbled in artificial intelligence research (long before it became a deeply concerning tool) and became involved in the anti-war and anti-corporate monopoly movements, with companies like IBM as one of his deserving targets. In 1973 Tesler took a job at the Xerox Palo Alto Research Center (PARC) where he worked until 1980. Xerox PARC is famously known