**Programming Assignment ?** Feedback ======== Exercise writeup ================ The structure of the project follows the general outline provided on the website. Part 1: HEADER ------------------------- ...text...


QuestionText
You will find your anwer in the format: '<codemax/[your answer]>'. Enter ONLY your answer.


Login|Register
NovelDao
Welcome to Orient World My Friend!
Notice!!
Website is under testing
Sorry about Everything~
Development: Version 1.2.13
Username
Password
If you don't have an account,please register one
Login|Register
Reset


Home
About us
Drive
Games
Login
Offers
T&C
Check out our collection of various flash drives
that you can pair with your favourite games!
+₹350
Swivel Orange
+₹350
Swivel Green
+₹350
Swivel Blue
+₹400
Bolt Blue
+₹400
Bolt Black
+₹400
Bolt Silver
+₹300
Stealth Lavender
+₹300
Stealth White
+₹300
Stealth Pearl
Copyright © 2021 Gamer Pizza. All rights ® reserved.


Self Test for RPless People
Test link performs all possible phases: webfinger, dynamic registration and code flow using scope openid+email.
- Webfinger<EMAIL_ADDRESS>- Username for Shibboleth Login page:teppo
- Password for Shibboleth Login page:testaaja


What's going on here...:
class Wardrobe
def initialize(type, color)
@type = type
@color = color
end
def type
@type
end
def color
@color
end
end
This is a "class" in Ruby. Did you think I was going to talk about a classy person named Ruby? NO! You Git! Heheh. This is the basic structure for class. Which is used when you want to make multiple types of object that have the same other things going on like common methods and properties.
In the example above, we start by defining the class as Wardrobe. Note that it's capitalized, unlike other things in Ruby. That sets is apart as a class.
Next is initialize, which will start up anything in that method when you create a new object of that class. Here, it takes two parameters: type and color.
The next two method definitions, type, and color, simply call back the original word that was entered. That's where we COULD get complicated and be like "Take this and split up the characters and multiply and yadda yadda..." Basically where we would manipulate things if that's what we wanted to do.
Creating a new object with this class is easy. It's the next step:
cute_new_top = Wardrobe.new("shirt", "red")
This creates a new Object named cute_new_top
that is a red shirt. Now we can call the little methods we wrote and it should give us back what put in, unchanged:
cute_new_top.type =>"shirt"
cute_new_top.color =>"red"
I fudged this a little to make it clear. The arrows show you the output of what's plugged in. There is a shortcut to this so we don't have to define all of the variables, and that's done with attr_reader. Let's rewrite the code using it:
class Wardrobe
attr_reader :type, :color
def initialize(type, color)
@type = type
@color = color
end
end
There! Much cleaner! All this does is it makes is so we can "read" the attribute by calling it like we did in the last example. There are two others we could do like this, and they are attr_writer
and attr_accessor
. The writer makes something that we can write to, and accessor does both reading AND writing. We don't always want to call up a variable or write to it, necessarily, so this provides us options that keeps everything organized. No examples for this here, but I think that's quite enough for now! Hope you had fun!


