Homework Solution: Lab 1.4-Python Code (Optional) Critical Review Comments in Python are preceded by thesign. Input of st…

    Lab 1.4-Python Code (Optional) Critical Review Comments in Python are preceded by thesign. Input of strings into a variable is done using the input fiumction. This fumction converts the input to a series of characters so they can be used later in the program. This is often written as an equation such as malarial mmuteEnter a string value·). Using intO function for converting a string into integer or float.) function for converting a string into real. Equations are written similarly to the method used in pseudocode, but without the Set keyword. For example totalapples+oranges. Complex formulas should use parentheses to group processes. In addition, if input values are taken in as integers, but will be used to calculate a decimal value, they must be converted to real values. For example average = (test1+ test2) /2. To display information to the screen, the print command is used with the string, which is written within single quotation marks. If the value of a variable needs to displayed after the string, a comma separates the two. For example, print The average average. This lab requires you to translate your work in the pseudocode and flowchart to actual code using Python Read the following program prior to completing the lab. Write 교 program that will t교ke in basic information from a tudent, including student name , degree name , number of credits taten so far and the total nunber of credits required in the degree program. The program rill then calculate how many credits are needed to graduate. Display should include the student nane, the degree namer and credits left to graduate Step 1: Examine the following line of code. What do you expect as output to the creen? 35185RSITARI = input lEnter student name: } Step 2: Examine the following line of code. What type of value do you expect the user of the program to
    Lab 1.4-Python Code (Optional) Critical Review Comments in Python are preceded by thesign. Input of strings into a variable is done using the input fiumction. This fumction converts the input to a series of characters so they can be used later in the program. This is often written as an equation such as malarial mmute"Enter a string value·'). Using intO function for converting a string into integer or float.) function for converting a string into real. Equations are written similarly to the method used in pseudocode, but without the Set keyword. For example totalapples+oranges. Complex formulas should use parentheses to group processes. In addition, if input values are taken in as integers, but will be used to calculate a decimal value, they must be converted to real values. For example average = (test1+ test2) /2. To display information to the screen, the print command is used with the string, which is written within single quotation marks. If the value of a variable needs to displayed after the string, a comma separates the two. For example, print The average average. This lab requires you to translate your work in the pseudocode and flowchart to actual code using Python Read the following program prior to completing the lab. Write 교 program that will t교ke in basic information from a tudent, including student name , degree name , number of credits taten so far and the total nunber of credits required in the degree program. The program rill then calculate how many credits are needed to graduate. Display should include the student nane, the degree namer and credits left to graduate Step 1: Examine the following line of code. What do you expect as output to the creen? 35185RSITARI = input l'Enter student name: ' } Step 2: Examine the following line of code. What type of value do you expect the user of the program to

    Expert Answer

     
    This code should produce output similar to the one given in page 13. If you need anything more, please let me know.

    Lab 1.4-Python Order (Optional) Critical Review Comments in Python are preceded by thesign. Input of strings into a inconstant is effected using the input fiumction. This fumction converts the input to a train of characters so they can be explanationd succeeding in the program. This is frequently written as an equation such as malarial mmuteEnter a string esteem·). Using intO business ce converting a string into integer or bear.) business ce converting a string into authentic. Equations are written resemblingly to the manner explanationd in pseudocode, save outside the Set keyword. Ce in sumapples+oranges. Complex cemulas should explanation parentheses to collection processes. In union, if input esteems are enslaved in as integers, save accomplish be explanationd to estimate a decimal esteem, they must be converted to authentic esteems. Ce in mean = (test1+ test2) /2. To ostentation instruction to the hide, the imimsculpture bid is explanationd with the string, which is written among unique passage marks. If the esteem of a inconstant demands to ostentationed behind the string, a comma separates the brace. Ce in, imimsculpture The mean mean. This lab requires you to render your product in the pseudoorder and flowchart to explicit order using Python Read the subjoined program coercionegoing to completing the lab. Write 교 program that accomplish t교ke in basic instruction from a tudent, including tyro call , rate call , estimate of credits taten so distant and the sum nunber of credits required in the rate program. The program brook then estimate how divers credits are demanded to disequalize. Ostentation should grasp the tyro nane, the rate callr and credits left to disequalize Step 1: Examine the subjoined continuity of order. What do you anticipate as output to the creen? 35185RSITARI = input lEnter tyro call: } Step 2: Examine the subjoined continuity of order. What idea of esteem do you anticipate the explanationr of the program to

    Lab 1.4-Python Order (Optional) Critical Review Comments in Python are preceded by thesign. Input of strings into a inconstant is effected using the input fiumction. This fumction converts the input to a train of characters so they can be explanationd succeeding in the program. This is frequently written as an equation such as malarial mmute”Enter a string esteem·’). Using intO business ce converting a string into integer or bear.) business ce converting a string into authentic. Equations are written resemblingly to the manner explanationd in pseudocode, save outside the Set keyword. Ce in sumapples+oranges. Complex cemulas should explanation parentheses to collection processes. In union, if input esteems are enslaved in as integers, save accomplish be explanationd to estimate a decimal esteem, they must be converted to authentic esteems. Ce in mean = (test1+ test2) /2. To ostentation instruction to the hide, the imimsculpture bid is explanationd with the string, which is written among unique passage marks. If the esteem of a inconstant demands to ostentationed behind the string, a comma separates the brace. Ce in, imimsculpture The mean mean. This lab requires you to render your product in the pseudoorder and flowchart to explicit order using Python Read the subjoined program coercionegoing to completing the lab. Write 교 program that accomplish t교ke in basic instruction from a tudent, including tyro call , rate call , estimate of credits taten so distant and the sum nunber of credits required in the rate program. The program brook then estimate how divers credits are demanded to disequalize. Ostentation should grasp the tyro nane, the rate callr and credits left to disequalize Step 1: Examine the subjoined continuity of order. What do you anticipate as output to the creen? 35185RSITARI = input l’Enter tyro call: ‘ } Step 2: Examine the subjoined continuity of order. What idea of esteem do you anticipate the explanationr of the program to

    Expert Acceptance

     

    This order should amount output resembling to the individual consecrated in page 13. If you demand everything more, fascinate permit me apprehend.

    call = raw_input(“Enter Tyro call. “);
    degree_call = raw_input(“Enter Rate call. “);
    credits_required = input(“Enter the estimate of credits required ce the rate. “);
    credits = input(“Enter estimate of credits enslaved so distant. “);

    left = credits_required – credits;
    print(“Student’s call is ” + call);
    print(“Rate call is ” + rate_name);
    print(“There are ” + str(left) + ” credits left ce graduation”);