Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hi teacher. i need your help. please help me Write your own library that can generate random characters and words using the Python programming language.

hi teacher. i need your help. please help me

Write your own library that can generate random characters and words using the Python programming language. This library is not an executable program but should be a class library. You should provide the randomness yourself, not with the ready-made functions that python provides. Then, write a test program and add this library to your program and show that it includes all the features and works correctly. The expected test is a detailed test. In other words, if a character is to be produced, 100 "a character" must be produced and written on the screen so that it can be tested whether it is produced randomly. The library you will write should contain the following features. The name of the class must be Random_Character. A single character can be produced as well as a specified number of characters (max int length). must be produced. Whichever characters come between the given two characters in alphabetical order. a random or specified number of characters must be generated. Random sentences should be produced. What is meant by the sentence here is not a meaningful sentence, it is left to your imagination. One or the specified number of characters should be able to be produced among the specified characters. Each of the above desired features should be thought of and written as a separate function (functions should not be written so that I can write a function, functions should do their job). Every time functions are called, they should not be generated according to the rule but according to a certain rule or in a predictable way. A few examples to help: Random Character: a Random Character: p 3 Random Characters: Lhr 3 Random Characters: yuE Given two characters (a,k): b Given two characters (a,k): hj Specified Characters(g,y,u,c,n,e): e Specified Characters(g,y,u,c,n,e): u Specified Characters(g,y,u,c,n,e): cg Sentence: " fsb qoga aslzns olgpyie."

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions