hello guys i tried to do that code but it's not work :(
F=open('C:\T\list.txt','r').readlines()
B=open('C:\T\list2.txt','w')
BB=open('C:\T\list2.txt','r').readlines()
while BB.readlines() == 'John smith':
B.writelines(F)
so how i can told my python : go to copy from file : List1.txt to List2.txt but if you found John smith stop co...
write a program that sends 33H, 7FH, B7H,and EFH to P0, P1,P2,P3. Each number must appear at each port for 2 seconds and each port must always have one of these numbers there. the processor is a DS89C450 and has a clock of 11 MHz. Using assembly language.
...
hello guys can anyone led me what i should do with cut from file
so how i can told my python open items.txt then cut 20 lines from beginning then paste it on Sold-items.txt
...
#include <stdio.h>
int main(){
int i;
char name[10],surname[10],id[12],dpart[20];
printf("******** ID Documentation ***********\n\n\n");
printf("1) What is your Name? \n");
scanf("%s",&name);
printf("2) What is your Surname? \n");
scanf("%s",&surname);
printf("3) What is your ID Number \n");
sc...
Im new to unix shell script
i need to develop a shell script
a) To find called the folder called essbase in the directory /olap/Analytics/App/essbase
b) essbase folder should be tar or compress it move to another directory /crd/dw/fin
C) When the user request the essbase folder compress file should be moved back to the location orgin...
Hey can anyone help me with my homework question to do with python and running time please? This is the question below:
In each code fragment given below, determine the number of steps and describe what the
code accomplishes, i.e., what value of x has been output based on the value of the integer
n. Assume the value of n has already b...
In my code, I have a nestted class that holds an object and an integer. This is to mark the beginning and end locations for a sublist method.
The code executes to the point that the object and integer have established values. I've verified this in the debugger.
The next line then calls ListLoc<E> startNode= new ListLoc<E>(start, star...
Hi all, I've been trying to figure out this problem.
I have an assignment to make a basic calculator.
To do so i need the instructions in postfix.
I have found some code online, which worked but used gets().
I tried replacing the gets... but the program no longer works. Here is the code, i was hoping someone could find the error (usi...
hi can anyone tell me how can i get the length of a string if a user input it and we want to know the length of the string without sing len function or any string methods please anyone tell me as i m tapping me head madly for the answer.....
thank you
...
I am looking at a semester long project in compilers that could also evolve into my graduate thesis. I do not have much experience in this field (I have written a small "translator" for Pascal as part of my undergraduate work) --- I have been more into Machine Learning, and AI. The idea is to take this up as a challenge, and learn someth...
var a
var a = "ACdA(a = %b, ccc= 2r2)";
var b
var b = "\ewfsd\ss.jpg"
Expected outputs:
var c = "ACdA(a = %b, ccc= 2r2, b_holder = \ewfsd\ss.jpg)"
It adds the string b to the end of string a, that's it! But be careful of the ")"
"b_holder " is hard coded string, it's absolutly same in all cases, won't be changed.
Thanks ever...
Hi, i came across the following fuzzy logic example about fuzzy logic.
Representing Age
Problem 2-1. Fuzzy sets can be used to represent fuzzy concepts. Let U be a reasonable age interval of human beings.
U = {0, 1, 2, 3, ... , 100}
Solution 2-1. This interval can be interpreted with fuzzy sets by setting the universal space for age ...
I am Studying for an exam, and i have just come accross the following 3 questions, i am not familiar with the functions, therefore i would appreciate any help.
!! i have already created painting 2 & 3 all i need is the 3 functions, for the three different tasks as shown below. the functions are the showPic, sizeRaw and isPic.
questions...
I have a homework question "Show the following is true using theorems. State which theorem you use at each step." This is just one of many problems I have! So, if you can help me with this one problem than I can apply what I learn to finish the rest. I don't want a handout; I just don't know where to start or what to do. I have looked t...
I've got a large (4000 values) set of unsorted, normally distributed points. I'm taking each of these data points into bins whose limits are in the BinLimit array. Then I'm tabulating the number of values in each bin.
X is the array of raw data, and N is the number of data points. The number of bins desired (TotalBins) is specified by t...
So this program is supposed to estimate hourly temperatures throughout a day after being given the daily high, low and the hour which the low is expected. I am having problems calling up my functions inside the main function. I don't really understand how I am supposed to get specific information from the functions, and use it in place o...
My assignment is a Binary Search Tree derived from a Binary Tree, in my driver program this is how I've created a BST object. But I am slightly confused because I know there must be a constructor but no where in my assignment does it actually call for a constructor for the derived class.
int main() {
int x = 0;
int n = 0;
int l...
Hi Guys,
I am solving exercise problems from a book called Algorithms by Papadimitrou and Vazirani.
The following is the question:
A server has n customers waiting to be served. The service time required by each customer is known in advance: it is ti minutes for customer i. So if, for example, the customers are served in order of incr...
Hi.
I have this string:
"The quick brown f0x jumps 0ver the lazy d0g, the quick brown f0x jumps 0ver the lazy d0g.".
I need a function that will replace all zeros between "brown" and "lazy" with "o". So the output will look like this:
"The quick brown fox jumps over the lazy d0g, the quick brown fox jumps over the lazy d0g.".
So it wil...
I have a Binary Search Tree as a derived class from a Binary Tree, right now I am trying to access the root for my recursive functions (which is in the base class). But for some reason I keep getting the error:
binSTree.h:31: error: ‘root’ was not declared in this scope
Here are my class declarations:
base class:
template <class T>...