I see this Question in a diploma in computer science Exam in Algorithm , and i need help to solve it : Algorithm A1 takes n^2 days to solve a problem of size n . Algorithm A2 takes 2^n seconds on the same problem . Detrmine how large of a problem instance is required before algirithm A1 becomes faster than algorithm A2 . How much time do the two aldorithms take on that instance ?

Member Avatar
+0 forum 0

Hello guys, I need some help with a python program that i have to do for school. I don't know how to erase a button after using it. And how can i go to the next question after answering the first one. Please help me ASAP!

Member Avatar
Member Avatar
+0 forum 2

<Grid> < Button Content="Add" HorizontalAlignment="Left" Margin="58,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/> <TextBox HorizontalAlignment="Left" Height="23" Margin="190,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Name="t1" Text=" "/> <TextBox HorizontalAlignment="Left" Height="23" Margin="190,94,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Name="t2"/> <TextBox HorizontalAlignment="Left" Height="23" Margin="190,180,0,0" TextWrapping="Wrap" Text=" " VerticalAlignment="Top" Width="120" Name="t3"/> <Button Content="Sub" HorizontalAlignment="Left" Margin="164,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/> <Button Content="Mul" HorizontalAlignment="Left" Margin="273,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_2"/> <Button Content="Div" HorizontalAlignment="Left" Margin="384,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_3"/> </Grid>

Member Avatar
-1 forum 0

The library optimezedr should determine if a collection of books is in ascending or desending order.Your solution must read books from a text file and produce 2 additional text files one in ascending order and one in Descending order. then your solution will indicate if your original text file in in ascending or descending order or not sorted .You can only use the following c++ libraries:iostrem,fstream and string. Could someone please help me with this thank you.

Member Avatar
Member Avatar
+0 forum 2

How do I process the xamarin forms that connect to SQL Server and export data to the listView ? I'm looking for this simple example. What do I find on google ?

Member Avatar
Member Avatar
+1 forum 1

Dear All, We have recently released a survey on understanding the challenges that practitioners face with about software modeling and the particular problems that practitioners wish the researchers in academia to deal with. The survey is accessible via the link: https://docs.google.com/forms/d/e/1FAIpQLScwFMKoOJHDYF6GDETWh5H2w3W57G78Fb2SF0ABM9uTthN_hQ/viewform?usp=sf_link The survey takes 2-7 minutes at most, and your contribution to the survey is extremely valuable and highly needed. Can you please support our research by filling in the survey and forwarding the survey to any of your stakeholders whom you think may wish to participate in the survey ? The survey results will be made available online and …

Member Avatar
+0 forum 0

Hello. I have a question: I have a portable harddisc, with files on it. Now I want to encrypt a certain folder on it. It contains a couple of files which take some megs. What's the best way to do this? Thanks in advance, Leon

Member Avatar
Member Avatar
+0 forum 3

Hi all, I need to create a program on python that: At the start a 4 sided dice is thrown and a 12 sided dice is thrown to calculate two values for strength and skill the following method is used for each player: - Each attribute is originally set to 10. - The score on the 12 sided dice is divided by the score on the 4 sided dice and rounded down. - This value is added to the initial value. This process is repeated twice for two characters Bob and James. I also need the pseudo.

Member Avatar
Member Avatar
+0 forum 2

Has anyone experienced the "Not Found" error usin the shiny package in R? I keep seeing 'Not Found' when trying to load my Shiny application, it seems to be that R cannot find the Shiny server, I have tried reinstalling all packages and still no luck. The strange thing is that it works the first time I open R Studio, then it doesn't hereafter.. I have attatched a working example and a screenshot for insight. --- title: "Benchmarking Algorithms for Credit Card Fraud Detection" output: flexdashboard::flex_dashboard: orientation: columns vertical_layout: fill social: ["menu"] runtime: shiny #options: (shiny.maxRequestSize = 1500*1024^2) --- ```{r …

Member Avatar
Member Avatar
+0 forum 2

using c# socket programming. For the program on computer A, i would probably need to create a windows form, to allow me to trigger computer B software to run by clicking. How do i implement the async socket into window form? How can i start the connection of both computer, what do i need to do, t get computer A able to command computer B software to run, and all the data collected from the software to be stored in computer A windows form application. Thanks.

Member Avatar
Member Avatar
+0 forum 19

I have an assignment doing a constructor that accelerates and brakes the speed of the car (among other non-troublesome things) but when I run the program, the speed stays constant and spits out whatever the original number is rather than raising and lowering by 5 like I want it to. I will be eternally grateful to whomever can help me see the error of my ways

