An attribute of a piece of data known as a “data type” instructs a computer system how to interpret that data's value.
What are the different type data type and their uses?Data is categorized into different types by a data type, which informs the compiler or interpreter of the programmer's intended usage of the data.
Most computer languages provide a variety of data types, including integer, real, character or string, and Boolean.
The operations that can be performed to create, alter, and use the variable in another calculation without running the risk are specified by the data type.
Knowing the various types of data makes it easier to make sure that the values of each property are as expected and that the data is gathered in the right format.
A programming language is said to be strongly typed if it only permits operations on variables that respect their data type.
Therefore, It can include string data, bool data, numeric data.
Learn more about data type here:
https://brainly.com/question/14581918
#SPJ2
Answer:
A D E
Explanation:
what are the important reason to practice Opreational Health and Safety procedure?
To prevent injury
to protect the environment
its the law you can get fined a lot of dollars
Hope you get the question right :)
7.4 Code Practice: Question 2
Adjust the code you wrote for the last problem to allow for weighted classes. Add a parameter weighted ( 1 = yes, 0 = no) and then return the correct number for the GPA. Weighted classes get one extra point on the GPA value.
I could really use some help on this and 7.5 (I’ll ask that question for 7.5 later)
def GPAcalc(grade, weighted):
grade = grade.lower()
dictionary = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}
if weighted == 1 and grade in dictionary:
return "Your GPA score is: "+str(dictionary[grade] + 1)
elif weighted == 0 and grade in dictionary:
return "Your GPA score is : "+str(dictionary[grade])
else:
return "Invalid"
print(GPAcalc(input("Input a letter grade: "), int(input("Is it weigthed? (1= yes, 0= no)"))))
I modified the code a bit to cut down on the use of if and elif statements. If you need me to change it, I will. Best of luck.
The program is an illustration of conditional statements.
Conditional statements are statements whose execution is dependent on its truth value.
The program in Python, where comments are used to explain each line is as follows:
#This initializes the dictionary
dict = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}
#This gets input for grade
grade = input().lower()
#This gets input for the weighted average
weighted = int(input())
#If the weighted average is 1, and the grade is in the dictionary
if weighted == 1 and grade in dictionary:
#This prints the GPA score
print("Your GPA score is: "+str(dict[grade] + 1))
#If the weighted average is 0, and the grade is in the dictionary
elif weighted == 0 and grade in dictionary:
#This prints the GPA score
print("Your GPA score is : "+str(dict[grade]))
#Otherwise
else:
#The grade is invalid
print("Invalid")
Read more about similar programs at:
https://brainly.com/question/19241597
What are the requirements to access email on the web?
A. a webmail provider's URL and a password
B. a webmail provider's URL a username and a password
C. a credit or debit card, a username, and a password
D. an email server ID and a password
Answer:
it's B
Explanation:
You need to have a provider (such as outlook) and a username/password
DO NOW
1. What are the 4 things that make a computer a
computer?
Answer:
CPU, GPU, Hard drive, Video Card
Explanation:
Two types of are desktop computers and notebook computer
Answer:
personal computer is the correct answer.
Two types of personal computer are desktop computers and notebook computer. Thus, option A is correct.
Today personal computer is changed to laptop mode. Personal computer is made of CPU, monitor, keyboard, printer and mouse. All input device and output device connected with wire or without wire.
Personal computers are also called as desktop or workstation. These days all become compatible device which is called as laptop. Basically all input devices and output device are fixed in laptop so end user can carry the laptop and used anywhere.
Laptop is charged and used, whereas desktop or workstation just fixed in the table and used it.
Learn more about computer on:
https://brainly.com/question/32297638
#SPJ2