199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Liviniesh

Define a class named Pair where the data(state) part contains two double-typed numbers, num1 and num2. The method(behaviour) part contain the following methods: o getSum() – returns the result of adding num1 with num2 o getdifference() – returns the result of substracting num2 from num1 o getProduct() - returns the …

Member Avatar for happygeek
0
367
Member Avatar for Hansly

#include <SFML/Graphics.hpp> #include <time.h> #include "Connector.hpp" using namespace sf; int size = 56; Vector2f offset(28,28); Sprite f[32]; std::string position=""; int board[8][8] = {-1,-2,-3,-4,-5,-3,-2,-1, -6,-6,-6,-6,-6,-6,-6,-6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …

Member Avatar for John_191
0
476
Member Avatar for Anthony_22

Hello, I am trying to prevent my form, from submitting if the file is not an image type file but i keep failing, the array that i am using keeps displaying regardless of the files type. Any help would be grateful. <?php $Manufacturer = $_POST['Manufacturer']; $Brand = $_POST['Brand']; $Model = …

Member Avatar for ryantroop
0
586
Member Avatar for Jon_7

I have a yearly curriculum for my basketball workouts that I'd like to display online. I've created 53 unique workouts for each day of the week that include the main focus for the day, 6 drills, a quote, and a motivational story. I know I'd need a [datepicker](https://jqueryui.com/datepicker/) to accomplish …

Member Avatar for Jon_7
0
718
Member Avatar for abhijeet P

Hello all, I have a code to encrypt data in C# and I want it to b decrypted in Java... following is the C# code [CODE]string Encrypt(string textToEncrypt, string key) { RijndaelManaged rijndaelCipher = new RijndaelManaged(); rijndaelCipher.Mode = CipherMode.CBC; rijndaelCipher.Padding = PaddingMode.PKCS7; rijndaelCipher.KeySize = 0x80; rijndaelCipher.BlockSize = 0x80; byte[] pwdBytes …

Member Avatar for JamesCherrill
0
9K
Member Avatar for jay_25

Hi guys. My task is to write a wombat 1 machine language program in CPUSIM that outputs the radix(only base 2 to 8 inclusive) reperesentation of a number. We have to ask the user for 2 inputs - first is the value to convert(cannot be negative) and second is the …

Member Avatar for Carolyn_3
0
768
Member Avatar for noxel8008

Hello guys, im new to c and structures and try to build or atleast fix my programm. I want build something like a digital phonebook. I also want to show my structure attributes after writing them. With my first code is working so far but if i want to show …

Programming c
Member Avatar for tinstaafl
0
340
Member Avatar for fatima_7

