Member Avatar

Hello everyone, Hope you are doing , I am too much confuse to buy a gaming laptop for my younger brother, Someone suggest a website like https://pcmag.com, https://cartvela.com, and Techradar but there are too much content, I can't make a decision.

Member Avatar
2
3,534
Member Avatar

// c program to add 10 elements entered by the user #include <stdio.h> int main () { int i; float elements[10]; //declaring the array float sum = 0; for (i = 0; i < 10; ++i) { printf ("Enter element %d: ", i + 1); //getting the elements from the user scanf ("%f", &elements[i]); //storing the elements sum += elements[i]; //adding integers entered by the user to the sum variable } printf ("sum of above entered elements is : %.4f", sum); //printing the sum to four decimal places return 0; }

Member Avatar
0
247
Member Avatar

# What Are Voronoi Diagrams? # Voronoi Diagrams are an essential visualization to have in your toolbox. The diagram’s structure is a data-driven [tessellation](https://en.wikipedia.org/wiki/Tessellation) of a plane and may be colored by random or to add additional information. ## Learn the Lingo ## The set of points that generate the Voronoi diagram are called “seeds” or “generators” for they generate the polygon shapes; in practice, the seeds are your cleaned data. Each seed generates its own polygon called a Voronoi “cell,” and all of 2-dimensional (2D) space is associated with only one cell. A Voronoi cell, or Voronoi “region” denotes …

Member Avatar
4
11,415
Member Avatar

I tried alot to print this arrow with random generated values which are 0101 , every time it should be differnt, please help me out thanks :) ![Untitled1.png](/attachments/large/4/c843d1e3a2cf1464dc1f1eb7c0d4a68a.png)

Member Avatar
0
930
Member Avatar

Hello everyone! I'm working on this C++ program but im kind of lost. I'm using calling fuctions with void and parameters to create this program that is supposed to average a set of 5 scores and dropped the lowest one. It should calculate and display the average of the four highest scores. This function should be called just once by main, and should be passed the five scores. Then it should average the four highest scores and dropped the lowest one. // The following program is designed to average a group of test scores // where the lowest score is …

Member Avatar
0
106
Member Avatar

I need some quick regex help with matching the same word twice in a pattern. For example, I'm trying to match on the PHP code: `if (isset($foo) AND $foo)` or `if (isset($bar) AND $bar)` where `$foo` and `$bar` are any valid variable name. However, I don't want to match on `if (isset($foo) AND $bar)`. Can anyone help me with this? Thanks!!

Member Avatar
0
174
Member Avatar

I solved a problem some day ago. In that problem you had to format an integer. I found it hard to solve. So here I am sharing my problem with you. Problem: Read an integer variable and print it in which the digits are separated into groups of three by commas. Input: 12345678 Output: 12,345,678 Any changes of my code will be appreciated.

Member Avatar
2
610
Member Avatar

hello everyone iam kinda new with pygame. I wanted to create a one mans game which is similar to shoot and killl. i was able to move around my play but the issue is that whenever i press the K_space nothing is coming out and also i would like when the bullet collide health shows up and when the enemy reaches the player game over to be displayed.

Member Avatar
0
243
Member Avatar

-Anyone know of any good basic GDB tutorials/resources?

Member Avatar
0
673
Member Avatar

Hello eveyone, I want to write a MARIE code to perform the following program excerpt: If (x < y + z) { x = x – y; z=z+1; } else y=y-1; Instactions given: - Use “ORG” instruction to start your program at address 200. - The following labels and directives should be included at the end of your program: X, Dec 4 Y, Dec 2 Z, Dec 5 One, Dec 1 I do not know how to use if statments in marie, all I know is how to add, subtract and multiply ( the basics) any help would be really …

Member Avatar
0
2,719

The End.