Search the Community
Showing results for tags 'calculator'.
-
Budget (including currency): 3000€ Country: Germany Games, programs or workloads that it will be used for: Jedi Survivor, Minecraft, Starfield, Battlefield 2042 and a lot of other games Other details (existing parts lists, whether any peripherals are needed, what you're upgrading from, when you're going to buy, what resolution and refresh rate you want to play at, etc): I want to build a new PC and I thought I was done picking the components. Then I learned about PC builders' "Bottleneck calculator". I tried it with my current List of component and it showed me that my CPU (Ryzen 7 7800X3D) might not be the best option for the GPU (RX 7900XTX). The Website claims that the best CPU for the RX 7900 XTX would be the I7-13700KF which would be a bit cheaper then the Ryzen 7 7800X3D. Below you can see my previous post with the list of components I picked exept for the mainoward which I switched to the X670e-a. What do you think? Which CPU would fit the best?
- 3 replies
-
- cpu
- bottleneck
-
(and 3 more)
Tagged with:
-
What is the best watt checking meter for high and low wattage. Accuracy is a must. Also would like a detachable face screen like the roosewill one. And price is not factor added a picture of the roosewill meter(mine was stolen)
- 31 replies
-
I have and Oxford 0X-82 calculator and wanted to see if I can plug it into a regular display (Similar to how people connect Arduinos to LCDs). I'm thinking I can use wires and plug into some kind of Ribbon to HDMI. Is it possible and if you know what would I need? Thanks in advance!
- 1 reply
-
- calculator
- display
-
(and 2 more)
Tagged with:
-
Hi guys, I'm tweaking my ram timings with the help of Ryzen DRAM Calculator. Everything seems good so far, plus 10 FPS on my most played game. I haven't tested for full stability using memtest86, I'll do it later. I'd like to know what to do with some settings in my BIOS that don't match the ones showed in the CALCULATOR. See the images below. I'm not sure what to do with tRFC because it shows as only "tRFC" in the calculator but I have more than one tRFC setting in my BIOS. Also RTT_NOM and RTT_PARK don't allow me to set RZQ/7(34), I can only disable the setting or set a value in ohms. What should I do? Help me out pls! Is there any step by step guide on how to use the calculator properly?
-
I am a new coder... i have done a substantial amount of research and cant seem to find an answer. in the code below, when i have the head-shot percentage print. it is ALWAYS 0% and I cant seem to find out why. Any suggestions? The ENTIRE code (the information you need is toward the bottom): /////////////////////////////////////////////////////////////////////// Weapon Kill definiton(s) //Pistol Kill Variable(s) #define USPSkill ak1 #define P2000kill ak2 #define GLOCK18kill ak3 #define DUEL_BERRETASkill ak4 #define DULIESkill DUEL_BERRETASkill #define P250kill bk1 //#define p228kill // 1.6, CSS #define CZ75kill bk2 #define FIVESEVENkill ck1 #define TEC9kill ck2 #define DESERT_EAGLEkill dk1 #define DEAGLE DESERT_EAGLEkill #define R8_REVOLVERkill ak5 #define REVOLVERkill R8_REVOLVERkill //SMG Kill Variable(s) #define MAC10kill ak6 #define MP9kill ak7 //#define TMPkill // 1.6, CSS #define MP7kill ak8 //#define MP5kill // 1.6, CSS #define UMP45kill bk3 #define P90kill ck3 #define PPBIZONkill ak9 #define BIZONkill PPBIZONkill //Rifle Kill Variable(s) #define FAMASkill ak10 #define GALILARkill ak15 #define GALILkill GALILARkill #define AK47kill bk4 #define M4A1Skill bk5 #define M4A4kill bk6 #define AUGkill ck4 #define SG553kill ck5 #define SGkill SG553kill //#define SG552kill // 1.6, CSS //Sniper Kill Variable(s) #define SSG08kill dk2 #define SCOUTkill SSG08kill #define SSGkill SSG08kill #define AWPkill dk3 #define SCAR20kill ck6 #define CT-AUTOkill #define G3SG1kill ck7 #define T-AUTOkill G3SG1 //Shotgun Kill Variable(s) #define MAG7kill ak11 #define SAWEDOFFkill ak12 #define XM1014kill ak13 #define AUTOSHOTTYkill XM1014 #define NOVAkill ak14 //#define BENELLI_M3kill // 1.6, CSS //LMG Kill Variable(s) #define M249kill ck8 #define NEGEVkill ck9 //Other (Weapon) Kill Variable(s) #define GRENADEkill dk4 //Expand in the future ie HE, Flash, Decoy, Etc #define KNIFEkill dk5 /////////////////////////////////////////////////////////////////////// Weapon Kill Sums #define ak ak1+ak2+ak3+ak4+ak5+ak6+ak7+ak8+ak9+ak10+ak11+ak12+ak13+ak14 //ak 1-14 #define bk bk1+bk2+bk3+bk4+bk5+bk6 //bk 1-6 #define ck ck1+ck2+ck3+ck4+ck5+ck6+ck7+ck8+ck9 //ck 1-9 #define dk dk1+dk2+dk3+dk4+dk5//dk 1-5 #define KTotal ak+bk+ck+dk//Counts Total of Kills /////////////////////////////////////////////////////////////////////// Weapon Kill Integer(s) //Pistol Kill Integer(s) int USPSkill = ak1 ; int P2000kill = ak2 ; int GLOCK18kill = ak3 ; int DUEL_BERRETASkill = ak4 ; int P250kill = bk1 ; //int p228kill = // 1.6, CSS int CZ75kill = bk2 ; int FIVESEVENkill = ck1 ; int TEC9kill = ck2 ; int DESERT_EAGLEkill = dk1 ; int R8_REVOLVERkill = ak5 ; //SMG Kill Integer(s) int MAC10kill = ak6 ; int MP9kill = ak7 ; //int TMPkill = // 1.6, CSS int MP7kill = ak8 ; //int MP5kill = // 1.6, CSS int UMP45kill = bk3 ; int P90kill = ck3 ; int PPBIZONkill = ak9 ; //Rifle Kill Integer(s) int FAMASkill = ak10 ; int GALILARkill = ak15 ; int AK47kill = bk4 ; int M4A1Skill = bk5 ; int M4A4kill = bk6 ; int AUGkill = ck4 ; int SG553kill = ck5 ; //int SG552kill = // 1.6, CSS //Sniper Kill Integer(s) int SSG08kill = dk2 ; int AWPkill = dk3 ; int SCAR20kill = ck6 ; int G3SG1kill = ck7 ; //Shotgun Kill Integer(s) int MAG7kill = ak11 ; int SAWEDOFFkill = ak12 ; int XM1014kill = ak13 ; int NOVAkill = ak14 ; //int BENELLI_M3kill = 0// 1.6, CSS //LMG Kill Integer(s) int M249kill = ck8 ; int NEGEVkill = ck9 ; //Other (Weapon) Kill Integer(s) int GRENADEkill = dk4 ; //Expand in the future ie HE, Flash, Decoy, Etc int KNIFEkill = dk5 ; /////////////////////////////////////////////////////////////////////// Weapon Assist definiton(s) //Pistol Assist Variable(s) #define USPSassist aa1 #define P2000assist aa2 #define GLOCK18assist aa3 #define DUEL_BERRETASassist aa4 #define DULIESassist DUEL_BERRETASassist #define P250assist ba1 //#define p228assist // 1.6, CSS #define CZ75assist ba2 #define FIVESEVENassist ca1 #define TEC9assist ca2 #define DESERT_EAGLEassist da1 #define DEAGLE DESERT_EAGLEassist #define R8_REVOLVERassist aa5 #define REVOLVERassist R8_REVOLVERassist //SMG Assist Variable(s) #define MAC10assist aa6 #define MP9assist aa7 //#define TMPassist // 1.6, CSS #define MP7assist aa8 //#define MP5assist // 1.6, CSS #define UMP45assist ba3 #define P90assist ca3 #define PPBIZONassist aa9 #define BIZONassist PPBIZONassist //Rifle Assist Variable(s) #define FAMASassist aa10 #define GALILARassist aa15 #define GALILassist GALILARassist #define AK47assist ba4 #define M4A1Sassist ba5 #define M4A4assist ba6 #define AUGassist ca4 #define SG553assist ca5 #define SGassist SG553assist //#define SG552assist // 1.6, CSS //Sniper Assist Variable(s) #define SSG08assist da2 #define SCOUTassist SSG08assist #define SSGassist SSG08assist #define AWPassist da3 #define SCAR20assist ca6 #define CT-AUTOassist #define G3SG1assist ca7 #define T-AUTOassist G3SG1 //Shotgun Assist Variable(s) #define MAG7assist aa11 #define SAWEDOFFassist aa12 #define XM1014assist aa13 #define AUTOSHOTTYassist XM1014assist #define NOVAassist aa14 //#define BENELLI_M3assist // 1.6, CSS //LMG Assist Variable(s) #define M249assist ca8 #define NEGEVassist ca9 //Other (Weapon) Assist Variable(s) #define GRENADEassist da4 //Expand in the future ie HE, Flash, Decoy, Etc #define KNIFEassist da5 /////////////////////////////////////////////////////////////////////// Weapon Assist Sums #define aa aa1+aa2+aa3+aa4+aa5+aa6+aa7+aa8+aa9+aa10+aa11+aa12+aa13+aa14 //aa 1-14 #define ba ba1+ba2+ba3+ba4+ba5+ba6 //ba 1-6 #define ca ca1+ca2+ca3+ca4+ca5+ca6+ca7+ca8+ca9 //ca 1-9 #define da da1+da2+da3+da4+da5//da 1-5 #define ATotal aa+ba+ca+da//Counts Total of Assists /////////////////////////////////////////////////////////////////////// Weapon Assist Integer(s) //Pistol Assist Integer(s) int USPSassist = 0 ; int P2000assist = 0 ; int GLOCK18assist = 0 ; int DUEL_BERRETASassist = 0 ; int P250assist = 0 ; //int p228assist = // 1.6, CSS int CZ75assist = 0 ; int FIVESEVENassist = 0 ; int TEC9assist = 0 ; int DESERT_EAGLEassist = da1 ; int R8_REVOLVERassist = aa5 ; //SMG Assist Integer(s) int MAC10assist = 0 ; int MP9assist = 0 ; //int TMPassist = // 1.6, CSS int MP7assist = 0 ; //int MP5assist = // 1.6, CSS int UMP45assist = 0 ; int P90assist = 0 ; int PPBIZONassist = 0 ; //Rifle Assist Integer(s) int FAMASassist = 0 ; int GALILARassist = 0 ; int AK47assist = 0 ; int M4A1Sassist = 0 ; int M4A4assist = 0 ; int AUGassist = 0 ; int SG553assist = 0 ; //int SG552assist = // 1.6, CSS //Sniper Assist Integer(s) int SSG08assist = 0 ; int AWPassist = 0 ; int SCAR20assist = 0 ; int G3SG1assist = 0 ; //Shotgun Assist Integer(s) int MAG7assist = 0 ; int SAWEDOFFassist = 0 ; int XM1014assist = 0 ; int NOVAassist = 0 ; //int BENELLI_M3assist = 0// 1.6, CSS //LMG Assist Integer(s) int M249assist = 0 ; int NEGEVassist = 0 ; //Other (Weapon) Assist Integer(s) int GRENADEassist = 0 ; //Expand in the future ie HE, Flash, Decoy, Etc int KNIFEassist = 0 ; /////////////////////////////////////////////////////////////////////// Weapon Death definiton(s) //Pistol Death Variable(s) #define USPSdeath ad1 #define P2000death ad2 #define GLOCK18death ad3 #define DUEL_BERRETASdeath ad4 #define DULIESdeath DUEL_BERRETASdeath #define P250death bd1 //#define p228death // 1.6, CSS #define CZ75death bd2 #define FIVESEVENdeath cd1 #define TEC9death cd2 #define DESERT_EAGLEdeath dd1 #define DEAGLE DESERT_EAGLEdeath #define R8_REVOLVERdeath ad5 #define REVOLVERdeath R8_REVOLVERdeath //SMG Death Variable(s) #define MAC10death ad6 #define MP9death ad7 //#define TMPdeath // 1.6, CSS #define MP7death ad8 //#define MP5death // 1.6, CSS #define UMP45death bd3 #define P90death cd3 #define PPBIZONdeath ad9 #define BIZONdeath PPBIZONdeath //Rifle Death Variable(s) #define FAMASdeath ad10 #define GALILARdeath ad15 #define GALILdeath GALILARdeath #define AK47death bd4 #define M4A1Sdeath bd5 #define M4A4death bd6 #define AUGdeath cd4 #define SG553death cd5 #define SGdeath SG553death //#define SG552death // 1.6, CSS //Sniper Death Variable(s) #define SSG08death dd2 #define SCOUTdeath SSG08death #define SSGdeath SSG08death #define AWPdeath dd3 #define SCAR20death cd6 #define CT-AUTOdeath #define G3SG1death cd7 #define T-AUTOdeath G3SG1 //Shotgun Death Variable(s) #define MAG7death ad11 #define SAWEDOFFdeath ad12 #define XM1014death ad13 #define AUTOSHOTTYdeath XM1014 #define NOVAdeath ad14 //#define BENELLI_M3death // 1.6, CSS //LMG Death Variable(s) #define M249death cd8 #define NEGEVdeath cd9 //Other (Weapon) Death Variable(s) #define GRENADEdeath dd4 //Expand in the future ie HE, Flash, Decoy, Etc #define KNIFEdeath dd5 /////////////////////////////////////////////////////////////////////// Weapon Death Sums #define ad ad1+ad2+ad3+ad4+ad5+ad6+ad7+ad8+ad9+ad10+ad11+ad12+ad13+ad14+ad15 //ad 1-15 #define bd bd1+bd2+bd3+bd4+bd5+bd6 //bd 1-6 #define cd cd1+cd2+cd3+cd4+cd5+cd6+cd7+cd8+cd9 //cd 1-9 #define dd dd1+dd2+dd3+dd4+dd5//dd 1-5 #define DTotal ad+bd+cd+dd//Counts Total of Deaths /////////////////////////////////////////////////////////////////////// Weapon death Integer(s) //Pistol Death Integer(s) int USPSdeath = 0 ; int P2000death = 0 ; int GLOCK18death = 0 ; int DUEL_BERRETASdeath = 0 ; int P250death = 0 ; //int p228death = // 1.6, CSS int CZ75death = 0 ; int FIVESEVENdeath = 0 ; int TEC9death = 0 ; int DESERT_EAGLEdeath = 0 ; int R8_REVOLVERdeath = 0 ; //SMG Death Integer(s) int MAC10death = 0 ; int MP9death = 0 ; //int TMPdeath = // 1.6, CSS int MP7death = 0 ; //int MP5death = // 1.6, CSS int UMP45death = 0 ; int P90death = 0 ; int PPBIZONdeath = 0 ; //Rifle Death Integer(s) int FAMASdeath = 0 ; int GALILARdeath = 0 ; int AK47death = 0 ; int M4A1Sdeath = 0 ; int M4A4death = 0 ; int AUGdeath = 0 ; int SG553death = 0 ; //int SG552death = // 1.6, CSS //Sniper Death Integer(s) int SSG08death = 0 ; int AWPdeath = 0 ; int SCAR20death = 0 ; int G3SG1death = 0 ; //Shotgun Death Integer(s) int MAG7death = 0 ; int SAWEDOFFdeath = 0 ; int XM1014death = 0 ; int NOVAdeath = 0 ; //int BENELLI_M3death = 0// 1.6, CSS //LMG Death Integer(s) int M249death = 0 ; int NEGEVdeath = 0 ; //Other (Weapon) Death Integer(s) int GRENADEdeath = 0 ; //Expand in the future ie HE, Flash, Decoy, Etc int KNIFEdeath = 0 ; /////////////////////////////////////////////////////////////////////// Variable(s) //Score Variable(s) int x = 0 ;//Rounds won int y = 0 ;//Rounds lost //Round Impact Variable(s) int k5 = 0 ;//ACE int k4 = 0 ;//4k int ds = 0 ;//suicide int kf = 0 ;//teamkill //Kill Variables(s) (for intermediate mode) int aks = 0 ;//Weapon class A Kill int bks = 0 ;//Weapon class B Kill int cks = 0 ;//Weapon class C Kill int dks = 0 ;//Weapon class D Kill //Assist Variable(s) (for intermediate mode) int aas = 0 ;//Weapon class A Assist int bas = 0 ;//Weapon class B Assist int cas = 0 ;//Weapon class C Assist int das = 0 ;//Weapon class D Assist //Death Variables (for intermediate mode) int ads = 0 ;//Weapon class A Death int bds = 0 ;//Weapon class B Death int cds = 0 ;//Weapon class C Death int dds = 0 ;//Weapon class D Death //Headshot Variable(s) int hk = 0 ;//Headshots //Other Variable(s) int KA = 0 ;//Kills without Weapon skill class (for simple mode) int AA = 0 ;//Assists without Weapon skill class (for simple mode) int DA = 0 ;//Deaths without Weapon skill class (for simple mode) /////////////////////////////////////////////////////////////////////// Score definition(s) #define R 4*(x-y) //Round Score #define P k5+((4*k4)/5)-(ds+kf) //Round Impact Score #define K ak+(1.25*bk)+(.5*ck)+(2*dk) //Kill Score (based on weapon skill) #define A (aa+(1.25*ba)+(.5*ca)+(2*da))/2 //Assist Score (based on weapon skill) #define H .2*hk //Headshot Score #define D ad+(bd/1.25)+(cd/.5)+(dd/2) //Death Score (based on weapon skill) #define ELO R+P+(K+A+H)/D //Overall Elo Score #define KDR KTotal/DTotal //Kill Death Ratio #define HSR (hk/KTotal)*100 //Headshot Percentage /////////////////////////////////////////////////////////////////////// // Full Equation (4(x-y)) + (k5+((4*k4)/5)-(ds+kf)) + (((ak+(1.25*bk)+(.5*ck)+(2*dk)) + (.5(aa+(1.25*ba)+(.5*ca)+(2*da))))+(.2*h)/(ad+(bd/1.25)+(cd/.5)+(dd/2))) /////////////////////////////////////////////////////////////////////// Question Variable(s) [and STOP Variable] int RoundsWonQuestion = 1; int RoundsLostQuesiton = 1; int AceQuestion = 1; int FourkQuestion = 1; int SuicideQuestion = 1; int TeamkillQuestion = 1; int HeadshotQuestion = 1; //Pistol killQuestion Integer(s) int USPSkillQuestion = 1 ; int P2000killQuestion = 1 ; int GLOCK18killQuestion = 1 ; int DUEL_BERRETASkillQuestion = 1 ; int P250killQuestion = 1 ; //int p228killQuestion = 1// 1.6, CSS int CZ75killQuestion = 1 ; int FIVESEVENkillQuestion = 1 ; int TEC9killQuestion = 1 ; int DESERT_EAGLEkillQuestion = 1 ; int R8_REVOLVERkillQuestion = 1 ; //SMG killQuestion Integer(s) int MAC10killQuestion = 1 ; int MP9killQuestion = 1 ; //int TMPkillQuestion = 1// 1.6, CSS int MP7killQuestion = 1 ; //int MP5killQuestion = 1// 1.6, CSS int UMP45killQuestion = 1 ; int P90killQuestion = 1 ; int PPBIZONkillQuestion = 1 ; //Rifle killQuestion Integer(s) int FAMASkillQuestion = 1 ; int GALILARkillQuestion = 1 ; int AK47killQuestion = 1 ; int M4A1SkillQuestion = 1 ; int M4A4killQuestion = 1 ; int AUGkillQuestion = 1 ; int SG553killQuestion = 1 ; //int SG552killQuestion = 1// 1.6, CSS //Sniper killQuestion Integer(s) int SSG08killQuestion = 1 ; int AWPkillQuestion = 1 ; int SCAR20killQuestion = 1 ; int G3SG1killQuestion = 1 ; //Shotgun killQuestion Integer(s) int MAG7killQuestion = 1 ; int SAWEDOFFkillQuestion = 1 ; int XM1014killQuestion = 1 ; int NOVAkillQuestion = 1 ; //int BENELLI_M3killQuestion = 1// 1.6, CSS //LMG killQuestion Integer(s) int M249killQuestion = 1 ; int NEGEVkillQuestion = 1 ; //Other (Weapon) killQuestion Integer(s) int GRENADEkillQuestion = 1 ; //Expand in the future ie HE, Flash, Decoy, Etc int KNIFEkillQuestion = 1 ; //Pistol assistQuestion Integer(s) int USPSassistQuestion = 1 ; int P2000assistQuestion = 1 ; int GLOCK18assistQuestion = 1 ; int DUEL_BERRETASassistQuestion = 1 ; int P250assistQuestion = 1 ; //int p228assistQuestion = 1// 1.6, CSS int CZ75assistQuestion = 1 ; int FIVESEVENassistQuestion = 1 ; int TEC9assistQuestion = 1 ; int DESERT_EAGLEassistQuestion = 1 ; int R8_REVOLVERassistQuestion = 1 ; //SMG assistQuestion Integer(s) int MAC10assistQuestion = 1 ; int MP9assistQuestion = 1 ; //int TMPassistQuestion = 1// 1.6, CSS int MP7assistQuestion = 1 ; //int MP5assistQuestion = 1// 1.6, CSS int UMP45assistQuestion = 1 ; int P90assistQuestion = 1 ; int PPBIZONassistQuestion = 1 ; //Rifle assistQuestion Integer(s) int FAMASassistQuestion = 1 ; int GALILARassistQuestion = 1 ; int AK47assistQuestion = 1 ; int M4A1SassistQuestion = 1 ; int M4A4assistQuestion = 1 ; int AUGassistQuestion = 1 ; int SG553assistQuestion = 1 ; //int SG552assistQuestion = 1// 1.6, CSS //Sniper assistQuestion Integer(s) int SSG08assistQuestion = 1 ; int AWPassistQuestion = 1 ; int SCAR20assistQuestion = 1 ; int G3SG1assistQuestion = 1 ; //Shotgun assistQuestion Integer(s) int MAG7assistQuestion = 1 ; int SAWEDOFFassistQuestion = 1 ; int XM1014assistQuestion = 1 ; int NOVAassistQuestion = 1 ; //int BENELLI_M3assistQuestion = 1// 1.6, CSS //LMG assistQuestion Integer(s) int M249assistQuestion = 1 ; int NEGEVassistQuestion = 1 ; //Other (Weapon) assistQuestion Integer(s) int GRENADEassistQuestion = 1 ; //Expand in the future ie HE, Flash, Decoy, Etc int KNIFEassistQuestion = 1 ; //Pistol deathQuestion Integer(s) int USPSdeathQuestion = 1 ; int P2000deathQuestion = 1 ; int GLOCK18deathQuestion = 1 ; int DUEL_BERRETASdeathQuestion = 1 ; int P250deathQuestion = 1 ; //int p228deathQuestion = 1// 1.6, CSS int CZ75deathQuestion = 1 ; int FIVESEVENdeathQuestion = 1 ; int TEC9deathQuestion = 1 ; int DESERT_EAGLEdeathQuestion = 1 ; int R8_REVOLVERdeathQuestion = 1 ; //SMG deathQuestion Integer(s) int MAC10deathQuestion = 1 ; int MP9deathQuestion = 1 ; //int TMPdeathQuestion = 1// 1.6, CSS int MP7deathQuestion = 1 ; //int MP5deathQuestion = 1// 1.6, CSS int UMP45deathQuestion = 1 ; int P90deathQuestion = 1 ; int PPBIZONdeathQuestion = 1 ; //Rifle deathQuestion Integer(s) int FAMASdeathQuestion = 1 ; int GALILARdeathQuestion = 1 ; int AK47deathQuestion = 1 ; int M4A1SdeathQuestion = 1 ; int M4A4deathQuestion = 1 ; int AUGdeathQuestion = 1 ; int SG553deathQuestion = 1 ; //int SG552deathQuestion = 1// 1.6, CSS //Sniper deathQuestion Integer(s) int SSG08deathQuestion = 1 ; int AWPdeathQuestion = 1 ; int SCAR20deathQuestion = 1 ; int G3SG1deathQuestion = 1 ; //Shotgun deathQuestion Integer(s) int MAG7deathQuestion = 1 ; int SAWEDOFFdeathQuestion = 1 ; int XM1014deathQuestion = 1 ; int NOVAdeathQuestion = 1 ; //int BENELLI_M3deathQuestion = 1// 1.6, CSS //LMG deathQuestion Integer(s) int M249deathQuestion = 1 ; int NEGEVdeathQuestion = 1 ; //Other (Weapon) deathQuestion Integer(s) int GRENADEdeathQuestion = 1 ; //Expand in the future ie HE, Flash, Decoy, Etc int KNIFEdeathQuestion = 1 ; //Other Question Integer(s) int KilltotalQuestion = 1 ;//(for simple mode) int AssisttotalQuestion = 1 ;//(for simple mode) int DeathtotalQuestion = 1 ;//(for simple mode) int Mode = 0; int STOP = 0; //////////////////////////////////////////////////////////////////////// Active Code Start void setup() { Serial.begin(9600); //////////////////////////////////////////////////////////////////////// Simple/Advanced Startup Mode if (Mode == 0) { Serial.println ("Simple or Advanced Mode? (1 for Simple, 0 for Advanced)"); while (!Serial.available()); // Wait for characters Mode = Serial.read()-48; if (Mode == 1){ delay (1000); Serial.println ("Launching Simple Mode..."); delay (2000); } else { delay (1000); Serial.println ("Launching Advanced Mode..."); delay (2000); } } } //////////////////////////////////////////////////////////////////////// End of Startup void loop() { if (Mode == 1){ goto Simple; } else { goto Advanced; } //////////////////////////////////////////////////////////////////////// Start of Simple Mode code Simple:{ char buffer[]= {' ',' ',' ',' ',' ',' ',' ',' '};// old (using it as a reminder for later) //////////////////////////////////////////////////////////////////////// Rounds Won if (RoundsWonQuestion == 1) { Serial.println ("Rounds Won?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); x = atoi(buffer); Serial.println (x); delay (1000); RoundsWonQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 1 if (STOP == 0) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) // clears buffer buffer = (char)0; Serial.begin(9600); STOP = 1; } //////////////////////////////////////////////////////////////////////// Rounds Lost if (RoundsLostQuesiton == 1) { Serial.println ("Rounds Lost?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); y = atoi(buffer); Serial.println (y); delay (1000); RoundsLostQuesiton = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 2 if (STOP == 1) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) buffer = (char)0; Serial.begin(9600); STOP = 2; } //////////////////////////////////////////////////////////////////////// Aces if (AceQuestion == 1) { Serial.println ("Aces?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); k5 = atoi(buffer); Serial.println (k5); delay (1000); AceQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 3 if (STOP == 2) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) buffer = (char)0; Serial.begin (9600); STOP = 3; } //////////////////////////////////////////////////////////////////////// 4ks if (FourkQuestion == 1) { Serial.println ("4ks?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); k4 = atoi(buffer); Serial.println (k4); delay (1000); FourkQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 4 if (STOP == 3) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) buffer = (char)0; Serial.begin (9600); STOP = 4; } //////////////////////////////////////////////////////////////////////// Suicides if (SuicideQuestion == 1) { Serial.println ("Suicides?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); ds = atoi(buffer); Serial.println (ds); delay (1000); SuicideQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 5 if (STOP == 4) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) buffer = (char)0; Serial.begin (9600); STOP = 5; } //////////////////////////////////////////////////////////////////////// Teamkills if (TeamkillQuestion == 1) { Serial.println ("Teamkills?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); kf = atoi(buffer); Serial.println (kf); delay (1000); TeamkillQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 6 if (STOP == 5) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) // clears buffer buffer = (char)0; Serial.begin (9600); STOP = 6; } //////////////////////////////////////////////////////////////////////// Kills if (KilltotalQuestion == 1) { Serial.println ("Kills?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); KA = atoi(buffer); Serial.println (KA); delay (1000); KilltotalQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 7 if (STOP == 6) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) // clears buffer buffer = (char)0; Serial.begin (9600); STOP = 7; } //////////////////////////////////////////////////////////////////////// Assists if (AssisttotalQuestion == 1) { Serial.println ("Assists?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); AA = atoi(buffer); Serial.println (AA); delay (1000); TeamkillQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 8 if (STOP == 7) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) // clears buffer buffer = (char)0; Serial.begin (9600); STOP = 8; } //////////////////////////////////////////////////////////////////////// Deaths if (DeathtotalQuestion == 1) { Serial.println ("Deaths?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); DA = atoi(buffer); Serial.println (DA); delay (1000); TeamkillQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 9 if (STOP == 8) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) // clears buffer buffer = (char)0; Serial.begin (9600); STOP = 9; } //////////////////////////////////////////////////////////////////////// Headshots if (HeadshotQuestion == 1) { Serial.println ("Headshots?"); while (!Serial.available()); // Wait for characters Serial.readBytesUntil('?', buffer, 3); hk = atoi(buffer); Serial.println (hk); delay (1000); HeadshotQuestion = 0; } //////////////////////////////////////////////////////////////////////// Buffer Reset 10 if (STOP == 9) {Serial.end(); for( int i = 0; i < sizeof(buffer); ++i ) // clears buffer buffer = (char)0; Serial.begin (9600); STOP = 10; } Serial.println (); Serial.println (); Serial.println (); Serial.println (); Serial.println (); //////////////////////////////////////////////////////////////////////// Game Statistics Text Output (Simple Mode) int KDRS = (KA/DA); //Kill Death Ratio Calculation (simple) int HSRS = (hk/KA)*100; //Headshot Percentage Calculation (simple) if (STOP == 10) { Serial.print ("Score: "); Serial.print (x); Serial.print (" - "); Serial.println (y); if (x > y) { Serial.println ("Victory!"); } else if (x < y) { Serial.println ("Defeat!"); } else { Serial.println ("Draw."); } Serial.print ("KDR: "); Serial.println (KDRS); Serial.print ("Headshot Percentage: "); Serial.print (HSRS); Serial.println ("%"); Serial.println ( ); Serial.print ("Total Kills: "); Serial.println (KA); delay (500); Serial.print ("Total Assists: "); Serial.println (AA); delay (500); Serial.print ("Total Deaths: "); Serial.println (DA); Serial.println ( ); delay (500); Serial.print ("Kills Score: "); Serial.println ("Advanced Only"); delay (500); Serial.print ("Assists Score: "); Serial.println ("Advanced Only"); delay (500); Serial.print ("Deaths Score: "); Serial.println ("Advanced Only"); Serial.println ( ); delay (500); Serial.println (ELO); delay (500); STOP = 11; } }////// The Brackets for the end of "Simple Mode" //////////////////////////////////////////////////////////////////////// Start of Advanced Mode Code Advanced:{ if (STOP == 0) { Serial.print ("WIP"); STOP = 1; } }////// The Brackets for the end of "Advanced Mode" }////// End of Void loop
- 21 replies
-
- serial.print
- arduino
-
(and 4 more)
Tagged with:
-
- 2 replies
-
- csgo
- casehardened
-
(and 2 more)
Tagged with:
-
Hello everybody, I am working on a new ELO system for csgo and I don't know how to code for it on arduino. WARNING: I AM A NOOB WITH ARDUINO!!! I am looking for a way to use the serial monitor to give me an answer based on my inputs EXAMPLE: if i have the equasion Y=MX+B, I want it (the arduino) to ask me what M, X, and B are then, once i input the answer, solve. This ELO equasion takes into account rounds won/lost KDR (more in that later) and round impact.
- 15 replies
-
- arduino
- calculator
-
(and 3 more)
Tagged with:
-
Hey Guys/ Girls, I'm currently having my finals and I have to do many calculations as part of my CIE exams. One thing I have noticed is that I make alot of errors in typing my calculations into my Casio FX-82MS which is due to my being time pressured and the keys on the calculator being relatively unresponsive. I had this idea awhile back and figured I'd do it as a summer project, I'd like to buy some Cherry MX keys off ebay, a cheap calculator and numpad. Break it apart and create a mechanical key calculator, maybe with LED lights just for the fun of it, I have a pile of unused powerbanks which I could also open up or just power the calculator with a usb cable. Just wanted to see if anyone in the LTT community had any ideas to contribute or any tips. Pls No Roast
- 13 replies
-
- mechanical keys
- cherry mx
-
(and 1 more)
Tagged with:
-
Hi, So I've needed to disable UAC to run some script but now Windows Calculator (the default calculator on Windows) won't run because it's part of the Apps store. Is there another, simple, yet similar calculator I can use ...perhaps one I can install? Thanks!
- 4 replies
-
- calculator
- uac
-
(and 1 more)
Tagged with:
-
Is the psu calculator linus recommended accurate? It told me my recommended wattage was 468 W yet it recommended a 850 w PSU. How does it work? https://outervision.com/power-supply-calculator Any help is appreciated.
- 6 replies
-
- psu
- calculator
-
(and 3 more)
Tagged with:
-
How to use jbuttons to input to a text field in java?
- 9 replies
-
- netbeans
- programming
-
(and 3 more)
Tagged with:
-
I'm currently in university and we are doing a lot of math work, but our lecturers are very strict about having a phone out as we do various exams - but had nothing against calculators. So my thought was: What if I could get a calculator and program few of it's buttons to calculate the most extensive bits of exam for me? In other words - I'm looking for a programmable calculator that I could plug to my PC via USB and make it do various stuff, but I couldn't find anything... thus this thread.. help? Thanks in advance, I'm open to all suggestions!
-
Hey guys. Im working out my own algorithm for takinga math problem as written in a string, and answering it. My test problem is: (((1 + 2) + (2/1)) 2) + 2^5 Still got a lot of thinking it up. But does anyone see anything fatally wrong with my path, or am i on the right path? This is my first "complex" algorithm im trying to think up and then code. Thanks ? Edit: Really just after if my algorithm makes sense for order of operation with '(' && ')' The "simpleMath()" will take care of '^' and all that. Im still thinking up how to take multiplication with no sign and make that work, but i dont expect any problems thinking that up.
-
Based on this vote! 7ns or faster (warp speed) 7.5+ (ICBM speed): 8.0ns+ (very fast) 8.5ns+ (fast) 9.0ns+ (above average): 9.5ns+ (average+): 10ns (average): Over 10ns (average-): Over 11ns (below average): Over 12ns (slow) Over 13ns (very slow): Over 14ns (to slow): Over 15ns (you better have ECC or dead to me!): ((wip please pardon the mess)) https://notkyon.moe/ram-latency.htm
-
Does anyone know if there is a PSU calculator tool out there that is TRULY accurate? I have always used the FSP website calculator, seems pretty accurate and includes details such as RGB lighting systems, Fans, and overclocking adjustments.
- 14 replies
-
- psu
- power supply
-
(and 1 more)
Tagged with:
-
I am trying to teach myself win32 api in C++ by making a simple calculator in Visual Studio 2017. I am having success and making progress so far. Yet, I don't have any feedback on how my code is structured. I would appreciate if people could give me some constructive criticism. I am trying to gain experience to land a Software Engineering position. I had to take a test recently after a job interview and some of the questions pertained to program development. At this point I realized that I don't have any real understanding of the process of software development, I just know how to code. So any advice in planning, layout or structure would be appreciated. I am also looking to get into any collaborative work if you think anything would suit me. I attached a zip folder of my Visual Studio Project folder. This is not a final project so it doesn't actually do anything yet. My biggest accomplishment was just getting the user interface all setup and functional. My next step is actually doing the calculations and than figuring out how to add menus to windows (its confusing me, requires resources?). Thanks GitHub: https://github.com/StrictlyDominick/win32Calculator Project Folder: win32Calculator.zip
-
CPU: I7 4790K Memory: 16gb ddr3 Storage: 4TB hdd VideoCard: MSI Gtx 1080 TI OS Windows 10 Well my question might seem wierd but i have some calculations that just wont work on the windows calculator (it gives a error of Overflow)becouse it would be to big. So would it be posible to use for example the power of my GPU to do some masive calculations? No idea if this is the right place to ask this question. Sorry for my english.
-
I own a TI-84 Plus C Silver Edition. On Wikipedia, it said that the calculator uses a Zilog Z80 processor. Does anyone know what exact model? PS. I didn't know where else to put this. I guess that it is a CPU, so it does belong here.
- 2 replies
-
- calculator
- zilog z80
-
(and 1 more)
Tagged with:
-
Try calculate the area of the black area under the triangle: All help is allowed (it might seem easier than it really is) The answer for those who are curious;; (don't cheat!);
- 31 replies
-
- need
- calculator
-
(and 4 more)
Tagged with:
-
@LinusTech You know what I would love, is a rig performance calculator published by LTT. I will even pay for the service of such a tool. To give you an idea of what I am on about: A website with drop downs where i can select cpu, gpu, ram, ssd etc. Sliders to indicate the overclock that i wish to run(in regards with GPU, CPU and RAM) and your calculator spits out the performance you guys got testing this rig, You will probably need to get a full time employee for this, hence I am more than happy to pay for a service like this. Don't get me wrong, there are many sites that publish performance, but this tool should be so much more. If I want to select a Intel i3 with a titan X , I should be able to (extreme case for example). I want to select corsair vs kingston. I want to select gigabyte vs msi. It should be the biggest single database of parts, all tested together and with some components (GPU, CPU and RAM) overclocked This is no small feat. The amount of iterations are unimaginable. But I don't care. Its time someone does this, and it might as well be LTT. PS. Please have this done when the first Pascal's drop :-) Cheers Carel
- 25 replies
-
- rig
- performance
-
(and 2 more)
Tagged with:
-
Hello programmers! I need help regarding if statements. The program I am creating is a simple calculator for my college assignment where, the user shall type in their name, their points, and this program will convert their points into a grade. I understand if this is written confusingly, however if confused please reply, I don't have a lot of time to do this. However, I am struggling with how to do the conversion part, where the program will convert the user's points into a grade. I was thinking of doing if statements (I have done one if statement in the screenshot below just to sort of get the jist of what i'm going for here.) The first if statement is if the user enters a value lower than 120, it will display a line of text. My next if statement will be greater than 120 and less than 180 and so on. The part I am struggling with is where I should write the if statements (I have three classes, one main, one student where student variables are declared and another class called 'points' which is currently used for nothing.) At the moment, I am writing them in the main class because if I wrote them in the points class, I would have no idea how the main class would access it. Another part I need help with is how to write them out! Would I do another if statement? Or an else if statement? (Scenario: This program is a BTEC calculator, basically, the user will enter their name and then their UCAS points, which will then be converted into a BTEC grade. An example of this program used successfully can be found here: http://www.universityfinder.org.uk/ucas-points-calculator.html)
-
Hey guys, school just started for me, which I'm sure is the case for many people here, and I need to pick up a graphing calculator which I'm going to be needing it this year for higher level functions and calculus in IB. I'm looking to get a calculator from the TI-84 lineup, but I'm not sure whether I should get the TI-84 Plus, TI-84 Plus CE, or the TI-84 Plus C Silver Edition. Would anyone know exactly what the differences are between these calculators other than the color display and other little tweaks (i.e. thinner design, rechargeable battery)? If I can, I'd like to get one for as cheap as possible and I'm wondering if there's any places that perhaps sells these at a discount. Thanks
- 25 replies
-
- graphing
- calculator
-
(and 1 more)
Tagged with:
-
i wanna know if pc part picker watt calculator is accurate and if it says 1026 watt will a 1250 watt PSU 80+ gold do the job?
-
name = str(input("Hello, what is your name?")) print ("Hello "+name) question = str(input("Please press: 1 for multiplication, 2 for addition, 3 for division, or 4 for subtraction.")) #<---singular loop---> mult = 1 if mult: print ("Ok let's do some multiplication.") num1 = int(input("Number 1: ")) num2 = int(input("Number 2: ")) print ("So your numbers are: ",(num1),(num2)) print ("Here is your answer:") print (num1 * num2) else: print ("Sorry please try one of the listed numbers.") add = 2 if add: print ("Ok let's do some addition.") num3 = int(input("Number 1: ")) num4 = int(input("Number 4: ")) print ("So your numbers are: ", (num3), (num4)) print ("Here is your answer:") print (num3 + num4) else: print ("Sorry please try one of the listed numbers.") Ok so i have recently began using python and am trying to allow the user to enter in a number(either 1,2,3, or 4) and then based off of what number was entered have the corresponding math type to open. I think the code itself will probably explain what i am trying to do. Anyway my issue is when i get to the part when it asks for a number and i enter 1 for multiplication, multiplication opens like it is supposed to, but if i enter in 2 for addition multiplication still opens. Infact no mater what i enter the multiplication opens. Ugh i cant figure this out someone please help!
- 5 replies
-
- code
- programming
-
(and 5 more)
Tagged with:
-
I recently Bought a CORSAIR RM650 I want to run a gtx 980 in the near future but have a gtx 760. The power supply hasn't came yet but do you think it will run well and quiet with a gtx 760 or a gtx 980. I'm a big fan of quiet and I don't like the look of the cx series power supplies , so I'm hoping my psu now can run a 980 and an amd FX 8320. The power supply calculators I can't really trust
- 17 replies
-
- psu
- power supply
-
(and 8 more)
Tagged with: