[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.
Application Letters
Well written essay, will definitely use this service in the future.
Customer 452773, April 14th, 2022
Human Resources Management (HRM)
Great Work!
Customer 452767, November 18th, 2022
Nursing
Not all sources were " American sources" as directed
Customer 452615, September 16th, 2021
Education
Thank you so much for all the help, I really appreciate it!
Customer 452631, November 3rd, 2021
Human Resources Management (HRM)
The paper was good but they writing the paper labeling me as a Registered Nurse and I have express this several time so o had to go in make corrections
Customer 452901, April 8th, 2024
Wellness
The skilled writer did a GREAT job!! Amazing .Thank you!
Customer 452547, June 16th, 2021
Medicine
This has everything that was in the rubric. Thank you!
Customer 452707, May 29th, 2022
English 101
thank you
Customer 452483, February 27th, 2021
Other
GREAT
Customer 452813, September 20th, 2022
Human Resources Management (HRM)
Thank you
Customer 452701, September 15th, 2023
Human Resources Management (HRM)
Thanks for your time.
Customer 452701, September 10th, 2023
Nursing
thank you
Customer 452881, October 22nd, 2023
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