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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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