Code a python module

Assignment Help Basic Computer Science
Reference no: EM131716530

Code a Python module (mystdio.py) with the following function signatures:

def create3D(hCount, wCount, bCount, value=None):

def write3D(a):

def readInt3D():

def readFloat3D():

def readBool3D():Include an appropriate main() test client in your module and helpful docstrings.

2. Compose a recursive program rruler.py similar in output to ruler.py but this time taking acommand-line int argument and storing the output in a three-dimensional data structure asfollows

:$python rruler.py 1

$ [[[1]]]

$python rruler.py 2$[[[0, 0, 0], [0, 1, 0], [0, 0, 0]],[[0, 1, 0], [1, 2, 1], [0, 1, 0]], [[0, 0, 0], [0, 1, 0], [0, 0, 0]]]...and so on.

Basically, its output is a 3D structure that has the value of the command-line argument at itscenter and the remainder of the output "fanning out" literally in all directions (left, right, up,down, front and back).Use the functions of the module you created in 1 above (mystdio) in your program to achievethe desired result.

Reference no: EM131716530

Questions Cloud

Analyze the ways in which culture defines gender : Philosopher and gender theorist Judith Butler's queer theory is based on the central concept that gender is real only to the extent that it is performed.
Create a powerpoint presentation summarizing aspects : create a PowerPoint presentation summarizing each of these aspects. In addition, you will need to provide one figure of your choice that illustrates
Define the various methodologies for sociological research : Define the basic concepts used in the discipline of sociology. Define the various methodologies for sociological research.
Given a file object named output : 1. Given a file object named output, associate it with a file named year summary.txt by opening the file for appending
Code a python module : Code a Python module (mystdio.py) with the following function signatures:
What is the effect on the proletariat class : Karl Marx once referred to Religion as the opiate of the masses. I would like to hear your responses to this and what he meant exactly.
How was wundt''s psychology influenced by the preceding : How was Wundt's psychology influenced by the preceding and/or current work of the predominantly British empiricists
Screenshot of the output formatted : Please keep in mind this has to be done in Python. Also a screenshot of the output formatted would be much appreciated
Create a photo essay that depicts the struggles of americans : Research poverty in the United States on the web and create a photo essay that depicts the struggles that many Americans in the underclass.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Draw a circle with that center and radius in a component

Write a program that prompts the user to enter the x- and y-positions of the center and a radius, using JOptionPane dialogs.When the user clicks a "Draw" button, draw a circle with that center and radius in a component.

  Description of an implementation phase

What are the key activities performed in the implementation phase and how do the key activities relate?

  Implement the following finite state machine description

(Design Process) Implement the following finite state machine description using a minimum number of states and a good state assignment. The machine has a single input X, a single output Z, and will assert Z = 1 for every input sequence ending in t..

  Determine the axial distance traveled by the lead screw

A separate encoder is connected to the other end of the lead screw. The encoder generates 180 pulses/rev. What will be the number of pulses in the part(a)?

  Formulas and use functions to do calculations

For this project, pretend you're going to go on a trip to visit three places. You should have estimated costs for transportation, hotels, and meals. Create a spreadsheet to calculate the total costs for each item, total cost, and percent of the total..

  Advantages of the database approach

What are the advantages of the database approach over the traditional approach to database management? What is a data center, and why are they becoming increasingly important

  Determine current holder of a library book given isbn number

A book consists of an author, title, and ISBN number (all of which can never change once the book is created). A library book is a book that also contains.

  Write a method that takes a map as a parameter

Write a method that takes a Map as a parameter and returns a new Map in which keys and values are swapped. Throw an exception if there are duplicate values.

  Write an applet that display a picture of a pine tree

Write an applet or GUI application that display a picture of a pine tree formed by drawing a triangle on top of a small rectangle that makes up the visible.

  Describe agile dimensional modeling and its benefits

The identification of candidate data source is essential to Agile data profiling. Discuss the concept involved in the process.

  What software must be considered to provide adequate

Based on the Vosevich (2012) article, what software must be considered to provide adequate security and risk management across the enterprise?

  Advantages and disadvantages of a multi-user os

Determine whether or not Windows (e.g., Vista, 7, 8, and 10) can be considered a multi-user operating system. Provide a rationale for your response.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd