480 Topics

Member Avatar for
Member Avatar for Raghadmusleh

I need help with the question ASAP please here's the question Write a C program to create and manipulate a one dimensional array (list) of up to a hundred sorted ( ascending order) numbers by using functions to insert, remove, or print elements as follows: Function insert : will search …

Member Avatar for rubberman
0
155
Member Avatar for Bile

--Hi Daniweb. 1st of all I apologize if I'm asking this Qn. in a wrong place,but as I came across this subject while I'm doying PhP code and so I thought I'd share it here as I hope someone may be came across the same scenario as I have. The …

Member Avatar for Bile
0
6K
Member Avatar for Seandean_1

I cant get my intended result I want my program to display can anyone help me. The program is to print the workers name who are listed in the struct and if you don't enter any of those names I should print worker name doesn't exist. Can someone tell me …

Member Avatar for Seandean_1
0
207
Member Avatar for matjojo

I tried to make a way to let the user choose to which piece of the program it would go, i first tried *for* but later went and used *if*, this is the code: while True: whichcode = 1 #set the variable for the first time. while True: if whichcode …

Member Avatar for matjojo
0
192
Member Avatar for lstew48

Help, I have a good pseudocode written that is supposed to get the title of a person and how many boxes in an order and print labels. Here is the pseudocode, please help. start Declarations string title string firstName string lastName string streetAddress string city string state num zip num …

Member Avatar for JamesCherrill
-1
148
Member Avatar for terriblecoder

Hi so I am suppose to write/fix this code up so it produces a monthly bill for a store. This is what I have so far. I know its suppose to have functions but im just doing it first this way because i find it easier.I think theres something wrong …

Member Avatar for Schol-R-LEA
0
288
Member Avatar for Lynn

We need a step by step list that shows how to set up an HP Deskjet 3050 all-in-one printer. The printer install disk is for Windows 7. We have download the new drivers for Windows 8.1. We can print using the USB connection. We would like to know how to …

Member Avatar for rch1231
0
287
Member Avatar for Ketsuekiame

## Why am I Here? ## This question is not as philosophical as it sounds, but it's one worth answering. I am here because I want to help people understand programming and help make us all better programmers. Sometimes I have questions to ask, sometimes I have answers to give. …

Member Avatar for overwraith
15
1K
Member Avatar for LukeJWhitworth

