Here's my code below. ar2 <- function(n , c ,phi1, phi2, sigma){ if( (phi2 > -1) & (phi2 < 1) & (phi1 + phi2 < 1) & (phi2 - phi1 &
I need your help with the next problem, i need that a python recieve an string "EEEEDDSGES" and the output would by the sum of charactes that repeat in line, E
Can someone help me plz, I want to use masonry JavaScript when the screen is bigger than 800px and destroy/ disable it when screen is less than 800px. the probl
I am supposed to filter the ages of the users through the following rule: if users >=120 cm then print("You can ride the rollercoaster!"), if users <=119
I have a problem where I want to reload the page on submit. I did this with the simple script function shown below. However, the echo'd "hello" does not disappe
I want code optimisation for an if-statement because I otherwise have to add more key-value pairs into this condition with &&. I have an array of object
I have code in shell script, but can't figure out how to parse line by line in column. If person is absent I want to send email. if person is late than hour the
I have some code below, for a given name that matches pattern with 2 lower case letters (such as 'aa'), the valid name can be V-aa or X-aa def verify_helper(val
package Multiplemethods; import java.util.stream.DoubleStream; public class TimeOffice { public static void main(String args[]){ //instance variables dou
Working on this program that's supposed to take a vector of integers as input and return the one with the longest integer. Example (vector 20 738 5942 125) and
I use the following python snippet within my code to scan a given soup for keywords. It´s only possible that one of the word is inside the soup. Concernin
I am trying assign grades for input integers. But I found it difficult to complete the code. Is there any other way to do the below code such that it will give
I want to paste together results within the same case_when statement (i.e., if multiple statements are true for a given row). I know that I could do something l
We were asked to make a function named temperature conversions that accepts an integer argument called temperature, a secondary string parameter called input un
With this script I can exclude to insert the same value column in Google Sheet for maximum 100 times. But I am trying to exclude (with if statement) some values
class Solution { public: int findMaxConsecutiveOnes(vector<int>& nums) { int ctr = 0, max = 0; for(int i=0; i<nums.size(); i++)
This is part of my code that I working to find a word in a remote server connecting via ssh to that server filename=test.repo word=fail exists=$(grep -c $word $
I have 7 criteria = TMO-1 through to TMO-7 I have two scenarios to search from. i have either got a single excel with TMO-6, TMO-201, TMO-67,... etc (some have
So i want to make a simple if statement like this : if(a=1) { if(variable1=1) { cout<<"a1=1"; } else {
I am currently working on a small project that will take a user input such as "50", and convert it to a float while also placing the decimal to the left, such a