Member Avatar
Member Avatar
+0 forum 3

hello. I need some help in java 1.The program browse the filename of the text file to be counted 2.The contents of the file will be stored to a temporary storage. 3.Identifies if the c source code in a form of text file is physical lines of code, blank lines of code, comment lines of code and logical lines of code. 4. Counts the number of ploc, bloc, cloc and lloc. 5. Display the content in a text field. 6. The displayed output will be the identified lines of code and the number of counts in each ploc, bloc, cloc …

Member Avatar
Member Avatar
+0 forum 1

Hi, I run an online shop selling T Shirts and we often need to produce tons of T Shirt mockup images in Photoshop. We basically enable the layer for different T Shirt colours, Save Mockup As a JPG file and then repeat the same process for all the other colours. Since it was super boring, super repetitive and time consuming to do this, I put together this neat Photoshop script to do the whole job with a single click. //Cobbled together from: //http://feedback.photoshop.com/photoshop_family/topics/quick_save_as //http://www.polycount.com/forum/showthread.php?t=85425 #target photoshop; if (app.documents.length > 0) { var thedoc = app.activeDocument; var docName = thedoc.name; if …

Member Avatar
+0 forum 0

Hi, I'm working as a Software Engineer. You can imagine, how will be my work? I used to work when I'm in my home too, especially, during the month ends. The problem is, I'm not able to access my internet during the day time .there will be a connectivity problem. Planning to replace the internet box at home . It's disgusting to use it. But instead of being attached to a phone cable, my friend suggested the replacement of cable and placing portable internet solutions. I enquired about the connection and heard that a portable WiFi device enables us to …

Member Avatar
Member Avatar
+0 forum 1

I have questions: 1) Program to get input from user till 'z' or 'Z' is inputted the program will check for the chars, and print (new line) small chars (new line) big chars (new line) numbers [without 'z' or 'Z'] can't use variables. only Stack. example : input: ASdf154sdgdf123vcvbz Small chars: dfsdgdfvcvb Big chars: AS Numbers: 154123 This is code for question 1: STA SEGMENT STACK DB 100H DUP (0) STA ENDS CODE SEGMENT ASSUME CS:CODE,SS:STA MAIN: MOV BP, SP MOV BX, BP SUB BP, 2 MOV CX, 0 INPUT: MOV AH, 01H INT 21H INC CX CMP AL, 'z' …

Member Avatar
Member Avatar
+0 forum 1

Hello everybody, I want to convert python to c but ı did not find any converter. Is it possible to convert

Member Avatar
Member Avatar
+0 forum 1

Create a text file (w/o using any C++ program) containing the names of students and their marks in the following format: **Ajay 350 Vijay 340** where name and marks are separated by either a space or a tab and end of line is a record separator. Write a program to read this file and display the records in two columns name and marks. Within the name column, the students’ names are to be left justified and marks are to be right justified in the marks column.

Member Avatar
Member Avatar
-2 forum 2

hello. how can i print out in textbox a void * value ? here is the code: uintptr_t offsetFromBuffer = (uintptr_t)internalAddress - (uintptr_t)&buffer; void * healthDecAddress = (void*)(currentChunk + offsetFromBuffer); richTextBox1->Text = healthDecAddress; // how can i do it right ?

Member Avatar
Member Avatar
+0 forum 3

1. Ask user’s name and welcome them to the Christmas Gift Shop “Welcome to the Christmas Gift Shop! What is your name?” 2. Ask the user for how many people he/she wants to purchase Christmas gifts. “Hello <name>! How many people are you buying Christmas presents for?” 3. Ask the user the budget available to spend. Make sure there’s enough money to buy at least a present. “Thank you! What is your budget for all these gifts?” 4. Show the user the items available in store, one by one with price. Ask the user if he wants to purchase the …

Member Avatar
Member Avatar
+0 forum 2

Ok so I have been trying to do project euler problem 1 which finding the sum of all the multiples of 3 and 5 that are less than a thousand. i dont know why my program is not working. here's my program - [code=c++] #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int multiplier3 = 1; // multiplier of 3 int multiplier5 = 1;//multiplier of 5 int mult3 = 0; // multiple of 3 int ans3 = 0; // sum of multiples of 3 int mult5 = 0;//multiple of 5 int ans5 = 0;// sum …

Member Avatar
Member Avatar
+0 forum 2

