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

  Students with the multiple collaboration tools available

The purpose of this assignment is to familiarize students with the multiple collaboration tools available.

  What is the binary number which represents a decimal

What is the binary number which represents a decimal 4 and If a digital system has 5 inputs, how many possible input combinations are there?

  List and describe the stages in decision making

ist and describe the different decision­making levels and groups in organizations and their decision making requirements.

  Design a user interface to address issue

How would you design a user interface to address this issue?

  What is the alternative hypothesis

How could you lower the probability of a Type I error and increase the power of the test at the same time?

  Why will this help a computer system perform better

Why will this help a computer system perform better? When a spec says 16 cores and 32 threads, what does it mean to say 32 threads?

  How much these two factors are underrun

What would be the result if all project managers decided to withhold a management reserve? What criteria should be used for determining when a management reserve is necessary?

  Technologies dependent on the use of cryptography

How are biometric technologies dependent on the use of cryptography?

  Participation in the world trade organization

In your opinion, do you believe the United States' participation in the World Trade Organization (WTO) is positive or negative for American businesses? What are your thoughts on the benefit and challenges of the raft of legal obligations imposed o..

  Vulnerabilities or exploits on the technologies above

In the assessment, Zeus Books has requested that you provide three known exploits on the following products and the solutions to mitigate any possible attacks.

  Dtermine whether the implementation of hypervisors has an

a hypervisor is computer hardware platform virtualization software that allows multiple different operating systems os

  What is the device number of the host adapter

You have just upgraded your system to a Fast and Wide SCSI interface. This system has a floppy disk, a CD-ROM, and five 8-gigabyte fixed disks. What is the device number of the host adapter? Why?

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