• Q : Print these numbers on a student summary report....
    Python Programming :

    A file of student records contains name, sex (M or F), age (in years) and marital status (single or married) for each student. Design and algorithm that will read through the file and calculate the nu

  • Q : Write a python function main to compute the two roots....
    Python Programming :

    Write a Python function main() to compute the two roots. You should input a,b and c from keyboard, and then print the two roots. Assume the discriminant D= b2-4ac is positive. That is, you do not need

  • Q : Write a simple python atm program....
    Python Programming :

    Write a simple Python ATM program. Ask the user to enter their account number, and then print their beginning balance. (Just make one up). 

  • Q : How to write this function in python....
    Python Programming :

    ParseElement(elementString) takes a string of the 'SymbolCount' in such as 'H2', and return a tuple of the form (Symbol, count) such as ('H', 2)

  • Q : Python is straightforward to parse....
    Python Programming :

    Unusually among programming languages, Python is straightforward to parse. In fact, it is one of the few popular programming languages with an LL(1) grammar, making it amenable to hand-written recursi

  • Q : Implement a very simple chat server in python....
    Python Programming :

    Implement a very simple chat server in python to interconnect two clients. The server listens on port 61617. As soon as it has two active clients, it sends whatever it receives from the clie

  • Q : Write python functions to calculate area....
    Python Programming :

    Write Python functions to calculate area and circumference of a circle. you can assume the user provides you with the radius. Test your functions. 

  • Q : Write a python function that accepts a string....
    Python Programming :

    Write a Python function that accepts a string argument and return its reverse and also, write a Python function to calculate and print the GCD of two numbers. See Euclidean_algorithm for more informat

  • Q : What is a list in python programming language....
    Python Programming :

    What is a list in python programming language?

  • Q : Data file you created called tempfile.txt and display....
    Python Programming :

    Write a Python program that will read a list of temperatures from a data file you created called tempfile.txt and display the highest two temperatures. For example

  • Q : Write a python program that will read a list of temperatures....
    Python Programming :

    Write a Python program that will read a list of temperatures from a data file you created called tempfile.txt and display the highest two temperatures. For example

  • Q : Object oriented programming python....
    Python Programming :

    We would like to model a mug/cup as a cylindrical vessel with an open top. The mug will have a fixed total capacity (the volume of a cylinder, C=PI*r**2*h), and at any given time a certain amount of l

  • Q : Write a python class that represents book objects....
    Python Programming :

    Write a Python class that represents book objects. A book has title, author(s), and year published. Implement appropriate constructor, getters (methods that can get fields, i.e., title, author(s), and

  • Q : Input data pairs until the sentinel value....
    Python Programming :

    The program will continue to input data pairs until the sentinel value -1 is read. At that point the program should output the batting average for each of the nine positions. (Note: Batting

  • Q : Return a random social security number....
    Python Programming :

    Write a Python procedure, call it ss(), that will return a random social security number xxx-xx-xxxx with the following restrictions: The first digit cannot be a zero, neither of the middle two digits

  • Q : The new drawing program that you will write....
    Python Programming :

    The new drawing program that you will write will draw a blue pentagon at the position of every left mouse click, and a red triangle at the position of every right mouse click in python.

  • Q : In python''s interactive mode, store the value -5....
    Python Programming :

    In Python's interactive mode, store the value -5 in the variable x and the value 2.2 in the variable y for the following exercise: use the following y as input into the int() function. What is the out

  • Q : This is a simple prototype program to predict....
    Python Programming :

    This is a simple prototype program to predict the trajectory of a projectile under ideal conditions. You may assume that the projectile will have a constant velocity as it travels and that the only ou

  • Q : How do you use python''s turtle module....
    Python Programming :

    How do you use python's turtle module to draw a blue pentagon at the position of each left click and and a red triangle at every right mouseclick ? 

  • Q : When we write code in class they make....
    Python Programming :

    When we write code in class they make us seperate it into different functions. It starts with a main(): then maybe something such as golf_Scores():, and so on as mmuch as needed.how add those seperate

  • Q : United states and canada....
    Python Programming :

    Directions: "99 Bottles of Beer" is a traditional song in the United States and Canada. It is popular to sing on long trips, as it has a very repetitive format which is easy to memorize, and can take

  • Q : Describe similarities and differences between copying....
    Python Programming :

    Consider the following Python code segment, which uses built-in Python lists and NumPy lists to perform similar operations, albeit with differing results.

  • Q : Pixel in the image, get its red, green, and blue values....
    Python Programming :

    Define a Python function named mutate (), that takes a picture img as its argument. For each pixel in the image, get its red, green, and blue values, then replace the pixel by swapping its red and blu

  • Q : Game that implements a number guessing game....
    Python Programming :

    Write a GUI class Game that implements a number guessing game. The GUI should start by choosing a random number between 1 and 100 (using a function from the random module) and then opening up a GUI wh

  • Q : Write a recursive function rvowels() that accepts....
    Python Programming :

    Write a recursive function rvowels() that accepts a character string and counts and returns the number of vowels (aeiou) in the string. This solution should not include any loops. A global variable fo

©TutorsGlobe All rights reserved 2022-2023.