Code Wars II
Danger Level: Double
Black uu
}Musical Transposition~
Point Value: 16
Problem Statement
Some musical instruments, such as
the flute and the clarinet, require written music to be transposed for
that instrument's tuning. For instance, music for a Bb
clarinet is written 2 half steps above the actual notes. Write a
program to transpose music according to the rules in the appendix.
Program Input
The input file PROB18.IN begins with a line indicating the tuning of the target instrument. For this problem you may assume the only instrument tunings will be Bb, D and Eb. The next line specifies the key signature of the source music. The notes from the source music begin on the next line separated by white space. The program may assume that no line will be longer than 80 characters, and that the source music is written for an instrument tuned to C.
TARGET: Bb CLARINET
KEY SIGNATURE: F
A5 B5 C5 D5 E5 A6 G#5
E5 B5 D5
C#5 A5 G5 F#5 E5 F#5
D5
F5 E5 D5 C5 Bb5 A5 G4
F4 E4
F4 A6 E4 G5 D4 G5 F5
E5 D5 C5 Bb5 A5
Program Output
The program should write the transposed music to the output file PROB18.OUT. The first line should be identical to the first line of the input file, except the program should change the key word TARGET to INSTRUMENT. The second line should indicate the transposed key signature, and the notes should follow thereafter. The program should maintain the same line breaks between notes as in the input file.
INSTRUMENT: Bb CLARINET
KEY SIGNATURE: G
B5 C#5 D5 E5 F#5 B6
A#6 F#5 C#5 E5
D#5 B5 A6 G#5 F#5 G#5
E5
G5 F#5 E5 D5 C5 B5 A5
G4 F#4
G#4 B6 F#4 A6 E4 A5
G5 F#5 E5 D5 C5 B5
Appendix A: Basic Music Theory
Tranditional western music, like math, has a sophisticated written symbolic language and vocabulary. We will present a small subset here for use in solving this problem. The solution to this problem is quite simple once you understand what is being asked.
There are seven basic named notes: A, B, C, D, E, F, and G, which occur in a rotating sequence called an octave. In written music, the octave of a particular note is indicated by its position on the staff. In our shorthand notation we'll write a number after each note to indicate its octave, such as E4 or C5. The octave number is incremented each time the cycle restarts at A, so the sequence looks like this: A1, B1, C1, D1, E1, F1, G1, A2, B2, C2, D2, etc.
There are 12 half-step
intervals in each octave. The half-steps are shown in figure 1.
A whole-step interval is two half-steps, i.e., A to B or
D to E. The notes in between the basic named notes are called sharp
(#) or flat (b). The general
term for sharps and flats is accidental. When one of
the basic notes appears without an accidental, it is called a natural.
(The symbol for a natural isn't included in most standard fonts, so we
won't show it here. This symbol is rarely drawn, so for this problem
we'll assume any note without a # or b is a natural.)
Notice that there is no half-step inteval between B and C, nor between
E and F. In our notation we will write the accidental before
the octave number, i.e., G#6 means "the G sharp in octave six".
|
|
Traditional western music is written
around a certain key, which is a grouping of seven of the
twelve notes. The ordered sequence of these notes is called a scale.
The keys which we will use for this problem are shown in figure 2.
Sometimes the intermediate notes (between the basic named notes) are sometimes
referenced by the #, sometimes by the b, depending
on the key signature. This means that although G# may
be the same frequency (or pitch) as Ab, one notation
will be preferred over the other in certain circumstances. Using
these notes by way of example, if the key signature is A, the note should
be written as G#, but if the key signature is Eb,
that same note should be written as Ab.
Appendix B: Transposition
trans•pose - to alter a sequence of musical notes by a fixed interval.
As indicated in the problem statement, some musical instruments require written music to be transposed for that instrument's tuning. The instruments are often named by their tuning. For instance, a Bb clarinet produces a Bb pitch when fingered for a C. An Eb clarinet, as you might guess, produces an Eb pitch when fingered for a C. The music for these instruments must therefore be transposed appropriately. In the case of the Bb clarinet, each note must be raised by two half steps, Bb to C, D to E, etc. When music is transposed this way the key signature is also typically transposed. For the Bb clarinet the key of F would transpose up a whole step to the key of G. Music for the D clarinet must be transposed down a whole step, i.e., from the key of A to the key of G. An Eb clarinet requires music to be transposed down three half-steps, such as from the key of F to the key of D.
The transposed notes should be written
in such a way as to conform to the transposed key signature. For
all the notes that are in the key this is a simple mapping, but for notes
with accidentals outside the key it becomes trickier. The rule is
to transpose a note from its position (or interval) in the original key
to the corresponding interval in the transposed key. Let's stick
with the Bb clarinet and examine some of the possibilities:
|
key note |
key note |
comments | ||
| Bb | Gb | C | Ab | The key of C has no accidentals, so the transposed note retains the accidental of the original note. |
| G | D# | A | E# | The keys of G and A both have sharps, so D# (the 5th note in the scale) is transposed to E# (also the 5th in the scale). F is not used even though is is the same pitch as E# and may appear simpler. |
| Eb | B | F | C# | Since a B natural is a half step above the 5th note in the scale, we transpose to 1/2 step above the 5th note in F (the transposed key), to a C#. |
| F | Eb | G | F | The Eb is a half step below the 7th note in the scale, so we transpose to 1/2 step below the 7th note in G (the transposed key), to an F. |
The program may assume that the note data will not contain double-sharps
or double-flats, either in the original or transposed data. These
rare cases do sometimes occur in written music.


South Africa beats England 32-12 to win its third Rugby World Cup titl
YOKOHAMA, Japan (AP) - South Africa beats England 32-12 to win its third Rugby World Cup title .
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


SNSM 2017:
SNSM 2017 will be held in Rome, Italy on June 5 - 6, 2017.
Best Paper Award:
Two best paper awards will be conferred to author(s) of the papers that receive the highest rank during the peer-review and by the respected session chairs. Please visit Paper Submission for more information.
Propose Exhibits, Workshops & More
SNSM attracts a wide range of researchers in the field of nanotechnology. As a prominent company in the field of nanotechnology, we would like to offer you an exhibit at SNSM. Please visit Events for more information.


We are developing a web based application for Road feature extraction. This application uses machine learning classification algorithms and computer vision techniques for this process. The application, given an input image outputs the image with the roads segmented along with features such as road length.
Assistant Professor, Department of Electrical Engineering, Shiv Nadar University
Sophomore, Electronics and Communication Engineering, Shiv Nadar University
Sophomore, Computer Science Engineering, Shiv Nadar University
Sophomore, Computer Science Engineering, Shiv Nadar University


Significant quantities gold consumes dentistry: crowns and dentures made of alloys gold with silver, copper, nickel, platinum, zinc. Such alloys combine corrosion resistance with high mechanical properties.


So you want to go on a vacation, but don't know where to go. Well, you've come to the right place!
This site will suggest your next ideal vacation destination based on your responses to a series of questions.
Get ready to find your next perfect vacation destination! Please answer the following questions
Belize is a democratic, English and Spanish speaking nation, once known as British Honduras. The weather is mild, the beaches are spectacular, the history is rich, and yes, it is a land of swaying palm trees and colorful sunsets.
Following the link about will provide plenty of information on inportant topics, such as, weather, currency, popular activities and other useful travel information.
Clickhere to go to Belize.Rockaway Beach is well known for having seven miles of sandy shoreline, which is why it is one of the most popular vacation destinations of the Oregon coast.
Following the link about will provide plenty of information on inportant topics, such as, weather, popular activities, calendar of upcoming events and other useful travel information.
Click here to go to Rockaway Beack, Oregon.Switzerland is a mountainous Central European country, home to numerous lakes, villages and the high peaks of the Alps.
Following the link about will provide plenty of information on inportant topics, such as, weather, currency, popular activities and other useful travel information.
Clickhere to go to Switzerland.


We act as environment, urban and animal rights-based intermediary for free exchange of stuffs; contributing to the efficient use of resources, excessive and unnecessary anti-consumption recycling platform.
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>The weekly works will be shown here.
You have something in your mind or something went wrong?
You can text us by clicking the links below.


|
Package pit_admin Package to administer PIT. Provides methods to create or maintain messages. |
| Program units |
| merge_message_group | |
| delete_message_group | Procedure to delete a message group |
| merge_message | |
| delete_message | |
| delete_all_messages | |
| merge_translatable_item | Procedure to create a or change a translatable item |
| delete_translatable_item | Procedure to create a or change a translatable item |
| get_message_text | |
| set_language_settings | |
| create_message_package | |
| create_named_context | |
| create_named_context | |
| remove_named_context | |
| create_context_toggle | |
| delete_context_toggle | |
| create_installation_script | Method to get items of a group as a script of API calls to PIT_ADMIN package |
| get_installation_script | Method to get items of a group as a script of API calls to PIT_ADMIN package |
| translate_message | |
| create_translation_xml | |
| get_translation_xml | Method to directly create a translation XLIFF file and return it as CLOB |
| apply_translation | |
| delete_translation | |
| register_translation |
| Constants |
| c_level_le_warn | |
| c_level_le_info | |
| c_level_le_debug | |
| c_level_le_all | |
| c_trace_le_off | |
| c_trace_le_mandatory | |
| c_trace_le_optional | |
| c_trace_le_detailed | |
| c_trace_le_all | |
| C_TARGET_PMS | |
| C_TARGET_PTI | |
| C_TARGET_PAR |
c_level_le_warn
c_level_le_warn constant boolean := TRUE;
c_level_le_info
c_level_le_info constant boolean := TRUE;
c_level_le_debug
c_level_le_debug constant boolean := TRUE;
c_level_le_all
c_level_le_all constant boolean := TRUE;
c_trace_le_off
c_trace_le_off constant boolean := TRUE;
c_trace_le_mandatory
c_trace_le_mandatory constant boolean := TRUE;
c_trace_le_optional
c_trace_le_optional constant boolean := TRUE;
c_trace_le_detailed
c_trace_le_detailed constant boolean := TRUE;
c_trace_le_all
c_trace_le_all constant boolean := TRUE;
C_TARGET_PMS
C_TARGET_PMS constant pit_util.ora_name_type := 'PMS';
C_TARGET_PTI
C_TARGET_PTI constant pit_util.ora_name_type := 'PTI';
C_TARGET_PAR
C_TARGET_PAR constant pit_util.ora_name_type := 'PAR';
merge_message_group
Procedure merge_message_group(p_pmg_name in pit_message_group.pmg_name%TYPE, p_pmg_description in pit_message_group.pmg_description%TYPE default null)
delete_message_group
Procedure delete_message_group(p_pmg_name in pit_message_group.pmg_name%TYPE, p_force in boolean default false)
Procedure to delete a message group
| Usage |
|
Is used to delete a message group. Does not delete a message group if messages exists within that group, unless specified by setting the P_FORCE parameter to TRUE. Will not commit nor re-create the MSG package. |
| Parameters |
| p_pmg_name |
Name of the message group | |
| [p_force] |
Flag to indicate whether deleting this group should delete all messages of this group Standard: FALSE: If messages exists, an error is thrown |
merge_message
Procedure merge_message(p_pms_name in pit_message.pms_name%TYPE, p_pms_text in pit_message.pms_text%TYPE, p_pms_pse_id in pit_message.pms_pse_id%TYPE, p_pms_description in pit_message.pms_description%TYPE default null, p_pms_pmg_name in pit_message_group.pmg_name%TYPE default null, p_pms_pml_name in pit_message_language.pml_name%TYPE default null, p_error_number in pit_message.pms_custom_error%TYPE default null)
delete_message
Procedure delete_message(p_pms_name in pit_message.pms_name%TYPE, p_pms_pml_name in pit_message_language.pml_name%TYPE default null)
delete_all_messages
Procedure delete_all_messages(p_pmg_name in pit_message_group.pmg_name%TYPE default null)
merge_translatable_item
Procedure merge_translatable_item(p_pti_id in pit_translatable_item.pti_id%TYPE, p_pti_pml_name in pit_message_language.pml_name%TYPE, p_pti_pmg_name in pit_message_group.pmg_name%TYPE, p_pti_name in varchar2, p_pti_display_name in varchar2 default null, p_pti_description in clob default null)
Procedure to create a or change a translatable item
| Usage |
|
Is used to create or change a translatable item. Any item may have up to three different text items assotiated with it to allow for short, medium and longer versions of a text item. |
| Parameters |
| p_pti_id |
ID of the translatable item | |
| p_pit_pml_name |
Language of the translatable item | |
| p_pti_pmg_name |
Message group of the translatable item | |
| p_pti_name |
Text of the translatable item | |
| [p_pti_display_name] |
Optional display name of the translatable item | |
| [p_pti_description] |
Optional description of the translatable item |
delete_translatable_item
Procedure delete_translatable_item(p_pti_id in pit_translatable_item.pti_id%TYPE)
Procedure to create a or change a translatable item
| Usage |
|
Deletes a translatable item and all its translations. |
| Parameters |
| p_pti_id |
ID of the translatable item |
get_message_text
Function get_message_text(p_pms_name in pit_message.pms_name%TYPE, p_pms_pml_name in pit_message_language.pml_name%TYPE default null) return varchar2
set_language_settings
Procedure set_language_settings(p_pml_list in pit_util.max_sql_char)
create_message_package
Procedure create_message_package(p_directory varchar2 default null)
create_named_context
Procedure create_named_context(p_context_name in varchar2, p_log_level in number, p_trace_level in number, p_trace_timing in boolean, p_module_list in varchar2, p_comment in varchar2 default null)
create_named_context
Procedure create_named_context(p_context_name in varchar2, p_settings in varchar2, p_comment in varchar2 default null)
remove_named_context
Procedure remove_named_context(p_context_name in varchar2)
create_context_toggle
Procedure create_context_toggle(p_toggle_name in varchar2, p_module_list in varchar2, p_context_name in varchar2, p_comment in varchar2 default null)
delete_context_toggle
Procedure delete_context_toggle(p_toggle_name in varchar2)
create_installation_script
Procedure create_installation_script(p_pmg_name in pit_message_group.pmg_name%TYPE, p_target in varchar2, p_file_name out nocopy pit_util.ora_name_type, p_script out nocopy clob)
Method to get items of a group as a script of API calls to PIT_ADMIN package
| Usage |
|
Call this method to create a script file that can be used to export all items of this particular group as a SQL script file. |
| Parameters |
| p_pmg_name |
Message group to filter output | |
| p_target | Type of items to translate C_TARGET_PMS | C_TARGET_PTI | C_TARGET_PAR | |
| p_file_name |
Out parameter that provides the file name for the Script file | |
| p_script |
Out parameter that contains the SQL script created |
get_installation_script
Function get_installation_script(p_pmg_name in pit_message_group.pmg_name%TYPE, p_target in varchar2) return clob
Method to get items of a group as a script of API calls to PIT_ADMIN package
| Usage |
|
Call this method to create a script file that can be used to export all items of this particular group directly from SQL. |
| Parameters |
| p_pmg_name |
Message group to filter output | |
| p_target | Type of items to translate C_TARGET_PMS | C_TARGET_PTI | C_TARGET_PAR |
| Returns |
|
CLOB instance with the installation script |
translate_message
Procedure translate_message(p_pms_name in pit_message.pms_name%TYPE, p_pms_text in pit_message.pms_text%TYPE, p_pms_pml_name in pit_message_language.pml_name%TYPE, p_pms_description in pit_message.pms_description%TYPE default null)
create_translation_xml
Procedure create_translation_xml(p_target_language in pit_message_language.pml_name%TYPE, p_pmg_name in pit_message_group.pmg_name%TYPE default null, p_target in varchar2, p_file_name out nocopy pit_util.ora_name_type, p_xliff out nocopy xmltype)
get_translation_xml
Function get_translation_xml(p_target_language in pit_message_language.pml_name%TYPE, p_pmg_name in pit_message_group.pmg_name%TYPE default null, p_target in varchar2) return clob
Method to directly create a translation XLIFF file and return it as CLOB
| Usage |
|
Use this method to directly create a translation XLIFF file from SQL. |
| Parameters |
| p_target_language |
Oracle supported language name to tranlsate the items to | |
| p_pmg_name |
Group to filter the items to translate | |
| p_target | Type of items to translate C_TARGET_PMS | C_TARGET_PTI |
| Returns |
|
CLOB in format XLIFF to be opened and edited by an XLIFF-Editor |
apply_translation
Procedure apply_translation(p_xliff in xmltype, p_target in varchar2)
delete_translation
Procedure delete_translation(p_pml_name in pit_message_language.pml_name%TYPE, p_target in varchar2)
register_translation
Procedure register_translation(p_pml_name in pit_message_language.pml_name%TYPE)