Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for meli123

hey all..if I have a 5 files in PDF named PDF1, PDF2, PDF3, PDF4, PDF5 I want to create a program that renames them to project 1, project 2, project 3, project 4, project 5 import os,sys namelist=['jon', 'leon', 'david', 'nombre',] for filename in os.listdir("C://YOUR/PATH/HERE/"): os.rename(filename, namelist.pop()) print "succesfuly renamed" …

Member Avatar for snippsat
0
110
Member Avatar for meli123

[CODE]// bintodec.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> using namespace std; int main(){ string inp; int dec = 0; char base; cout << "Input a number: "; cin >> inp; cout << "Input the base your number is in: "; …

Member Avatar for D33wakar
0
79
Member Avatar for meli123

Hey guys Im trying to create a code where: input A: number Input B: Base Print: Decimal form I am going to use algorithm where u do following: NUMBER % BASE but it would do it the number of times that the base is.. so if its 6 (base 2) …

Member Avatar for doug65536
0
112
Member Avatar for meli123

can someone please give me some basic code sample using MOD op for decimal to binary up to BASE 10 ty ex. input 110 base 2 print 6

Member Avatar for Taywin
0
276
Member Avatar for meli123

Ok so for this assignment I have to have integer input in string and convert to integer..done: [CODE]int n, digit; cout << "Enter a number: "; cin >> snum; n = 0; int power = pow(10, snum.length()-1); for (int i=0; i<snum.length(); i++) { digit = snum.at(i) - '0'; n = …

Member Avatar for WaltP
0
143
Member Avatar for meli123

hey alll..I posted earlier on needing help for a code on input #..base..print decimal form..I actually didnt learn this in high school so thats why I was having so much trouble :@ Now that I read up and understand the logic in bases..I was thinking that for my code I …

Member Avatar for VernonDozier
0
149
Member Avatar for meli123

hey all!! I recently got this new laptop [URL="http://shop.lenovo.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/catalog.workflow:item.detail?GroupID=243&Code=085525U"]http://shop.lenovo.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/catalog.workflow:item.detail?GroupID=243&Code=085525U[/URL] Id like to get a cooler since I use computer a lot. I see a lot of em at tigerdirect but unsure of which one to get. Recommendations!! ty!! *sorry if I posted in wrong section

Member Avatar for jingda
0
70
Member Avatar for meli123

heyy all :)) So im working on a new piece of code here..take into consideration that I love while loops and that's what I really want to use! so here is how the program would go read: # then read: base print: decimal representation thanksss :))

Member Avatar for Taywin
0
103
Member Avatar for meli123

[CODE]int m, n, pow; cout << "Enter m and n: "; cin >> m >> n; pow = 1; for (int i=1; i<=n; i++) pow = pow * m; cout << m << "^" << n << " = " << pow << endl; return 0; }[/CODE] I dont get …

Member Avatar for tkud
0
102
Member Avatar for meli123

BOOL is basically pretty intuitive.. my question: [CODE]#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { double cost, finalPrice; bool type; type=true; //taxable cout << "Enter price: "; cin >> cost; if (type) finalPrice = cost*1.07 ; else finalPrice = cost; cout << "Final price: " …

Member Avatar for mrnutty
0
93
Member Avatar for meli123

heyyy guysss....just trying to make a code to proove .999=1 any ideass?? :)) ty!!

Member Avatar for doug65536
-1
265
Member Avatar for meli123

heyy all..I am really confused on the MOD (%) operator and how it is processed.. [CODE]int n; cout << "Enter n: "; cin >> n; for (int i=1; i<=n; i=i+1) if ( (i % 2) == 0) //even cout << "-"; else //odd cout << "^"; [/CODE] What exactly is …

Member Avatar for NathanOliver
0
89
Member Avatar for meli123

I would like to make a program which allows you to enter a number (say 145). It reads the 3 CHAR and prints the largest one. I can make it to compare integers but where I am lost is how to compare characters in a single 145 (example) input so …

Member Avatar for TrustyTony
0
294
Member Avatar for meli123

[CODE]#include <iostream> using namespace std; int main() { char a, b, c, d, e, f, max; cout << "enter a b c: "; cin >> a >> b >> c >> d >> e >> f; max = a; if(b>max) max = b; if (c>max) max = c; if (d>max) …

Member Avatar for murnesty
0
201
Member Avatar for meli123

Ok so I played around with this for a while and it works..but I wana know the logic [CODE]#include <iostream> using namespace std; int main() { int number; int max = 0; cout << "enter number: "; cin >> number; while (number !=0) { if ((number % 10)> max) //rem …

Member Avatar for Anirudh Rb
0
264