subject

Python! ! these are supposed to be basic ones so not too crazy! using codelab to enter homework answers in.1. write some code that reads in a name and an age into the variables name and age. it then prints the message "the age of name is age" on a line by itself, where name and age represent the values read into the variables name and age respectively. for example, if your code read in "rohit" and 70 then it would print out "the age of rohit is 70" on a line by itself. there should not be a period in the output.2.assume that price is an integer variable whose value is the price (in us currency) in cents of an item. write a statement that prints the value of price in the form "x dollars and y cents" on a line by itself. so, if the value of price was 4321, your code would print "43 dollars and 21 cents". if the value was 501 it would print "5 dollars and 1 cents". if the value was 99 your code would print "0 dollars and 99 cents".3.write a statement that reads a word from standard input into firstword.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 25.06.2019 04:00
Use the wrap text icon to modify which graphic appears in the front of layered images modify the picture effects change the way text is wrapped around an object apply wordart to the text
Answers: 1
You know the right answer?
Python! ! these are supposed to be basic ones so not too crazy! using codelab to enter homework...
Questions
question
Spanish, 27.09.2020 21:01
question
Mathematics, 27.09.2020 21:01
question
Social Studies, 27.09.2020 21:01
question
Mathematics, 27.09.2020 21:01
Questions on the website: 13722360