ASCII Birthday Cake - MATLAB Cody - MATLAB Central

Problem 44380. ASCII Birthday Cake

Difficulty:Rate

Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string with the following (no trailing spaces)

   6 6 6 6 6
   | | | | |
 __|_|_|_|_|__
{             }
{             }
{    CODY     }
{             }
{_____________}

This uses the string datatype, not a char array.

Solution Stats

18.32% Correct | 81.68% Incorrect
Last Solution submitted on Feb 26, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers222

Suggested Problems

More from this Author56

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page