Filename: Surname _MP7.m Objectives Use correct data types to handle input data. Implement input validation. Design and implement appropriate selection statement. Validate user input. Compile and address syntax and logic errors. Problem Statement "The Twelve Days of Christmas" is a cumulative song, meaning that each verse is built on top of the previous verses. There are twelve verses, each describing a gift given by "my true love" on one of the twelve days of Christmas....and so forth, until the last verse: 2 3 5 9 1 2 6 Geese-a-Laying 5 Gold Rings 4 Colly Birds 3 French Hens¹7] 2 Turtle Doves And a Partridge in a Pear Tree. IL Create a program that accepts a number in range 1-12 and display the corresponding verse of the song "The Twelve Days of Christmas. ". Validate user input and display appropriate message. 3 4 6 5 10 7 Criteria 8 11 12 On the twelfth day of Christmas, my true love gave to me.. 12 Drummers Drumming 11 Pipers Piping 10 Lords-a-Leaping 9 Ladies Dancing 8 Maids-a-Milking 7 Swans-a-Swimming Score Sheet Output displays : Student Number - SN, FN,MI at the top center of the screen Intelligent naming of variables and program comments Solution validates user input and displays appropriate message Solution displays output at the center of the user screen Solution displays correct output values 10 20 10 10 50 Total 100 Score □10000

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

This is a task that needs to be done in matlab 

Filename: Surname _MP7.m
Objectives
Use correct data types to handle input data. Implement input validation. Design and implement appropriate
selection statement. Validate user input. Compile and address syntax and logic errors.
Problem Statement
"The Twelve Days of Christmas" is a cumulative song, meaning that each verse is built on top of the previous
verses. There are twelve verses, each describing a gift given by "my true love" on one of the twelve days of
Christmas.... and so forth, until the last verse:
2
3
5
9
1
2
3
4
6
5
10
7
And a Partridge in a Pear Tree.
Create a program that accepts a number in range 1-12 and display the
corresponding verse of the song "The Twelve Days of Christmas. ". Validate user input and display appropriate
message.
Criteria
11 12
8
On the twelfth day of Christmas, my true love gave to me..
12 Drummers Drumming
11 Pipers Piping
10 Lords-a-Leaping
9 Ladies Dancing
8 Maids-a-Milking
7 Swans-a-Swimming
6 Geese-a-laying
5 Gold Rings
4 Colly Birds
3 French Hens(7)
2 Turtle Doves
Score Sheet
Output displays : Student Number - SN, FN,MI at the top center of the
screen
Intelligent naming of variables and program comments
Solution validates user input and displays appropriate message
Solution displays output at the center of the user screen
Solution displays correct output values
10
20
10
10
50
Total 100
Score
☐☐
Transcribed Image Text:Filename: Surname _MP7.m Objectives Use correct data types to handle input data. Implement input validation. Design and implement appropriate selection statement. Validate user input. Compile and address syntax and logic errors. Problem Statement "The Twelve Days of Christmas" is a cumulative song, meaning that each verse is built on top of the previous verses. There are twelve verses, each describing a gift given by "my true love" on one of the twelve days of Christmas.... and so forth, until the last verse: 2 3 5 9 1 2 3 4 6 5 10 7 And a Partridge in a Pear Tree. Create a program that accepts a number in range 1-12 and display the corresponding verse of the song "The Twelve Days of Christmas. ". Validate user input and display appropriate message. Criteria 11 12 8 On the twelfth day of Christmas, my true love gave to me.. 12 Drummers Drumming 11 Pipers Piping 10 Lords-a-Leaping 9 Ladies Dancing 8 Maids-a-Milking 7 Swans-a-Swimming 6 Geese-a-laying 5 Gold Rings 4 Colly Birds 3 French Hens(7) 2 Turtle Doves Score Sheet Output displays : Student Number - SN, FN,MI at the top center of the screen Intelligent naming of variables and program comments Solution validates user input and displays appropriate message Solution displays output at the center of the user screen Solution displays correct output values 10 20 10 10 50 Total 100 Score ☐☐
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education