CS1112 Spring 2014 Project 3 Part a Objectives 1 the Flag of Uzbekistan

Total Page:16

File Type:pdf, Size:1020Kb

CS1112 Spring 2014 Project 3 Part a Objectives 1 the Flag of Uzbekistan CS1112 Spring 2014 Project 3 Part A due Thursday 3/6 at 11pm (Part B will appear in a separate document. Both parts have the same submission deadline.) You must work either on your own or with one partner. If you work with a partner you must first register as a group in CMS and then submit your work as a group. Adhere to the Code of Academic Integrity. For a group, “you” below refers to “your group.” You may discuss background issues and general strategies with others, but the work that you submit must be your own. In particular, you may discuss general ideas with others but you may not work out the detailed solutions with others. It is not OK for you to see or hear another student’s code and it is certainly not OK to copy code from another person or from published/Internet sources. If you feel that you cannot complete the assignment on you own, seek help from the course staff. Objectives Completing this project will solidify your understanding of user-defined functions and vectors. Part 1 focuses on user-defined functions and graphics; Part 2 additionally involves vectors. 1 The Flag of Uzbekistan Look up the flag of Uzbekistan. You will probably find some images as well as the philosophy of the flag (the meaning of the colors, crescent, and stars), but the actual positions and sizes of the stars and crescent are not specified. (Or at least I cannot find the specification in English.) You will make several visualizations of the flag by rotating the stars. However, the sizes and positions of the elements of the flag should be similar to the typical images of the flag that you see, an example of which is shown on the right. Using one figure window, you will show four visualizations of the Uzbek flag, one in each quadrant: Top left All the stars have a point due north (as shown in the image above). Top right Each star in the top row has a point due north; each star in the middle row has a point due east; each star in the bottom row has a point due south. 2π Bottom left For k = 1, 2,..., 12, the kth star has a point at k 12 radians. It’s up to you how to number the stars, but the 12 angles must be represented. Bottom right Make your own design regarding the rotation of the stars, but this visualization must be different from the previous three. Specifics and hints 1. Start by reading Insight §5.3 (The Betsy Ross flag) first—it’ll help you with this problem! 2. Download the m-files DrawRect.m and DrawStar.m from the Insights page of the course website and DrawDisk.m from the Lecture Materials page. Study them to make sure that you know how they work. These functions draw the specified shape with a black outline. In order to draw the flag of Uzbekistan, you need to modify these functions to draw the colored shapes without a black outline. This can be done simply by modifying the last statement in each file, which calls the built-in function fill, to be fill(x,y,c,’line’,’none’) Do this for DrawRect and DrawDisk and change the function names (and therefore filenames) to be DrawRectNoBorder and DrawDiskNoBorder. You will deal with DrawStar separately later. 3. By making effective use of DrawRectNoBorder and DrawDiskNoBorder, implement the following function as specified: 1 function DrawBackground(a,b,h) % Add all elements of the Uzbek flag except the stars to the current window. % The lower left corner of the flag is at (a,b). % The flag has height h and width 2h. % Assume hold is on. The dimensions of the flag elements should be expressed in terms of the parameters. For instance, do not hard code the height of the white bar of the flag to be some fixed literal value; instead, set the height in terms of h, e.g., something like h/3 or smaller. A note on color: We have been using Matlab’s prespecified color names, e.g., ’r’ for red. Instead of using a color name, we can specify the exact color vector, e.g., DrawDisk(0,0,1,[1 0 0]) will draw a red disk because the “rgb vector” [1 0 0] specifies red (full contribution of red, zero green and blue). Take a look at this webpage that shows color swatches and their corresponding rgb val- ues: http://prideout.net/archive/colors.php The last column of the table shows the values that should go into the rgb vector. Pick colors that are reasonably close to those of the Uzbek flag. 4. Modify DrawStar and save it as the function DrawRotatedStar. The original DrawStar draws a 5-pointed star that has one star tip due North and has this specification: function DrawStar(xc,yc,r,c) % Adds a 5-pointed star to the current window. % Assumes hold is on. % The star has radius r, center (xc,yc) and color c where c is either an rgb vector % or one of the built-in colors ’r’, ’g’, ’y’, ’b’, ’w’, ’k’, ’c’, or ’m’. Your function DrawRotatedStar should have a fifth parameter for the “clock point” expressed in radi- ans. Be sure to (re)write the function header and comments to match your function. For example, the command DrawRotatedStar(0,0,1,’y’,pi/2) should draw the same star produced by the command DrawStar(0,0,1,’y’). [Hint: All you need to do is to change the coordinates of the vertices by rotation. Think angle.] Finally, revise the function call to fill to exclude the black outline. 5. Write a function FlagDesigns to draw the four visualizations of the flags in one figure window, as described above. This function sets up the figure window and draws the flags by calling your func- tions DrawBackground and DrawRotatedStar, as well as any subfunctions that you may wish to define. FlagDesigns has no input parameters, so the function header should be function FlagDesigns() Normally, a function with no parameters could have been written as a script instead. However, we want to allow you to specify subfunctions if you wish. Therefore FlagDesigns.m needs to be a function file and not a script. (Only a function file can contain subfunctions; a script cannot contain subfunctions.) Submit your files DrawBackground.m, DrawRotatedStar.m and FlagDesigns.m only. We will use our ver- sions of DrawRectNoBorder and DrawDiskNoBorder when we test your code. Part B of Project 3 will appear in a separate document. 2.
Recommended publications
  • Middle East 1 Middle East
    Middle East 1 Middle East Middle East Map of the Middle east. (Green color) Countries 18–38 (varying definitions) Languages Middle East: Arabic, Aramaic, Azerbaijani, French, Greek, Hebrew, Kurdish, Persian, Somali, Turkish Greater Middle East: Arabic, Armenian, Azerbaijani, Balochi, Berber, Dari, French, Greek, Georgian, Hebrew, Kurdish, Pashto, Persian, Somali, Tigrinya, Turkish, Urdu Time Zones UTC +3:30 (Iran) to UTC +2:00 (Egypt) (traditional definition) Largest Cities In rank order: Istanbul, Cairo, Tehran, Baghdad, Riyadh, Jeddah, Ankara The Middle East[1] is a region that roughly encompasses Western Asia. The term is considered to be Eurocentric and used as a synonym for Near East, in opposition to Far East. The corresponding adjective is Middle-Eastern and the derived noun is Middle-Easterner. The largest ethnic group in the middle east are Arabs,[2] with Turks, Turkomans, Persians, Kurds, Azeris, Copts, Jews, Maronites, Assyro-Chaldeans, Circassians, Armenians, Druze and numerous other ethnic groups forming other significant populations. The history of the Middle East dates back to ancient times, and throughout its history, the Middle East has been a major center of world affairs. When discussing ancient history, however, the term Near East is more commonly used. The Middle East is also the historical origin of major religions such as Judaism, Christianity, and Islam as well as the less common Baha'i faith, Mandaeism, Druze faith and others. The Middle East generally has an arid and hot climate, with several major rivers providing for irrigation to support agriculture in limited areas, especially in Mesopotamia and the rest of the Fertile Crescent. Many countries located around the Persian Gulf have large quantities of crude oil, which has resulted in much wealth particularly for nations in the Arabian peninsula.
    [Show full text]
  • Flags and Banners
    Flags and Banners A Wikipedia Compilation by Michael A. Linton Contents 1 Flag 1 1.1 History ................................................. 2 1.2 National flags ............................................. 4 1.2.1 Civil flags ........................................... 8 1.2.2 War flags ........................................... 8 1.2.3 International flags ....................................... 8 1.3 At sea ................................................. 8 1.4 Shapes and designs .......................................... 9 1.4.1 Vertical flags ......................................... 12 1.5 Religious flags ............................................. 13 1.6 Linguistic flags ............................................. 13 1.7 In sports ................................................ 16 1.8 Diplomatic flags ............................................ 18 1.9 In politics ............................................... 18 1.10 Vehicle flags .............................................. 18 1.11 Swimming flags ............................................ 19 1.12 Railway flags .............................................. 20 1.13 Flagpoles ............................................... 21 1.13.1 Record heights ........................................ 21 1.13.2 Design ............................................. 21 1.14 Hoisting the flag ............................................ 21 1.15 Flags and communication ....................................... 21 1.16 Flapping ................................................ 23 1.17 See also ...............................................
    [Show full text]
  • The National Flag of the Republic of Uzbekistan Is a Right-Angled Coloured Cloth Consisting of Three Horizontal Stripes: Blue, White and Green
    O’zbekiston Respublikasi Oliy va O’rta Maxsus Ta’lim Vazirligi Farg’ona Politexnika Instituti “Tillar kafedrasi ” “English in Topics ” students’ reference book Institut uslubiy kengashi tomonidan tasdiqlangan bayonnoma № _ “ ”____2011 yil Farg’ona -2011 1 Introduction The present guide book has been prepared, basically as practical book for the students of the first and second courses of technical faculties. Reference book contains as practical exercises on the main parts of morphology. It offers students students an opportunity to develop grammatically correct written and oral speech. Reference book cantinas grammar exercises on such themes as: usage of tense forms modal verbs, verbs , adjectives the noun kafedra yig’ilishida tasdiqlangan “___”_____2011yil bayonnoma № __ MIF uslubiy kengashida tavsiya etilgan Tuzuvchi: O’qituvchi: Hamidova S Taqrirchi: Tillar kafedrasi 2 CONTENTS 1. National Flag of the Republic of Uzbekistan……………………………...4 2. The State Emblem of the Republic of Uzbekistan………………………..4-5 3. The Constitution of the Republic of Uzbekistan…………………………5-6 4. Uzbekistan………………………………………………………………..6-7 5. Tashkent………………………………………………………………….7-8 6. Samarkand………………………………………………………………..8-9 7. Seasons…………………………………………………………………….10 8. Holidays in Uzbekistan…………………………………………………….11 9. Navruz…………………………………………………………………….11-12 10. Preservation of the environment…………………………………………13 11. Youth Today…………………………………………………………….. 14 12. Alisher Navoi…………………………………………………..15 13. My Day Off………………………………………………………………16 14. My Future Profession……………………………………………………16-17
    [Show full text]
  • Convention Against Torture and Other Cruel, Inhuman Or Degrading Treatment Or Punishment Contents Paragraphs Page Abbreviations
    United Nations CAT /C/UZB/4 Convention against Torture Distr.: General 29 February 2012 and Other Cruel, Inhuman English or Degrading Treatment Original: Russian or Punishment Committee against Torture Consideration of reports submitted by States parties under article 19 of the Convention Fourth periodic report of States parties due in 2011 Uzbekistan *, **, *** [29 December 2011] * The third periodic report submitted by the Government of Uzbekistan is contained in document CAT/C/UZB/3; it was considered by the Committee at its 789th and 792nd meetings held on 9 and 12 November 2007 (see CAT/C/SR.789 and CAT/C/SR.792). ** In accordance with the information transmitted to States parties regarding the processing of their reports, the present document was not formally edited before being sent to the United Nations translations services. *** Annexes can be consulted in the files of the Secretariat. GE.12-41126 (E) 030912 080912 CAT/C/UZB/4 Fourth periodic report of the Republic of Uzbekistan on the implementation of the Convention against Torture and Other Cruel, Inhuman or Degrading Treatment or Punishment Contents Paragraphs Page Abbreviations .................................................................................................................................... 3 I. Introduction ............................................................................................................. 1–43 4 II. Information relating to individual articles of the Convention against Torture and Other Cruel, Inhuman or Degrading Treatment or
    [Show full text]
  • Historiography and State Administration in Uzbekistan
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Siberian Federal University Digital Repository Journal of Siberian Federal University. Humanities & Social Sciences 1 (2013 6) 93-109 ~ ~ ~ УДК 930.23:342.5 Historiography and State Administration in Uzbekistan Dr. Suneel Kumar* Department of Strategic and Regional Studies, University of Jammu Jammu-180006-Jammu and Kashmir, India 1 Received 09.01.2013, received in revised form 16.01.2013, accepted 23.01.2013 This article explains how the state administration in Uzbekistan is using historiography as an instrument for diverse objectives consist of legitimization of its political authority among common masses, establishing the country as a great power and achieving its geopolitical ambitions. The author argues that new historiography is anti-Soviet in nature, aimed at the erosion of Soviet past, constructing the myth of lengthy freedom struggle, depicting Tamerlane as a national hero and establishing the Uzbek President Islam Karimov as brave leader equiseta to Tamerlane. Subjective construction, deconstruction and reconstruction of historical events are the prime features of new historiography of post-Soviet Uzbekistan. Though, this might be a source of legitimacy for the Karimov regime and helpful to get recognition for Uzbekistan as a great power, but it has its adverse consequences in the domestic circles as well as in the foreign affairs which could be seen in the form of validation of Karimov’s authoritarianism, emergence of anti-Russian feelings and the imperialistic geopolitical designs of Uzbekistan in Central Asia. Keywords: Karimov, distortion, construction, deconstruction, reconstruction, historiography, Soviets, Russians, Uzbeks, Tamerlane.
    [Show full text]
  • ENGLISH for Law Students Ministry of Justice of Th^ Republic of Uzbekistan Tashkent State Law Institute
    Т. К. SATTAROV ENGLISH for Law Students Ministry of Justice of th^ Republic of Uzbekistan Tashkent State Law Institute Т. K. SattarOy ENGLISH for Law Students (fir s t y e a r , se c o n d e d itit>n^ Tashkent-2004 T.K.Sattarov. English for Law Students The textbook English for Law Students has been approved and recommended as a textbook for law students by the Ministry of Higher and Secondary Special Education of the Republic of Uzbekistan. English for Law Students is for students studying law. It consists of 16 units based on legal topics. The selected topics have been designed so as to progress from generally introductory matters to the constitutions, legislative, executive and judicial bodies of Uzbekistan, the UK and the USA. Each unit contains linguistic material, conversational phrases, texts for both skimming and scanning, exercises and topical vocabulary. The textbook teaches four basic skills of language: listening, speaking, reading and writing. © T.K.Sattarov 2004. © Tashkent State Law Institute 2004. 3 Preface English is widely used in the legal profession. The people in legal professions use English for study, for work (present and future), for promotion and for recreation. They have to use it in speaking, listening comprehension, skimming and scanning, writing and translating activities in various official and nonofficial situations. This book is a part of the production of the author’s project English for Law Students sponsored by the Morley foundation at the English Language Institute, the University of Michigan. The book consists of 16 units each which are based on special topics.
    [Show full text]
  • Uzbekistan Newsletter.Pub
    His Excellency February 2018 BakhƟyor Ibragimov Permanent Representave to the WHO WE ARE United Naons from Uzbekistan The Office for Global Engage- ment acvely supports UVU’s global efforts by advancing UVU’s presence and presge in the Internaonal community; The new Permanent Representa- Coordinaon of Acvity of Over- helping UVU students become ve of Uzbekistan to the United seas Consular Offices, having pre- globally competent graduates; Naons, Bakhyor Ibragimov, viously served as First Secretary. promong cultural literacy and presented his credenals to UN diversity both on campus and in Mr. Ibragimov graduated from the community. Secretary-General António Gu- Tashkent Economic University in terres in May 2017. 1989, and completed diplomac Unl his latest appointment, Mr. courses at the Instute of Diplo- Ibragimov was Deputy Chief of macy and Internaonal Relaons Mission at his country’s Embassy in Kuala Lumpur, Malaysia, be- in Seoul, Republic of Korea, since tween 1992 and 1993. CONTACT US 2011, holding the rank of Polical He is married and has two chil- Office for Global Engagement Counsellor. Between 2009 and dren. LA111p 2011, he was the Director, United States and Americas Affairs De- 800 West University Parkway partment, at the Ministry of For- MS 124 eign Affairs, a post he previously Orem, UT 84058 held from 2003 to 2004. Phone: 801-863-8897 A career diplomat, Mr. Ibragimov E-mail: [email protected] was appointed Polical Counsel- www.uvu.edu/intlaffairs lor and Deputy Chief of Mission at Uzbekistan’s Embassy in Wash- ington, D.C., serving between 2004 and 2009. He was previous- ly Third Secretary at the Embassy, between 1993 and 1995.
    [Show full text]
  • The Flag of Uzbekistan Is the Light of Our Nation
    TOSHKENT IRRIGATSIYA VA QISHLOQ XO'JALIGINI MEXANIZATSIYALASH MUHANDISLARI INSTITUTI The flag of Uzbekistan is the light of our nation November 18 - The Day of the National Flag of the Republic of Uzbekistan.The law "On the National Flag of the Republic of Uzbekistan" was adopted on November 18, 1991, at the 8th session of the Supreme Council of the Republic of Uzbekistan. The national flag and its symbol represent a historic connection to the ancient states on the borders of today's Uzbekistan and embody the national and cultural traditions of the republic. The color blue on the flag is a symbol of the eternal sky and the water of life that reflects the essence of life. In the symbolic language, it means goodness, wisdom, honesty, glory and devotion. Consequently, the color of the Amir Temur flag was blue. The white color on the flag is a symbol of holy peace that coincides with the daylight and the cosmic lights. White is a symbol of purity, purity, purity, the purity of dreams and dreams, and the pursuit of inner beauty. Green is a symbol of nature's renewal. It is a symbol of youth, hope and joy in many nations. The red lines represent the streams of life force flowing through our bodies. The image of the young crescent connected with our historical traditions. It is also a symbol of our independence. The stars are a spiritual, divine symbol for all. The image of the 12 stars on the National Flag of the Republic of Uzbekistan also directly related to our historical traditions and ancient chronicles.
    [Show full text]
  • Economic and Social Change in Post-Soviet Rural Uzbekistan
    Zurich Open Repository and Archive University of Zurich Main Library Strickhofstrasse 39 CH-8057 Zurich www.zora.uzh.ch Year: 2012 Economic and social change in Post-Soviet rural Uzbekistan Sancak, Meltem Posted at the Zurich Open Repository and Archive, University of Zurich ZORA URL: https://doi.org/10.5167/uzh-76101 Dissertation Published Version Originally published at: Sancak, Meltem. Economic and social change in Post-Soviet rural Uzbekistan. 2012, University of Zurich, Faculty of Arts. Economic and Social Change in Post-Soviet Rural Uzbekistan Th e s i s presented to the Faculty of Arts of the University of Zurich for the degree of Doctor of Philosophy by Meltem Sancak February Contents Introduction . Searching for the Field Site .................... . Objective of the Study ....................... . The Uzbek Way of Transformation ................ . Theoretical Considerations ..................... . Methods ............................... Ecological Setting and Historical Background . The State of Uzbekistan ...................... . The Oasis of Bukhara ........................ . The Ferghana Valley ........................ Changes in Property Rights . Introduction ............................. . Collectivisation and the Socialist Organisation of Agriculture .. . The Founding of Shirkat: from Engels to Guliston ........ . Fermer : Privatising the Uzbek Way ................ . Different Types of Private Plots .................. . Access to Water ........................... Economic Strategies: How to make a Living
    [Show full text]
  • Uzbekistan Newsletter.Pub
    His Excellency February 2017 Muzaffarbek A. Madrakhimov WHO WE ARE Permanent Representave to the The Office of Internaonal United Naons from Uzbekistan Affairs & Diplomacy acvely supports UVU’s global engage- ment efforts by advancing UVU’s presence and presge in Until his appointment as the from 1996 until 1998. the Internaonal community; helping UVU students become new Permanent Representative Mr. Madrakhimov holds a of Uzbekistan to the United globally competent graduates; master’s degree in transporta- promong cultural literacy and Nations, Mr. Madrakhimov tion management from Tash- served as Deputy Chief of Mis- diversity both on campus and in kent Automobile and Road the community. sion at his country’s Embassy Construction Institute, and a in Washington, D.C., since bachelor’s degree in interna- 2010. He was Executive As- tional relations from the Uni- sistant to the Minister for For- versity of World Economy and eign Affairs between 2007 and Diplomacy, both in Uzbeki- 2010. stan. CONTACT US Prior to that, he was First Sec- He was born in Tashkent in Office of Internaonal Affairs retary at Uzbekistan’s Embassy 1972, he is married and has LA111f in Tokyo, Japan, from 2004 to four children. 800 West University Parkway 2007, and headed the Secretari- at of the Foreign Ministry in MS 263 Orem, UT 84058 Tashkent from 2003 until 2004. He also held the posi- Phone: 801-863-7191 tions of Third and then Second E-mail: [email protected] Secretary in the Ministry’s De- www.uvu.edu/intlaffairs partment of European Coun- tries, between 2000 and 2003; Attaché in Washington, D.C., from 1998 to 2000; Assistant to the First Deputy Minister for Foreign Affairs; and Attaché in the Office of the Minister, both INTERESTING FACTS ABOUT Uzbekistan Once part of the Turkic Khaganate and THE FLAG OF later Timurid Empires, the region that Uzbekistan today includes the Republic of Uzbeki- stan was conquered in the early 16th century by Eastern Turkic-speaking no- mads.
    [Show full text]
  • The Truth in Our Stars the Symbolism Behind Their Use in Flags
    The Truth in our Stars The Symbolism Behind Their Use in Flags by Amy Langston Abstract Stars may be the most commonly used geometric figure used on flags. Because of this distinction, they hold an important place not only in vexillology, but also in the field of symbology in general. In this paper, I explore the meaning of this symbolism and its frequency, then further detail the symbolism for the stars in flags used around the world. I also address how the properties of the stars relate to their symbolism, including the color, number of stars, number of points, arrangement, positioning within the flag, and other matters such as their political, mythical, and religious significance. This paper is an expanded version of a presentation delivered at NAVA 46 in 2012. Introduction Stars are one of the most common geometric symbols used today in vexillology. Among United Nations member states alone, nearly 45% of flags feature at least one star. They are also common in symbolism elsewhere; we see them on stickers, the Hollywood Walk of Fame, apparel, and furnishings. As such, addressing their signifi - cance, importance, and symbolism in flags is a highly relevant area of study. Why stars? Why are stars so frequently used in flags? - They are highly symbolic. Stars can be used to symbolize nearly anything. They have become a default symbol to stand for any desired value or object of impor - tance. Not only that, but the stars carry symbolism by themselves, namely a reminder of the celestial bodies, and the divinity they represent, that have served as fascination to humans for millennia.
    [Show full text]
  • M. Egamberdiyev *, D. Taldybayeva IDENTITY PERCEPTION in CENTRAL ASIA and NATION-STATE BUILDING: CASE of UZBEKISTAN
    ISSN 1563-0269, еISSN 2617-8893 Journal of history. №3 (98). 2020 https://bulletin-history.kaznu.kz IRSTI 03.91.00 https://doi.org/10.26577/JH.2020.v98.i3.03 M. Egamberdiyev *, D. Taldybayeva Al-Farabi Kazak National University, Kazakhstan, Almaty, *e-mail: [email protected] IDENTITY PERCEPTION IN CENTRAL ASIA AND NATION-STATE BUILDING: CASE OF UZBEKISTAN The Central Asian states since their independence in 1991 became the area of interest of regional studies of International Relations. The fact that the Central Asia is a “heartland” of in the geopolitical sense as it was defined by the English geopolitical expert G. Mackinder, its location in the so-called “World Island” and as well as its geographical location are the main factors determining the place of the region in international relations system. The nations living in the region of Central Asia, which were dominated by the great empires in history, has experienced a number of difficulties during the transition period of the post-Cold War era such as nation building, national identity perception and state building. It is important to understand the difference between the national identity perception of Kazakhstan, Kyrgyzstan, Uzbekistan, Turkmenistan and Tajikistan, which were imposed externally during Soviet times, and the national identity concept they acquired with independence. In particular, it is a serious necessity in terms of regional integrity and security to examine the factors that are important in the state building process in Uzbekistan. Key words: Central Asia, Identity, Nation, Nation-State Construction. М. Эгамбердиев*, Д. Талдыбаева Әл-Фараби атындағы Қазақ ұлттық университеті, Қазақстан, Алматы қ., *e-mail: [email protected] Орталық Азия және ұлттық құрылыс мәселелерінде бірегейліктің қабылдануы: Өзбекстан мысалында 1991 жылы тәуелсіздік алғаннан бастап, Орталық Азия мемлекеттері халықаралық қаты- настарды аймақтық зерттеуге қызығушылық тудырғаны тарихтан белгілі.
    [Show full text]