In this examle in writer.c I am trying to generate symbols from a to z and then print them in uppercase in reader.c. **writer.c:** // C Program for Message Queue (Writer Process) #include <stdio.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> // structure for message queue struct mesg_buffer { long mesg_type; char mesg_text[100]; } message; int main() { key_t key; int msgid; // ftok to generate unique key key = ftok("progfile", 65); // msgget creates a message queue // and returns identifier msgid = msgget(key, 0666 | IPC_CREAT); message.mesg_type = 1; char c; for(c = 'a'; c <= 'z'; ++c) strcpy(message.mesg_text,c); …

Member Avatar
Member Avatar
+0 forum 1

i'm trying to make price lable printer and i was able to print a single page for a single id, but my problem is when i'm trying to print more that one id i was not able to make it work, i'm still learning but i was hoping that someone can give me idea how to make it work Imports MySql.Data.MySqlClient Public Module thisModule 'Info for the Price Lable Public NameV As String Public IdV As String Public DiscV As String Public ArDiscV As String Public PriceV As String Public SalesPriceV As String End Module Public Class Form1 Dim connection …

Member Avatar
Member Avatar
+1 forum 3

i need a code for authentefication user and password with c languge the user and password should be filled first in a .text

Member Avatar
Member Avatar
+0 forum 1

I want to create a game that computer guesses the number that i think between 0-500 but i am a beginner and i do not know what to do could you help me please ?

Member Avatar
Member Avatar
+0 forum 1

I am trying to implement a MIPS code that preforms unsigned integer divide but i couldn't figure out how. if D == 0, report an error and terminate. Q = 0 # Q is the quotient, initialized to zero R = 0 # R is the remainder, also initialized to zero n = the number of bits in the numerator N # That is, the number 3710 is 1001012 has 6 bits. # Shift through the bits of N to find the # position of its most significant 1 bit. # Write a separate function to determine “n”. for i …

Member Avatar
Member Avatar
+0 forum 1

Hi Is there any simple way or online website that can convert The numerical string like"123-322-14365" to regular expression?

Member Avatar
Member Avatar
+0 forum 10

I'm trying to compare 2 different CSV files, mark those differences respectively, then produce it as an output. However, my code seems to be only reading the last part of the lines from sample1.csv and sample2.csv as you can see below: Sample1.csv Planet,Account,Name,Station,City Earth,1234,Pete,Nebula,Phoenix Earth,1234,Pete,Nebula,Phoenix Earth,1234,Pete,Nebula,Phoenix Sample2.csv Planet,Account,Name,Station,City Earth,1234,Pete,Nebula,Wakanda Earth,1234,Pete,Nebula,Montgomery Earth,1234,Pete,Nebula,Carlo Current Output History,Planet,Account,Name,Station,City Changed,Earth,1234,Pete,Nebula,Carlo Expected Output History,Planet,Account,Name,Station,City Changed,Earth,1234,Pete,Nebula,Wakanda Changed,Earth,1234,Pete,Nebula,Montgomery Changed,Earth,1234,Pete,Nebula,Carlo Here is the code I have: import csv with open('old.csv', newline='') as f_old: csv_old = csv.reader(f_old, delimiter=',') header = next(csv_old) old_data = {row[0] : row for row in csv_old} with open('new.csv', newline='') as f_new: csv_new = csv.reader(f_new, delimiter=',') header …

Member Avatar
Member Avatar
+0 forum 6

Hi, I would like to know how to get IP Address of the devices connected to the hotspot of my PC using a VB program that will run on the same PC where the hotspot is running. I have no idea how to get it strated. I searched internet but I what I am seeing is that there is an external router. Thank you very much.

Member Avatar
Member Avatar
+0 forum 2

hello sir how can I get my system short date format in a label in vb. net. I try this code : Label1.Text = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern() but show wrong data. all time show "M/d/yyyy" format. I change it(to "dd/MM/yyyy") manually and by coding result is same("M/d/yyyy") please help me..... For Change the Format: Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "dd/MM/yyyy")

Member Avatar
Member Avatar
+1 forum 3

For the past several years I have been feeling quite embarrassed about my coding abilities. I've been self studying most nights trying to catch up to my peers but I feel like I have a moving target. I feel like my years of work experience does not reflect my coding ability at all. This post will go over my programming history, then how I am currently studying to improve my technical skills, then finally what I think my weaknesses are as a developer. What I am trying to get out of this post is how I can improve as a …

Member Avatar
Member Avatar
+7 forum 8

The End.