This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.7; | |
contract HealthCare { | |
uint public sum_ratings = 0; | |
uint public count_ratings = 0; | |
function addRating(uint _rating) external { | |
sum_ratings = sum_ratings+_rating; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// My method with jquery | |
//it has 2 parts first paste part 1 and then wait for 2-3 seconds as per ur internet connection to download jquery in client side of the browser | |
//part 1 | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// ... give time for script to load, then type (or see below for non wait option) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
struct Process | |
{ | |
int arrivalTime; | |
int burstTime; | |
int remainingTime; | |
int priority; | |
}; | |
int completionTime[500]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
struct Process | |
{ | |
int arrivalTime; | |
int burstTime; | |
int remainingTime; | |
}; | |
int completionTime[100]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
//todo Definition of functions | |
void selectionSort(int arr[], int n); | |
void insertionSort(int arr[], int n); | |
//Functions | |
void selectionSort(int arr[], int n) | |
{ | |
int countComparisions = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
//Linear Search Function (DONE) | |
int linearSearch(int arr[], int val, int n) | |
{ | |
int valPosition = -1; | |
for (int i = 0; i < n; i++) | |
{ | |
if (val == arr[i]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
#include <conio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <dos.h> | |
#include <graphics.h> | |
//todo Fractal Triangle | |
int fractalTriangle(double x1, double y1, double x2, double y2, double x3, double y3, int c); | |
int fractalTriangle(double x1, double y1, double x2, double y2, double x3, double y3, int c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
#include <conio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <dos.h> | |
#include <graphics.h> | |
//Todo prototyping | |
void BezierThreePoints(); | |
void BezierFourPoints(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <conio.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
//todo structure declaration | |
struct node | |
{ | |
int data; | |
struct node *left; | |
struct node *right; |
NewerOlder