[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

i hate programming, please help.......................... The

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 34
Thread images: 3

File: TJTM_ulO.png (84KB, 256x256px) Image search: [Google]
TJTM_ulO.png
84KB, 256x256px
i hate programming, please help..........................

The Payroll Department keeps a list of employee information for each pay period in a text file, The format of each line of the file is the following:

<BID>, <last name>, <first name>, <hourly wage>, <hours worked>

(this is called a CSV file, comma separated value).

<BID> is a string (it might look numeric)
<last name> is a string (it might contain spaces)
<first name> is a string (it might contain spaces)
<hourly wage> is a float
<hours worked> is an integer

Write a program that inputs a filename form the user and prints to the terminal a report of the wages paid to the employees for the given period. The report should be in tabular format with the appropriate header. Each line should contain an employee's full name (first name last name), the hours worked, and the wages paid for that period.

Use this "employees.csv" in a new window to test your program.

file includes:
123456, del rio, robert, 30.00, 24
123457, batista, olive, 20.00, 48
123434, chapper, kelly, 15.00, 50
324556, philip, zenob, 20.00, 30
674764, presum, trace, 32.50, 16
354635, magabi, hayman, 45.25, 45
>>
>>59551862
sage
>>
>>59551886
egas
>>
>>59551862
>The Payroll Department keeps a list of employee information for each pay period in a text file
why the fuck are you working for a company that does this?
>>
>>59552072
its a programming class lol
>>
>>59552072
He copied and pasted it from his homework

OP that's literally the easiest thing ever. It doesn't even require problem doing skills
>>
>>59552089
easy if you're a good programmer
i dont program ever
>>
sageegas
>>
>>59552089
i mean i worked in michelin star, i could say making a tart or homemade bread is incredibly easy . most likely would not be for someone who has no cooking skills
>>
File: Capture.png (4KB, 373x148px) Image search: [Google]
Capture.png
4KB, 373x148px
>>59552113
Here you go OP:
>>
>>59552142
i'm bored too
>>
File: 1326593017484.jpg (64KB, 500x700px) Image search: [Google]
1326593017484.jpg
64KB, 500x700px
>>59551862
You do realize there is a website where you can pass the file and generate the code you need in a myriad of languages right?

You could've done your entire stupid assignment in 2 seconds just through a file upload but you're even too incompetent to do a web search
>>
>>59552174
link me big ego
>>
>>59552184
>Using google is hard
You're beyond incompetent
>>
>>59552193
oh ok thanks, hope you're making millions of dollars and providing for your family with your competence
>>
This is easy shit. Ask the CS guys at your uni.
>>
>>59552220
due 2morrow .chipping away though . my code is gonna look retarded but as long as it gets the job done
>>
If you can't do something this simple you should just drop out of your school now and stop wasting your time and money
>>
>>59552244
agreed but i wont
>>
What language OP?

If c# or Java I can do your homework in 10min
>>
>>59552244
ps. i pay 200$ per semester
>>
>>59552257
python. thx though
>>
>>59552252
but you should
programming is fine if you love it.
if you hate it...seriously drop it asap.
>>
>>59552275
can't, gotta stay above 12 credits if i wanna keep paying 200$ per semester . murrica
>>
>>59552275
literally have a 98 as a grade in the class right now, just been working all day my brain is mush and this is due tomorrow at noon. this is intro
>>
>>59552266
Sheeeit.

Well basically you need to read line by line and delimit each line by a comma. Each string can be then assigned to a variable. After that you just do calculations for the pay and concatenate some strings. in a tabular format.

You got this dude.

I would first look up how to read a CSV in Python.
>>
>>59552292
currently reading one of those pages, thx for the guidance . all i needed
>>
>>59552142
Why the fuck in the name of the Lord would you put using namespace std; if you are NOT using nothing from std?
Why even pretend it to be c++ if you are only using c functions?
>>
>>59552334
programmers have the biggest egos online, its so lovely to see
no different from the kitchen
>>
>>59552244
this completely
OP its retards like you that make me wonder how competent the entire industry is, because there are too many of you taking CS classes and somehow passing anyway. is this the norm guys? someone fill me in
>>
>>59552399
you're not filled into anything
you're sitting isolated in a dark room doing nothing to affect the outside world. u are tricking urself into thinking ur smarter than others and thats okay my friend. *patpat*
>>
>>59552334
because a random tutorial told him so
>>
>>59552399
>Big companies become reliant on tech
>Those IT guys are damn too expensive
>Lower the costs massively by lowering the standards to the point there's massive supply of helpless retards + massive importation of pajeets
Only way out is making your own successful product, get to it my friend
>>
>>59552499
yea you guys got it rough

someone is paying your electricity though, if it isnt you. you should call your mom a retard for not knowing how to code hahaha
Thread posts: 34
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.