Hello Guys, Simlple problem and I am hoping for a simple solution! My software saves all my randomly generated product keys to a text file. It saves this using the code below. My.Computer.FileSystem.WriteAllText(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\TempValuesForAKG.txt", PTB.Text, True) That works fine. I then try to use the Print Document control and …

Member Avatar for Santanu.Das
0
679
Member Avatar for ddanbe

For a small class it doesn’t matter that much, but for a bigger class I find it handy to have an oversight of all the methods at hand. That’s what I did here. One requirement is that the class file has already been compiled error free. Don’t know if my …

Member Avatar for JOSheaIV
0
419
Member Avatar for sabata mmoledi

how do I print all elements in an ArrayList?? this my code below. import java.util.ArrayList; /** * Write a description of class PetDatabase here. * * @author (your name) * @version (a version number or a date) */ public class PetDatabase { private String name; private String species; private int …

Member Avatar for stultuske
0
208
Member Avatar for Pervin_1
Member Avatar for michael.james.90475

double fileSizeKB = (fileByteArray.length) / 1024; double transferTime = timer.getTimeElapsed() / 1000; double fileSizeMB = fileSizeKB/1000; double throughput = fileSizeMB/transferTime; System.out.println("The size of the File was "+fileSizeMB+ " MegaBytes"); System.out.println("Time for transfer was " +timer.getTimeElapsed()/1000+ " Seconds"); System.out.printf("Throughput was %.2f MB Per Second\n",+throughput); System.out.println("Number of retransmissions: " + retransmissionCounter); byte[] …

Member Avatar for JamesCherrill
0
230
Member Avatar for Niloofar24

Hello my friends. Look at this please: >>> from bs4 import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('https://duckduckgo.com/?q=3D&t=canonical&ia=meanings') >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links [<a class="header__logo-wrap" href="/?t=canonical" tabindex="-1"><span class="header__logo">DuckDuckGo</span></a>, <a class="search__dropdown" href="javascript:;" id="search_dropdown" tabindex="4"></a>, <a href="https://duckduckgo.com/html/?q=3D">here</a>] >>> I used this `https://duckduckgo.com/?q=3D&t=canonical&ia=meanings` as the url, …

Member Avatar for vegaseat
0
588
Member Avatar for Niloofar24

Hello! How can ask my scipt to print **every word** in a url page that starts with the letter "A" in this case? This is my code: from bs4 import BeautifulSoup import urllib2 url = 'http://www.thefamouspeople.com/singers.php' html = urllib2.urlopen(url).read() soup = BeautifulSoup(html) for word in soup.text: if soup.text.startswith('A'): print soup.text …

Member Avatar for vegaseat
0
486
Member Avatar for jonlloydd

I want to filter records being displayed from a MySQL table if the value of a field = one of multiple predeclared values. I am already running a query on my table which displays records based on which option from a dropdown menu the user selects. However before the user …

Member Avatar for linus72982
0
501
Member Avatar for sameer.a.awan1

public void setState(String state) { if(state.length() <=3) this.state = state; else this.state = state.substring(0, 2); `}`

Member Avatar for Slavi
0
50
Member Avatar for utsavjoshi95

problem with this code is, it is printing only first element,how can i print all elements which are added using addrow() <script language="javascript"> function addRow(tableID) {var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var cell1=row.insertCell(0); var element1=document.createElement("input"); element1.type="checkbox";element1.name="chkbox[]"; cell1.appendChild(element1); var cell2=row.insertCell(1); cell2.innerHTML=rowCount+1; var cell3=row.insertCell(2); var element2=document.createElement("input"); element2.type="text"; element2.name="txtbox[]"; cell3.appendChild(element2); } function deleteRow(tableID){ …

Member Avatar for rpv_sen
0
153
Member Avatar for BustACode

My code and funcs for printing to columns in 2.7 and 3.0+ using print(). I had to relearn column formatting as I moved to using the print() function, and so the follwing is a result. Inspired and partially copied from discussion on [StackOverflow](https://stackoverflow.com/questions/9989334/create-nice-column-output-in-python) def main(): # Main Code v_Data = …

Member Avatar for vegaseat
0
360
Member Avatar for panjiasmara

I was asked this question month's ago to stackoverflow.com. is anyone here can solve this one ? I have a fixed element ( for logo , slogan , ect ) and a dynamic table . i give the distance it with <body style="padding-top: 25mm;"> but only the first page that …

Member Avatar for panjiasmara
0
183
Member Avatar for Niloofar24

Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.)

Member Avatar for Niloofar24
0
3K
Member Avatar for Niloofar24

Hi friends! import urllib url = 'http://www.python.org' text = urllib.urlopen(url).read() I have typed the code above on the terminal and in the next line with `print text` an html file printed there. I want to send it to a text file, how can i do that?

Member Avatar for Niloofar24
0
290
Member Avatar for Markyboy

Help. I've been tasked with writing a program that calculates the average temp for a week, getting user input for daily temps, calculating the average and printing out the results. I got that part. The second part is asking me to print out a message (Too hot!) if the avg …

Member Avatar for samson.dadson.3_1
0
221
Member Avatar for savedlema

Hallow everyone! I'm developing an application that features a bunch of reports and I have been using DataGridView as a way of displaying my reports, which come from the database (programmatically). When I want to print, I have been using a function that prints the datagridview like you are taking …

Member Avatar for Santanu.Das
0
641
Member Avatar for fabzster

Hi I have a php file with html forms and variables in php. I generate a policy document that is displayed in the web page and is then created in PDF and emailed to the client. I create the PSF via using EZPDF but This runs slow when creating the …

Member Avatar for fabzster
0
7K
Member Avatar for nikiki

So i am making a registration program for conferences and when the user registers for a conference or workshop they have the option to print a schedule of what they have signed up for but i cant figure out how to sort the conference or workshop text files by the …

Member Avatar for Jack_11
0
203
Member Avatar for charan0713

In one file we have employee number and salary and in another file we have employee number and designation . Now in the output file i want to print salary and designation with corresponding employee number ?

Member Avatar for glenn_3
0
127
Member Avatar for rela

I have a code that read some input data from a text file, and I want to add a loop using WriteModel() to print out the same data like the same format in the text file, can you help me how to do that?

Member Avatar for rela
0
169
Member Avatar for Gribouillis

This snippet defines a function `printat()` which adds line and file information to the normal `print()` function output. The intended use is a quick and dirty debugging information for everyday's use. A more complete solution is to use a logging/debugging/tracing framework.

Member Avatar for Gribouillis
5
876
Member Avatar for Priti_P

Hello All, I have fetched array from database, it is two dimentinal array. and want to print it into html table. But when print it's need attribute while printing it. here is code: <tr> <th>Sr.No.</th> <th>Skill type</th> <th>Skill Name</th> <th>Project</th> <th>Practice</th> <th>Description </th> </tr> <? $skills_1=[HERE I HAVE FETCHED ARRAY …

Member Avatar for jsuna
0
231

The End.