Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Computer science and programming

Rating
-
Sold
-
Pages
1
Grade
A+
Uploaded on
27-04-2023
Written in
2020/2021

This document is meant for those who are interested in computer science and programming but have no idea where to start

Institution
Course

Content preview

This note is meant for those who are interested in computer science and programming but have no idea
where to start and have little to no background information on coding. We 'll be working our way up as
we talk about common features of computer science such as loops and arrays. There will be no software
required for you to download in order to follow along with this tutorial. We are feeding information on
how to complete a program like a game or a web application.Programming is n't as simple as giving your
friend instructions. The computer only understands machine code, which is a numerical language known
as binary. Every instruction fed to the computer is converted into a string of ones and zeros and then
interpreted by the computer to carry out tasks. There are many different programming languages out
there that each have their own unique uses.We measure a programming languages power by how
similar it is to machine code. The lower the level of your programming language, the more your code will
resemble what the machine can interpret as instructions. This makes programming languages extremely
useful and the backbone of any good program.

IDs nowadays act as sort of a fast track to writing code and make things a whole lot easier for
programmers. IDs are extremely powerful and will be used in almost 100 % of your programming
projects. Each programming language has its own syntax or rules that you must follow to a tee if you
want your program to run correctly. All these languages require that you follow this syntax because
computers are extremely dumb. If you forget one semi colon or misplace a character, the entire
program will not run and send you back a syntax error. Even in this simple example, you can see how
much a syntax matters when learning a new language. It 's recommended that you learn the rules and
syntax of a language before writing complex programs.The console is a text interface within your
computer that us programmers can use for a variety of different purposes. The main use of the console
is to output text from the program. This is usually done by using a print statement. A print statement is a
command that does exactly what it sounds like. It prints text to the console.

The console is not really meant to be viewed by the end user of your program. It tends to be hidden
away behind the scenes and other methods of displaying information are used to convey information to
the user instead. Remember to use the console to its fullest extent when writing and fixing problems in
your programs.Most programming languages include an additional operator known as modulus.
Modulus allows us to get the remainder of a divisional operation. This can be extremely useful in
determining whether or not a certain integer is even or odd. We 'll cover more about strings in a bit
when we talk about variables. We of course begin with a print statement , which again will be different
across all languages. Inside the print statement, we start off by printing the string game over. From
there, we use a plus sign and add four to the statement. Then we repeat this process with another plus
sign for the final string was your final score. And we 're able to print out the entirety of our statement
easily.

Written for

Course

Document information

Uploaded on
April 27, 2023
Number of pages
1
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.89
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
hazikkhan

Get to know the seller

Seller avatar
hazikkhan
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions