15,551 Topics
| |
## Traversal In Binary Tree : ## **Preorder traversal (NLR) :** 1. Visit the root(N) 2. Traverse the left subtree of root in preorder(L) 3. Traverse the right subtree of root in preorder(R) **Inorder Traversal (LNR) :** 1. Traverse the left subtree of root in inorder(L) 2. Visit the root(N) … | |
Write a Program to Delete an Integer from an Array of random numbers? Please reply anyone | |
Any one please help me to understand this question . Write a Program to Delete an Integer from an Array of random numbers. Please reply Asap | |
Hello all, I have a question I have a list view in eg and there are songs in it now I want when I click on a button that he plays all the music in succession but I can't get that done can someone send me an example? Thank you | |
I am writing this program for our activity, but I have Problem at the end line, because whenever I input 'Y' when asked do you want to solve another set, the do repeats but the statement "Do you want to try again is flashed along with the question "Which shape's … | |
i've come across a problem. How do i check if an array has two,or more elements in a sequence. For example,let's say i have an array 1,2,3,6,7,8,4,5 and i want to check if it has numbers 6,7,8 but in that sequence. For example,if it would be 1,2,3,7,6,8,4,5 it would return … | |
> import numpy as np > import scipy.io.wavfile > from scikits.talkbox.features import mfcc > sr1,x1=scipy.io.wavfile.read("filename.wav") > ceps1,mspec1,spec1=mfcc(x1) I can obtain MFCC values as above. Now, I have 100 songs with 2 different music genres(electronic,jazz). And, I want to create a dataset with using these songs. I suppose I will use … | |
Hello! I’m first year at the university and I’m studying programming. I studying C++. I need to do the Minesweeper game but I don't know how to write the code and what it means. I need someone who can write the program and explain it to me. | |
#include<stdio.h> #includ<conio.h> Int main() { int ch; float F,C,R,K; char chs; printf(“Choose Input Value\n1.F\n2.C\n3.R\n4.K\n”); scanf(“%d”,&ch); switch(ch) { Case1: F=input(“Fahrenheit value”); C=(5/9)*(F-32); K=C+273.15; R(9/5)*K; Case2: C=input(“Celsius value”); F=(9/5)*(F-32); K=C+273.15; R=(9/5)*K; Case3: R=input(“Rankine value”); F=R-459.67; C=(5/9)*(F-32); K=C+273.15; Case4: K=input(“Kelvin value”); R=(9/5)*K; F=R-459.67; C=(5/9)*(F-32); default: printf(“Invalid Input”) } fflush(stdin); printf(“Print final value F=%0.3f … | |
You are provided with a text file containing randomized integers from 1-10000 called randomNum.txt. Write a program to sort these integers. You will have to create 5 separate processes for this, which will work in parallel to sort the integers. This means Process 1 will sort integers from 1-2000. Process … | |
Hello guys, am trying to access the windows in-built adapter from C# library known as Bluetooth LE (Low Energy). I have installed the nuget package and when I try to run my code, I get the error that **Unhandled exception. System.ArgumentException: [Plugin.BluetoothLE] No platform plugin found. Did you install the … | |
Hello, I am new in C programming, I am writing a function to evaluate a prefix arithmetic expression. I know my code works well but it seems the message floating exception (core dumped) is because if my (preval / 0) the program is not going to work. However, I would … | |
| Hello, I wrote this c program that will rearrange the numbers in an array such that all the even numbers come first and that will also calculate the sum. However, when I tested it on mipsmark software ( for correcting assembly language programs) I have a test fails. Here's what … |
| Hello, I am trying to count the number of characters in a string $a0 that return a 1 when passed to the function, otherwise return 0. Heres what I did: I dont have the correct answer __ output format must be 3, I have 11 .text .globl __start __start: # … |
Do you think that the structured programming is still useful now on day (for developing)? | |
I was looking at this struct tutorial. https://www.tutorialspoint.com/cprogramming/c_structures.htm It mentions "The structure tag is optional". How would you refer to your struct if there is no structure tag? struct { char title[50]; char author[50]; char subject[100]; int book_id; }; //something like this? struct random_name; | |
Create a program that displays the result of a sales transaction. The calculation requires three numbers. The first number represents the product price. The second number is the salesperson commission. These two numbers should be added together. The third value represents a customer discount; subtract this third from the result … | |
It will be an interactive system where model restaurant will take order from its customer and generate bill. System will also generate daily menu list based on the sales of veg and non-veg items during last 15 days. I am unable to figure out second part of generating daily menu. … | |
I’m trying to scan in a txt file with a string of numbers. t.txt 123 223 323 <#include stdlib.c> <#include stdio.c> <#include string.h> int main{ char grid[3][3]; int i = 0; File *f = fopen(“t.txt”, “r”) while (i != 3){ for (int j = 0; j < 3; j++){ fscanf(f, … | |
I’m trying to scan in a txt file with a string of numbers. t.txt 123 223 323 File *f = fopen(“t.txt”, “r”) while (i != 3){ for (int j = 0; j < 3; j++){ fscanf(f, “%1c”, &grid[i][j]); } i++; } But it prints a segment fault. | |
I’ve been trying to use the fscanf function to read a txt file containing a single number into a ptr: (file.txt) 1 File *fPtr=fopen(“file.txt”, “r”) int r; fscanf(fPtr, “%d”, &r); I keep getting a segmentation fault, after running it though the program compiles. It happens pretty much any other way … | |
//Basic libraries #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <stdbool.h> #include <time.h> #define Empty 0 #define P1 1 #define P2 2 #define Height 6 #define Width 7 int board[Height][Width]; char gamestr[41]; void show_game_list(){ //Open game file for reading FILE * fp; char * line = NULL; size_t len … | |
Hey, so I'm still very new at programming/coding and for fun, I wanna make some sort of script. For a offline fighting game. So let's say I press one key, it does one combo? does that make any sense? I just wouldn't know how to go about that is there … | |
How do I set a system-wide _ifdef? This is using Microsoft Visual Stuedio version 2019 with C#. If I want to add specialized code to a project shared by multiple software developers that is designed for my selfish tests and evaluation, how do I manage a # definition inside the … | |
Type the next higher prime following the number entered in the console. in c# | |
I have a homework assignment that im not really sure how to approach as of right now, I've done some research but. I have not found really anything that would pertain to what I'm doing. Any help would be appreciated <3 . So far this is what I have: /****************************************************************************** … | |
Hello! I'm working on this linked list project where I'm supposed to save the employee data in a linked list and apply some operations. and I am new with c++ so I'll show you my code and please help me with it. my questions are: 1- whenever I enter a … | |
Hello all, I've searched a lot and found a bunch of answers and edited my comparison many many times, but just cannot get a sorted output. Here is my struct typedef struct sortedDistance { int storeID; int zipCode; double latitude; double longitude; double distance; char address[50]; char city[50]; char state[20]; … | |
C++ program that displays on the screen item codes with corresponding item descriptions and prices. It asks the user to enter the code of the item purchased by a customer. It looks for a match of the item code stored in items.txt. How to read a specific line from a … |
The End.