Can anyone help me make a java program using slabs of the following data?
use a simple if else ladder it should work.
Java program using if statement using slab system?
If statement in Java: http://www.homeandlearn.co.uk/java/java_if_else_statements.html
How do you know that your student didn't copy code from the Internet?
That's a great question. And the next question is: why would you care?One of the smartest people I know used to write his programs when he was getting his computer science degree by looking through the trash cans in the computer lab, taking the discards from people who'd attempted to solve certain problems, fixing the mistakes, then handing them in.When he told me that story I was scandalized at first. But then I realized that he had the right idea – why reinvent the wheel? – he spent probably a fourth of the time the other guys or girls spent on assignments, learned everything he needed, and was free to have a life. He was independently wealthy by time he was 30 --having invented a software product which he sold for a lot of money. [Edit: I'm not talking about copying somebody's entire code, but borrowing other peoples solutions, improving them, and putting them together to make your own solution to the problem]The assignments in many computer science courses are nonsense anyway – the professors are 5 years behind (often). And "standing on the shoulders of giants" comes highly recommended. I think, and I may be wrong – let's see what QUORA thinks – that plagiarism in coding is just Smart practice, and not the same as plagiarizing an essay or a poem? Words and Pictures (2013)
Do developers memorize all tags, classes and functions? I'm trying to figure out the thinking system of a frontend developer or a developer in general. Does a developer memorize all those things, or do they use cheat sheets or refer to documentation?
I started to learn programming 8 years ago. I am now a software developer in C++ and I do at a professional level for 3 years.Few days ago I just Google'd "printf format specifiers" (can't use streams, don't ask, long story) to see how the hell I can put some numbers in a string. Even though I did it countless times during my life. Is like one of the first things you learn in C.I also forget the name of classes or services I use almost daily. Or my source control password. I forget what kind of algorithms STL provides or commonly used commands.Really, I am just plain bad when it comes to memorizing. But I don't consider myself a bad developer because of this. Part of my bad memory is also because I don't actually try to memorize those. I prefer to memorize things that actually improve the quality of my work.Sure, you'll get used and learn some of the syntax you use, but even if you forget or can't remember some, just find it. Look in the documentation or whatever. So if I were you I would not worry a single second about memorizing stuff. Worry about understanding.
Can any one give a real life example of if-else and nested if-else?or any others like switch cases ?
if-else firstif(traffic signal is red)stopelse gonested if elseif(traffic signal red && getting late){ if(go) loose your wallet, bribe required(fine) mama chhupke khada hai else you will get late}elsego