Computers and Technology

Write multiple if statements. If car_year is 1969 or earlier, print "Few safety features.". If 1970 or later, print "Probably hasseat belts.". If 1990 or later, print "Probably has antilockbrakes.". If 2000 or later, print "Probably has airbags." End eachphrase with a period and a newline. Ex: car_year = 1995 prints:Probably has seat belts. Probably has antilock brakes.

car_year = 1964

"’ Your solution goes here "’

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 18:20, mshepherdmiller
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number. write a recursive java method that implements this algorithm. it will accept a value of int and return a string with the appropriate binary character representation of the decimal number. my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
image
Computers and Technology, 25.06.2019 03:30, eamber646
Which task should happen during the planning stage of a project
Answers: 2
image
Computers and Technology, 25.06.2019 05:10, mathbrain58
Write a program that asks for 'name' from the user and then asks for a number and stores the two in a dictionary (called 'the_dict') as key-value pair. the program then asks if the user wants to enter more data (more data (y/n)? ) and depending on user choice, either asks for another name-number pair or exits and stores the dictionary key, values in a list of tuples and prints the list. note: ignore the case where the name is already in the dictionary. example: name: pranshu number: 517-244-2426 more data (y/n)? y name: rich number: 517-842-5425 more data (y/n)? y name: alireza number: 517-432-5224 more data (y/n)? n [('alireza', '517-432-5224'), ('pranshu', '517-244-2426'), ('rich', '517-842-5425')]
Answers: 3
image
Computers and Technology, 25.06.2019 08:00, shadowangel84
Is skill in using productivity software, such as word processors, spreadsheets, database management systems, and presentation software. computer literacyinformation literacybusiness literacynetwork literacy
Answers: 1
Do you know the correct answer?
Write multiple if statements. If car_year is 1969 or earlier, print "Few safety features.". If 1970...

Questions in other subjects:

Konu
Computers and Technology, 07.05.2020 03:59
Konu
Spanish, 07.05.2020 03:59