/** This code is supposed to take the user input of the length and breadth of the room in one class, get the user input of the material and cost from the other class and calculate the total cost.*/ import java.util.Scanner; //My first class class RoomFlooring { private String FloorMaterial; private double material_cost = 0; public void setFloorMaterial(String FloorMaterial) { System.out.print('\u000C'); // Choosing the floor material Scanner Floor = new Scanner(System.in); System.out.println("Choose your floor material: FancyTile or NormalTile: "); FloorMaterial = Floor.nextLine(); } public String getFloorMaterial() { return FloorMaterial; } // determining the cost according to the floor materials public …

Member Avatar
Member Avatar
+0 forum 4

import java.util.Scanner; class Room_Dimension { private double length; private double width; public Room_Dimension(double length, double width) { this.length = length; this.width = width; } public void setLength(double length) { this.length = length; } public void setWidth(double width) { this.width = width; } public double getLength() { return length; } public double getWidth() { return width; } public Room_Dimension(Room_Dimension roomDimensions) { this.length = roomDimensions.getLength(); this.width = roomDimensions.getWidth(); } public double getArea() { return length * width; } } class Room_Flooring { private String floorMaterial; private Room_Dimension roomDimensions; private double cost_of_material; public Room_Flooring(Room_Dimension roomDimensions, String floorMaterial) { this.roomDimensions = roomDimensions; this.floorMaterial = …

Member Avatar
Member Avatar
+0 forum 1

I was wandering aimlessly on google, I found [ReactOS](https://www.reactos.org/). It's interesting. I tried this OS, many windows applications are running well on it. But some latest applications are unable to run like **Firefox 65.0.1** I have few questions, * How worth is using this OS? * What is future of this OS? * How secure is this OS? * What development is required to run latest applications? * How to search books & tuts, which are useful for this OS development? * Can anybody help me here to compile & edit some part of OS (I would like to do …

Member Avatar
Member Avatar
+0 forum 13

Hi, I've been playing a game from a few years back (I really enjoyed it) and I found that it was open source on github. I would love to make my own version and see how it goes. I have experience with python as a hobby, and I've had a go at c++ - I made a few games with the sdl library. The github link - https://github.com/id-Software/RTCW-SP It will be great if I could at least render a level and a character. From what I see, the source has everything I need apart from the graphics. If someone can …

Member Avatar
+0 forum 0

Hello, I don't know too many things of programming, I've barely started with some online courses, but am at the very beginning. This is what I need to do: 1. From a folder that contains multiple files I need to copy a particular file. 2. Paste that particular file in multiple directories. Note: These folders / files are on Google Drive. Is there a way I can do this task using Python? Or is there another way I could do this (not necessarily only with Python)? Thank you!

Member Avatar
Member Avatar
+0 forum 1

Hi, I am using node and refactoring an older database. Therefore, i want to ensure i incorporate correct practices from the start. I know that this is a debated topic and that there is not nessecarily a correct answer but i want to see what people have to say about the topic. I have done my fair share of googling and it seems pretty split. Currently, i am using mysql2 as my abstraction layer and writing the SQL. Approach 1 Use an ORM such as Bookshelf or Sequelize. - I see this as future proofing the database by placing it …

Member Avatar
Member Avatar
+1 forum 1

Plz Help Me to Solve this Error.. I am coding this to build a Calcuator in Vb.net....i have declared "b" as a Button.. how to resolve this error.. plz help.. ![error.jpg](/attachments/large/4/bc99a90be607e68a81a81b5b7eed68b2.jpg)

Member Avatar
Member Avatar
+0 forum 2

So given the following code (not my actual code since it would add unnecessary lines): typedef struct block{ int a; int table[64]; }block; typedef block* block_ptr; void getValues(block_ptr node){ int i, j; for(i=0; i<5; i++){ for(j=0; j < 15; j++){ node[i].table[j] = j; } } } int main(){ block node[10]; getValues(node); printf("%d\n", node[4].table[2]); return 0; } Why does it print out garbage values instead of, in this case, 2? And how can I fix this issue? Thank you for your time.

Member Avatar
Member Avatar
+0 forum 1

Hi , Im looking for c++ design for tools like abode photoshop. Can you point me any URLs/source code where i can refer c++ design for photoshop?

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I was trying to solve my problem about polynomials in C. By multiplying by repeated addition. I hope someone can help me thanks so much.

Member Avatar
Member Avatar
+0 forum 1

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

Hi everyone, I'd like to ask you all to help me with this two questions and I've been faced recently, 1.What would be the algorithm which takes the pointers of two Binary Search Trees roots, if equal returns true if not FALSE. (both BSTs are the same as well as the corresponding nodes.)? 2. how many times does " cout " execute? int m=0; for(int i=1; i<=n; i++) { m=m+i; for(int j=1; j<=m ; j++ ) cout << j; } thank you all for you helps and replies in advance.

Member Avatar
Member Avatar
+0 forum 1

Hi Everybody, I Just started C# and have an issue with this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace testurl { public partial class WebForm1 : System.Web.UI.Page { public void Page_Load(object sender, EventArgs e) { } public void Button1_Click(object sender, EventArgs e) { string Url = "mysitename.org"; var uriBuilder = new UriBuilder(Url); uriBuilder.Scheme = Uri.UriSchemeHttps; uriBuilder.Port = -1; var query = HttpUtility.ParseQueryString(uriBuilder.Query); query["secret"] ="whatever"; query["u"] = "67"; uriBuilder.Query = query.ToString(); Url = uriBuilder.ToString(); Response.Write("<b>De te gebruiken URL:</b> " + Url); } public void ImageButton1_Click(object sender, ImageClickEventArgs e) { //Here I want to call the …

Member Avatar
+0 forum 0

Hi Mr Dani first i would like to thank you for help always for a lot of hard issues , i always check your site to have some help and now plz help me to get thime and date from server , becouse the clients in my school has a problem with bios battrey always so the time and date are not correct and i made an electronic exam wich save the records of information in addition to date and time to server coming from client my database is Ms Access and the programming language is vb.net 2013

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am working on a project that should take all the data from file redirect and write them to a new file. Here is what I have: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "node.h" #include "tree.h" #define TRUE 0 #define FALSE 1 #define stdin stdin #define stdout stdout #define stderr stderr int main(int argc,char *argv[]) { int i; FILE *fp; fp = fopen("result.out", "w"); //create file to write stdin data to. if(fp == NULL) // file validation { printf("Could not open file"); return 0; } if(argc == 1) // executes if command line has file …

Member Avatar
Member Avatar
+1 forum 2

To be honest with you, all the codes that i made were self taught, i had to advance myself to learn more stuff in C++ which my first challenge is to make a simple but clean made text based adventure game, but im at the wall atm. (don't judge me, i'm still a newbie to C++) One is making choices, i tried doing "if" then "else if", on my last project, and it always reads the first "if", making the other two choices non-readable, so i had to force myself to make only one choice (hence making it a game …

Member Avatar
Member Avatar
+2 forum 3

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

Please tell what's wrong in this code.. I am using 3 DateTimePicker.. I think that line has some problem...Please Help.. ![Untitled.jpg](/attachments/large/4/f42d519e8bc5ead2edc0bf81395f227c.jpg)

Member Avatar
Member Avatar
+0 forum 5

I am currently studying for an "Associates in Computer Science" with the intention of tranfering to a four year collage to get either a "Bachelors of Computer Science" or a "Bachelor of Applied Computer Science" hopefully this spring. Before I can make a decision on which Bachelors I would like, I have to know what type of job the Computer Science field I would want however I currently don't know the exact diffrence between some of these jobs in programing. Can anyone (perhaps who is more expreince in this job field) first explain the diffrence between some of the jobs …

Member Avatar
Member Avatar
+0 forum 9

"Error in Line 4- System.NullReferenceException: 'Object reference not set to an instance of an object." Private Sub btnsearch3_Click(sender As Object, e As EventArgs) Handles btnsearch3.Click Dim vSearch As String = InputBox("Enter Employee Id to search the details:") If vSearch <> "" Then cmdSearch.CommandText = "SELECT * from Employee_Details WHERE Emp_Id =" & CInt(vSearch) cmdSearch.Connection = cnnOLEDB Dim rdrOLEDB As OleDbDataReader = cmdSearch.ExecuteReader If rdrOLEDB.Read = True Then txteid1.Text = rdrOLEDB.Item(0).ToString txtepn2.Text = rdrOLEDB.Item(1).ToString txtadd3.Text = rdrOLEDB.Item(2).ToString txtphon4.Text = rdrOLEDB.Item(3).ToString dtpdobirth5.Value = rdrOLEDB.Item(4).ToString txtapt6.Text = rdrOLEDB.Item(5).ToString dtpduty7.Value = rdrOLEDB.Item(6).ToString dtpdoa8.Value = rdrOLEDB.Item(7).ToString rdrOLEDB.Close() MsgBox("Record found") Exit Sub Else rdrOLEDB.Close() MsgBox("Record not …

Member Avatar
Member Avatar
+0 forum 2

This code shows how to obtain and display a GIF image from an internet website using the Tkinter GUI toolkit that comes with the Python installation.

Member Avatar
Member Avatar
+0 forum 1

Suppose that I construct my own programming language and my own compiler (for windows), I am free to use WINAPI like "CreateWindowEx"?

Member Avatar
Member Avatar
+0 forum 1

I do the class but there are some codes I need to help me please : -Write a number of member functions that do the following: •Calculate the student GPA •Search for the highest mark taken in a particular course •Print the ID, first name, and last name of all the students who have already taken a particular course •Print the course code, course title, course mark, course grade of all courses taken by a particular student -Write a main program that does the following: •Define an array of objects of each one of the above three classes •Assign data …

Member Avatar
Member Avatar
+1 forum 3

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region A and server 3 is in region B). The way the environment is set up is both servers have to be active/active status (meaning TRUE) except for some additional test cases, i am setting to false sometimes one or the other. I have the following script now calling the cube …

Member Avatar
Member Avatar
+0 forum 2

import csv import xlwt import os import sys #import openpyxl # Look for input file in same location as script file: inputfilename = os.path.join(os.path.dirname(sys.argv[0]), 'book2.txt') # Strip off the path basefilename = os.path.basename(inputfilename) # Strip off the extension basefilename_noext = os.path.splitext(basefilename)[0] # Get the path of the input file as the target output path targetoutputpath = os.path.dirname(inputfilename) # Generate the output filename outputfilename = os.path.join(targetoutputpath, basefilename_noext+'.xls') # Create a workbook object workbook = xlwt.Workbook() # Add a sheet object worksheet = workbook.add_sheet(basefilename_noext, cell_overwrite_ok=True) # Get a CSV reader object set up for reading the input file with tab delimiters datareader …

Member Avatar
+0 forum 0

So, I have created a text file containing the following: 10001 General Electronics 500 20001 fACEBOOK 700 10002 Twitter 400 The records are stored in a struct containing an integer id, string company and integer number of shares variables. I want the user to enter a Id, say 20001, and the output should display the details of only that particular user and not of anyone else. Also, I want to change number of shares of user 20001 from 700 to 600.

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 a text file with the following contents: Andrew Law 32 6'1 123 Pounds Tom Harris 19 5'5 180 Pounds Randy Poffo 45 5'3 141 Pounds Now on my form i have a listbox and four labels. What i would like to do is have the listbox show only the names of the people in the text file (Andrew Law, Tom Harris, Randy Poffo) and when the user clicks the persons name in the listbox i would like each of the labels to show the corresponding details for that person (one label showing age, one showing their height and …

Member Avatar
Member Avatar
+0 forum 2

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

The End.