//single-server queuing sysytem #include <stdio.h> #include <stdlib.h> #include <math.h> #define BUSY 1 /* when the server is busy */ #define IDLE 0 /*states when the system is idle*/ int next_event_type, num_custs_delayed, num_delays_required, num_events, num_in_q, server_status; float area_num_in_q, area_server_status, mean_interarrival, mean_service, time, time_arrival[1], time_end, time_last_event, time_next_event[4], total_of_delays; //FILE *infile, *outfile; void initialize(void); void timing(void); void arrive(void); void depart(void); void report(void); void update_time_avg_stats(void); float expon(float mean); int main() { //number of events for the function num_events = 3; mean_interarrival = 1; mean_service = 0.5; time_end = 100; //runtime initialize(); /* Run the simulation until while more delays are still needed event (type 3) occurs. */ do { /*
Posts
Getting stated with Mpesa Api coding with Python Django
- Get link
- X
- Other Apps
What is Application Programming interface(API)? As the heading suggest API is set of routines, protocols, and tools for building software applications. An API specifies how software components should interact e.g. Mpesa with other business application. Why do we need mpesa API? We need mpesa Api to be able to automate out tasks e.g. KPLC needs mpesa payement in real time to be able to activate tokens in real time. It will take ages if Tokens are updated manually. They allow a specific audience to use data more quickly, easily and efficiently when they are looking to do something specific with the information. Which type of mpesa api do i need? Reversal Used for reversal transaction B2C Mpesa Transaction from company to client Account Balance Used for balance inquiry Transaction Status Used to check the status of transaction
SAFARICOM AVAILS NEW M-PESA API PORTAL
- Get link
- X
- Other Apps
SAFARICOM AVAILS NEW M-PESA API PORTAL Recently Safaricom Released a new API that uses rest API . Previously developers were using Soup API which a lot of people thought that it was outdated. It used to toke a lot of time to to integrate M-pesa API with your application to get to automate your records. You had to go though a long process of communicating with safaricom team to test your app among setting and installing credentials. Though new API termed as daraja, developers work is now made easier and time friendly. Though the portal developer. “M-PESA provides a unique platform that enables thousands of businesses to leverage its capabilities to drive their growth. The simplified on boarding process will enable both small and large businesses to integrate to M-PESA as a payment platform for their businesses with ease,” said Bob Collymore, CEO Safaricom. It passes without saying that M-pesa will be taking over bearing in mind that previously people complained
How to file KRA nil returns for unemployed with pin
- Get link
- X
- Other Apps
Why you need to file nil returns If you are unemployed and you have a KRA pin you need to file your returns because KRA will fine you ksh 1000. If you don't declare that you are unemployed. This will normally apply if you are a University student or you lost your job and employer is no longer paying for your Tax. Steps for filling Nil returns 1) Step 1. Going to KRA You are required to go to official kra website and log in, this is the URL for the site kra portal . After login you will be required to input user id or kra pin and pass word 2) Step 2 Input you pin and you will be directed here. Input password and security question. if You forgot password click on link to change. 3)Step 3 After successful log in you will be directed to you portal, in the menu select returns. Step 4, There will be a drop down menu please select “file nil returns” Add caption 5) step 5. Filling type You will leave the type blank, pin will be aut