hi how can change the size of image: from CSS for three pages using dreamweaver ? how can i (position and reposition something in the page)? i tried this tag, but nothing change: img.resiz{width:200px;height:1000px; what is missing ?? should i include the img link? and what will be the correct …

Member Avatar for Tarek_2
0
276
Member Avatar for Syed_18

Hi This question or similar were 4 years ago has already been asked but in my situation did not help. I have codeigniter project. in my employee database I have TINYINT field status. if 1 employee is active otherwise inactive. my form is in bootstrap modal. here is switch button …

0
336
Member Avatar for Joel_10

Please help! I'm new to programming and my Program is outputting user's input twice. Right now It looks like this when its outputted: Floor Room Available Occupied Occupancy Rate ------------------------------------------------------------------ 1 15 10 5 33.33% 2 15 10 5 33.33% QUESTION: I realized an array is needed but what would …

Programming c++
Member Avatar for Joel_10
0
404
Member Avatar for Aditya_26

My website was built with Angular JS 1 (not a wordpress site) . When i posted some website posts within same day. So ,When ever i checked my website on Google SERP (site:example.com), identified some of pages are crawled within 24hrs and some of pages within 1 week and some …

Member Avatar for rproffitt
0
341
Member Avatar for KushMishra

Hello All, I have experienced a very strange problem in my application. When I launch my WPF application, it loads fine with a window and button, upon clicking the button, it launches another form which is also fine but in this second form, when I click some button, it launches …

Member Avatar for Cody_6
0
4K
Member Avatar for random_1

Hi, is there a way to convert a file into a pcap file? i have a .raw file and i want to change it to a .pcap file. so far what i know is that .pcap has some sort of header or offset or something compared to other files. i …

Member Avatar for rproffitt
0
638
Member Avatar for Athenkosi

![new1.PNG](/attachments/small/4/439e046d2f82534dc014d4649dea2f82.PNG "align-right") ![New.PNG](/attachments/small/4/df936d9cb59970cb9d9624ec2372f01f.PNG "align-right") ![new2.PNG](/attachments/small/4/e4dd164233946b7d726c703c6f7d470f.PNG "align-right") ![new3.PNG](/attachments/small/4/d479a91081ef39aa870d6eb0a3ca5006.PNG "align-right") Good Day, I would like some assistance, I have 12 checkboxes that when you click the value get stored into the database, then unchecked it get removed. Then now I needed a Checkbox/Uncheck All checkbox that when clicked the values get store, …

Member Avatar for Athenkosi
0
836
Member Avatar for nadiam

Hello. I found this packet sniffer code that uses the pycap wrapper. Initially, its for live capture but I've changed it to read a .pcap file instead and im trying to understand it but some parts of it i can't i comprehend. could someone explain them to me please? the …

0
466
Member Avatar for jay_25

Hi guys, I have a problem. I'm using CPUSim Wombat 1 to write a program. The goal is to display the numbers that the user has entered in the order they've been entered. What I'm stuck on is the storages. It's currently in a loop. The sentinel value is 0. …

0
445
Member Avatar for kes166

Good Evening, I'm working on my final project and I'm having an issue with reading input from a file and converting the string into an integer - specifically with the first character being read from the file. Here is the data in the .txt file created in notepad: 6 -1 …

Member Avatar for kes166
0
2K
Member Avatar for Mina_2

Hey guys, I'm having trouble with a program that I can't seem to get to work. It's supposed to be able to give you back your change in $130 bills, $55 bills, $25 bills, $5 bills, $1 bills, $.75 cent coins, $.30 cent coints, and $.01 cent coints. My program …

Member Avatar for Reverend Jim
0
304
Member Avatar for Kim Gabrielle

I am making a webpage wherein I am going to ask for an input through an html form using php, and then call a python script after clicking "submit (flames)" to run and process the Flames game. Can someone help me on how to execute a python script through a …

Member Avatar for broj1
0
7K
Member Avatar for iamsibi

I had a problem with my turbo C++ which would close itself after every execution.(Not the getch problem) After somehow solving this fault and the full screen problem, I tried out a program to check if my C++ is fine. Everything is fine except for the Output screen which seems …

Member Avatar for Schol-R-LEA
0
8K
Member Avatar for Marina_4

write a c program that calculates the Max , Min , Average and Variance of 10 numbers enterd by user and stored in array

Member Avatar for Schol-R-LEA
0
328
Member Avatar for Dillon_4

I am trying to recieve my form email in a more organized html table format. I get the email in code form. How can i get it translated? <?php $howDidYouHear = $_POST['howDidYouHear']; $weddingDate = $_POST['weddingDate']; $weddingTime = $_POST['weddingTime']; $ceremonyLocation = $_POST['ceremonyLocation']; $receptionLocation = $_POST['receptionLocation']; $additionalLocation = $_POST['additionalLocation']; $guests = $_POST['guests']; …

Programming email html-css php
Member Avatar for ryantroop
0
582
Member Avatar for Kalyan_3

Hi, I have a SQL Server (RSQL) and a SSAS Server(RSSAS). RSQL has a linked server to RSSAS, naming [LinkedCube] Here is a screenshot of my Linked Server Properties I use SSMS to connect to RSQL and then run a query that returns data from SSAS using linked server. The …

0
615
Member Avatar for bunyonb

Good evening ladies and gentlemen. i have a serious problem. Despite my best efforts to follow the principles of object orienting design, i noticed that my child classes are not getting any variables derived from their respective parent class stored with their values from user input to be used in …

Member Avatar for bunyonb
0
323
Member Avatar for Kang_1
Member Avatar for Saida_1

{public RestaurantBill() { //Create DecimalFormat object DecimalFormat formatter = new Decimal("#0.00"); // Initialise instance variables //Declaring variable(s). double bill= 0.00; double billtip= 0.00; double billtax= 0.00; double total= 0.00; //Initializing variables. //Obtaining user's current amount without tax and tip. System.out.println("Enter the amount of your restaurant bill."); bill = input.nextDouble(); //Calculating …

Programming java
Member Avatar for Reverend Jim
0
313
Member Avatar for Michael_80

I am creating an animated sprite that collides w/ itself and destroys itself? How did they do this in 1992? I just want to hit an enemy and have the enemy disappear. Any help appreciated. Using Unity 5.6 for game. public class Hadouken : MonoBehaviour { public Rigidbody2D bulletPrefab; public …

0
332
Member Avatar for Nrashmra

#Anyone can help? Here is two search by radio button one is requirement type and another radio button is build. I want to search by requirement type or build but it doesn't work...anyone can help to solve this problem, im very stuck! I've been doing this for two days.. I …

Member Avatar for broj1
0
2K
Member Avatar for muhd

Hello, i success display all the record when the button clicked <html> <head lang="en"> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="bootstrap-3.2.0-dist\css\bootstrap.css"> <!--css file link in bootstrap folder--> <title>View Users</title> </head> <style> .login-panel { margin-top: 150px; } .table { margin-top: 50px; } </style> <body> <div class="table-scrol"> <h1 align="center">All the Users</h1> <div class="table-responsive"><!--this …

Member Avatar for muhd
0
506
Member Avatar for ekka

hello guys I want to know about dependency injection in angular 4 and spring , so I gonna start with what I know : in angular 4 we inject the dependency by setting the service ( or something else ) in the constructor's arguments of component, and despite we inject …

0
288
Member Avatar for Ellena

class robot: def __init__(self, length = 20.0): self.x = 0.0 self.y = 0.0 self.orientation = 0.0 self.length = length self.steering_noise = 0.0 self.distance_noise = 0.0 self.steering_drift = 0.0 def set(self, new_x, new_y, new_orientation): self.x = float(new_x) self.y = float(new_y) self.orientation = float(new_orientation) % (2.0 * pi) def set_noise(self, new_s_noise, new_d_noise): …

Programming java python
Member Avatar for JamesCherrill
0
802
Member Avatar for bprosic

I have to iterate data through some DIV's. I don't know how to share and debug the code with others, so I decided to put the code in C# in a console application if you don't mind. Problem is that I cannot close section div in this iteration. If you …

Member Avatar for tinstaafl
0
479
Member Avatar for bunyonb

Good day gentlement and ladies. I need help concerning how to build a menu for selecting from a list of choices. let's say for example that I want the user to select to a minimum of 4 choices,if they only want two the should select 2 and press a certain …

Member Avatar for ddanbe
0
306
Member Avatar for Robert_73

Hello, all can anyone have some information on how to develop a simple iphone app..? (its for an FYP)

Member Avatar for crystal_1
0
748
Member Avatar for davy_yg

Hello, I am trying to import sql database and receive this error message. What does it means? MySQL menyatakan: Dokumentasi #1452 - Cannot add or update a child row: a foreign key constraint fails (`wwwsoulf_revsoul2`.`timeline`, CONSTRAINT `timeline_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)

Member Avatar for pty
0
396
Member Avatar for Mamatha_1

Hi All, I have a task in Python where I need to move .csv files into a new folder. I tried using the below code but it was throwing me an error. import shutil import os source = os.listdir(r'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\SampleZipFiles/') destination = 'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\DelimitedFiles' for files in source: if files.endswith("_new.csv"): shutil.move(files,destination) Error …

Programming microsoft python
Member Avatar for ryantroop
0
522
Member Avatar for Jose_17

int add(int i, int j) { if (i == 0) return j; else return add(--i, ++j); } Need to convert this piece of code to something like this add $s0, $s1, $s2 # $s0 = g + h add $s1, $s3, $s4 # $s1 = i + j sub $s0, …

Member Avatar for Schol-R-LEA
0
331
Member Avatar for FarrisFahad

I have a website that gets a lot of visitors a month. And the server cannot handle the traffic. I have a dedicated server. How can I run the site on multiple dedicated servers?

Member Avatar for FarrisFahad
0
4K
Member Avatar for kes166

Good Evening, I'm working on a program that will allow user input and will take that input, insert it into blank spots into an email template, and then prepopulate the email template in Outlook so all an analyst would need to do is click a the send button - basically …

Member Avatar for kes166
0
1K
Member Avatar for Arnold_7

Ingreso una operación donde ingreso 0.25 pero me da por respuesta 25.0 , por lo tanto no puedo guardarlo en la base de datos Private Sub btningresar_Click(sender As Object, e As EventArgs) Handles btningresar.Click tara = CDbl(LblIndicador2.Text) PB = CDbl(lblindicador.Text) 'Calcular el peso: PN = Convert.ToDouble(PB - tara)

Programming vb.net
Member Avatar for happygeek
0
234
Member Avatar for KushMishra

Hi, I am developing my own designer and got stuck at a point where I need to establish or implement some business logic whenever any UI Element is dragged and determine if that falls withing the boundaries of another parent control (specifically TabControl or GroupBox), so that the next time …

Member Avatar for KushMishra
0
511
Member Avatar for squeak24

I have two apps that are both open source, I am using Swift on iOS. I want to incorporate one into the other. The main App is a radio station, the second is a news feed. I want the news feed as a "sub project". After a few days of …

0
393
Member Avatar for SRI SAI

i want to insert invoice values into databade invoice amount limit and split into multiple row if amount is grater than limit and insert it indicia or group

Member Avatar for adam_k
0
214
Member Avatar for Basel_1

Hi, i was working on a code for a vending machine and i do consider myself to be a beginner, anyway i feel my code is much longer than it needs to be and i want someone to show me a new, shorter way of presenting it. import time print …

Member Avatar for Reverend Jim
0
21K
Member Avatar for muhd

I have 2 user which is officer and admin. The officer fill in the form. Admin will open the form, see details of officer and fill his detail. The problem is i success output all the information fill by the officer but when the admin fill the data not in …

Member Avatar for t_thakar
0
434
Member Avatar for fatima_7

i dont want to know the result, i want to know the (outputs) and any other example similer to the quation to understand. A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing …

Member Avatar for rproffitt
0
508
Member Avatar for fatima_7

word="have a good day" if i want to print only this word (good) i will run this cod print(word[6:11]) why i should write 6 ? and 11?

Member Avatar for JamesCherrill
0
563
Member Avatar for Kingsley_3

Hello guys, I need a concise explanation of the minimax algorithm... I understand it perfectly when explained with trees but the confusion comes in the code implementation... How do I get to implement depth search using code? I understand that calling minimax follows a recursive pattern but getting the AI …

Member Avatar for rproffitt
0
311
Member Avatar for johndohmen1963

Hi I have a broblem with my label text. The code is Public Class Form5 Dim a As Integer Dim currentDate As DateTime = DateTime.Now Dim jaarnu As Integer = currentDate.Year Private timeLeft As Integer Dim WithEvents timer As New Timer Dim milliseconds As Integer Dim monthnumber As Integer Dim …

Member Avatar for johndohmen1963
0
595
Member Avatar for Anthony_22

i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all …

Member Avatar for ryantroop
0
655

The End.