Battle: Dar es Salaam vs Nairobi

Battle: Dar es Salaam vs Nairobi

Bro I take my time but make quality stuff that's 100 lines of code ni code hadi unaeza tumika commercial..... we tulimaliza haraka coz you used a template and endured no pain of correcting code yenye hata haitanisaodia anywhere just to prove a point
U take time since u r a rookie!
 
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Clock_MultiThreading
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("stupid JF venus challange\t By brian simba");
Console.SetCursorPosition(03, 08);
Console.Write("12 hour clock in ");
Console.SetCursorPosition(20, 08);
Console.WriteLine("hr:min:sec:M.Sec");
Console.Beep();
for (int hr = 0; hr <= 11; hr++)
{
for (int min = 0; min <= 59; min++)
{
for (int sec = 0; sec <= 59; sec++)
{
for (int Msec = 0; Msec < 99; Msec++)
{
if (hr < 10)
{
if (min < 10)
{
if (sec < 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: 0{1}: 0{2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: 0{1}: {2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
else if (min >= 10)
{
if (sec < 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: {1}: 0{2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: {1}: {2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
}
else if (hr >= 10)
{
if (min < 10)
{
if (sec < 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:0{1}:0{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:0{1}:{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
else if (min >= 10)
{
if (sec < 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:{1}:0{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:{1}:{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
}
}
Console.Beep();
}
Console.Beep(); Console.Beep();
}
}
Console.ReadKey();
}
}
}
I told you hujui chochote. Hiyo uliyoweka hapo ni thread moja tu.
Nenda kajifunze issue za multithread nakushauri tu.
Also your Application is Console nimekuambia uandike Windows Application.

Acha ubishi wa kijinga.
 
U take time since u r a rookie!
Hapana mwezenu Aliiiba code online akasahau kufuta commented areas instead akazi edit akaandika your code goes here simba hehe mahali template yukuambia uongeze code. Ndo maana alimaliza haraka huwezi andika code refu kama yangu In just 3minutes hata akiibia Aibie na adabu Pia sasa alikua ananiambia eti sijatumia multi thread na sikua nimepost code bado hehe
 
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Clock_MultiThreading
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("stupid JF venus challange\t By brian simba");
Console.SetCursorPosition(03, 08);
Console.Write("12 hour clock in ");
Console.SetCursorPosition(20, 08);
Console.WriteLine("hr:min:sec:M.Sec");
Console.Beep();
for (int hr = 0; hr <= 11; hr++)
{
for (int min = 0; min <= 59; min++)
{
for (int sec = 0; sec <= 59; sec++)
{
for (int Msec = 0; Msec < 99; Msec++)
{
if (hr < 10)
{
if (min < 10)
{
if (sec < 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: 0{1}: 0{2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: 0{1}: {2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
else if (min >= 10)
{
if (sec < 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: {1}: 0{2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(18, 10);
Console.Write("[ 0{0}: {1}: {2}:{3} ]", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
}
else if (hr >= 10)
{
if (min < 10)
{
if (sec < 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:0{1}:0{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:0{1}:{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
else if (min >= 10)
{
if (sec < 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:{1}:0{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
else if (sec >= 10)
{
Console.SetCursorPosition(20, 10);
Console.Write("{0}:{1}:{2}:{3}", hr, min, sec, Msec);
Thread.Sleep(10);
}
}
}
}
Console.Beep();
}
Console.Beep(); Console.Beep();
}
}
Console.ReadKey();
}
}
}
Ngoja nikupatie shule
When application runs uses the one thread called main thread.
So the application normally runs serially using the main thread.
In order to execute multiple things at once you need to use multithread.
The timer execute while proceeding with other activities(Parallel with the main thread.)
In order to join the new thread with the main thread which runs the GUI you need to Invoke the main thread joining them to show activities on the GUI.

Steps:-
1. Declare the thread
2. Assign which function the thread will execute
3. Join the thread with the main thread in order to display on GUI
4. Start the new thread.
 
Mimi sijui kama ipo ama haipo. Na wala hainikoseshi usingizi maana kuinstall sensor ni jambo ndogo sana. Hata ni a cheap exercise na haichukui muda mrefu. So hata kama haina sensor sio tatizo. Nyinyi kuwa na sensor imewasaidia kivipi?
"Ze manual milango" meaning hamna air conditioning at JKIA!
 
Hapana mwezenu Aliiiba code online akasahau kufuta commented areas instead akazi edit akaandika your code goes here simba hehe mahali template yukuambia uongeze code. Ndo maana alimaliza haraka huwezi andika code refu kama yangu In just 3minutes hata akiibia Aibie na adabu Pia sasa alikua ananiambia eti sijatumia multi thread na sikua nimepost code bado hehe
I told you nipatie swali lolote sasa hivi nikufanyie in few seconds. Mbona unakimbia?
 
I told you hujui chochote. Hiyo uliyoweka hapo ni thread moja tu.
Nenda kajifunze issue za multithread nakushauri tu.
Also your Application is Console nimekuambia uandike Windows Application.

Acha ubishi wa kijinga.
Are you mad??? The only diffrence between the two is that windows application has a user interface so you want me to start building a user interface now nkt! Si basi hata wewe si ungeweka buttons and stuff kwa hiyo code uliiba online...

AMA TUFANYE HIVI we both add correct time settings buttons on Ur project it now looks like a real application kama hukuiba code use the same code add two round buttons one to adjust the minutes the other to adjust hours now this itakua the determinant who really knows what they doing...
 
I told you nipatie swali lolote sasa hivi nikufanyie in few seconds. Mbona unakimbia?
add correct time settings buttons on Ur project it now looks like a real application kama hukuiba code use the same code add two round buttons one to adjust the minutes the other to adjust hours now this itakua the determinant who really knows what they doing...
 
Kwa hivyo umekataa kujibu? Sawa basi. Andika equations mbili za cosmology halafu uexplain meaning ya hizo equations kwa undani. Nimekupa 30 minutes. Unaweza gugo ukitaka.
Nimempa swali wacha tujue kama amekua akiibia ile swali lako tu alinipa nimemuambia aongezee kitu kiasi sasa tutajua mbichi na mbivu
 
Are you mad??? The only diffrence between the two is that windows application has a user interface so you want me to start building a user interface now nkt! Si basi hata wewe si ungeweka buttons and stuff kwa hiyo code uliiba online...

AMA TUFANYE HIVI we both add correct time settings buttons on Ur project it now looks like a real application kama hukuiba code use the same code add two round buttons one to adjust the minutes the other to adjust hours now this itakua the determinant who really knows what they doing...
Stupid: My question was:-
1. Create the Windows Application and Use Multithread.

Hujatengeneza windows application, second hujatumia multithread.
So nikikuita wewe ni mpumbavu utakuwa nimekosea?
 
Acha kurukia project niliyokupatia. Nemekuambia leta swali lako. Ninataka ulete swali kutoka kwako.
Kwani huwezi ongeza buttons za kuset time tu????? 🤔🤔🤔🤔hilo ndo swali mimi nataka ufanye mimi ulinipa challange nilichelewa but nikafanya mimi nimekurahisishia kwa ile code yako tu ongeza button mbili za round za kuset the time in the watch... kama tushajenga watch tu adjust time buttons should not be a problem
 
Back
Top Bottom