480 Topics
| |
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 … | |
--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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
## 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. … | |
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 … | |
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 … | |
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 … | |
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[] … | |
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, … | |
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 … | |
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 … | |
public void setState(String state) { if(state.length() <=3) this.state = state; else this.state = state.substring(0, 2); `}` | |
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){ … | |
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 = … | |
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 … | |
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.) | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ? | |
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? | |
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. | |
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 … |
The End.