[SOLVED] programming

I’m studying for my Computer Science class and need an explanation.

Struggling to find relevant content or pressed for time? – Don’t worry, we have a team of professionals to help you on
[SOLVED] programming
Get a 15% Discount on this Paper
Order Now
  1. Write a recursive function that prints all permutations of the characters in a string. Your program is to prompt the user with “$>$ ” (note the blank space after the “$>$”). The user then enters a string of letters or digits or both, and the program lists the permutations. It then reprompts the user for a new string. It continues doing this until the user enters either a blank line or types an end-of-file (control-D as the first character).
    Here is an example. The user types what is in red type; what the computer types is in black type. The “%” is a shell prompt. The “?” means the user typed return or enter (or otherwise entered a newline). Your listing of the permutations need not be in the same order, but it must include all permutations of the input.
    > 123?
    123
    231
    312
    132
    213
    321
    > ab?
    ab
    ba
    > ?
    

    To turn in: Put this program into a file called permute.c; turn it in as directed below.

  2. (30 points) Throughout the rest of the term, we will build a program to play the game of life, devised by John Conway. It uses a board that is a two-dimensional rectangle divided into small, equal-sized squares. Each square may be populated or unpopulated. The neighbors of a cell are the cells that adjoin it vertically, horizontally, or diagonally.
    At each step, the following transformations are applied to all the cells.
    1. If a populated cell adjoins less than 2 other populated cells, or more than 3 populated cells, it becomes unpopulated.
    2. If a populated cell adjoins 2 or 3 populated cells, it remains populated.
    3. If an unpopulated cell adjoins exactly 3 populated cells, it becomes populated.

    As a first step, you will read the dimensions of the board from the standard input. This will be given as two integers separated by an “x” (the 24th letter of the alphabet) and possibly white space before and after the numbers and the “x”. Your output is to be a square composed of “-”es and “|”es. If the numbers read are “2 x 8”, your square should enclose a 2×8 rectangle. The inside of the rectangle is to be blank.
    To turn in: Put this program into a file called life.c; turn it in as directed below. If you want to submit two files, that is, have this in a separate file, call the main one life.c and the other file(s) readrectn.c, where n is a single digit (for example, readrect0.c). Turn it in as described below.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
s
Get personalized services with MyCoursebay
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
Criminal Justice
Impressive! Will be using the service again.
Customer 452485, December 5th, 2021
Human Resources Management (HRM)
Thanks for your assistance.
Customer 452701, November 9th, 2022
Social Work and Human Services
Excellent Work
Customer 452587, November 22nd, 2021
Social Work and Human Services
Great Job!
Customer 452587, October 27th, 2021
DISCUSSION D SCIENCE 210
GREAT
Customer 452813, June 28th, 2022
Social Work and Human Services
Great Work!
Customer 452587, October 13th, 2021
Professions and Applied Sciences
Amazing work!
Customer 452707, May 29th, 2022
Human Resources Management (HRM)
Thanks for your support.
Customer 452701, May 10th, 2023
Nursing
Writer did an excellent job! Thank you.
Customer 452693, January 14th, 2022
English 101
The paper was late. However, it was excellent quality.
Customer 452561, July 2nd, 2021
Nursing
Everything was done thoroughly and with care. Awesome job!!!
Customer 452453, April 10th, 2021
Nursing
Great work. thank you again!
Customer 452707, August 7th, 2022
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat

Good News ! We now help with PROCTORED EXAM. Chat with a support agent for more information

NEW

Thank you for choosing MyCoursebay. Your presence is a motivation to us. All papers are written from scratch. Plagiarism is not tolerated. Order now for a 15% discount

Order Now