write a java program for you are given a string representing a sequence of N arrows,each pointing in one of the four cardinal directions:up(^),down(v),left(<),right(>) . write a function solution that,given a string S denoting the direction of the arrows,returns the minimum number of arrows that must be rotated to make them all point in the same direction.
Briefly explain what an array is. As part of your answer make use of a labelled example to show the declaration and components of an array Note: You will receive 4 marks for your explanation and 6 marks for your labelled example.
dentify the purpose and the components of the method represented in the pseudocode below:
Consider the following pseudocode, then write the pseudocode for mainline logic that contains the elements required in Q.4.3.1 to Q.4.3.3.
identify the purpose and components of the method represented in the pseudocode below:
num calAverage(num total)
declarations
num average
set average = total/2
return average
identify the purpose and components of the method represented in the pseudocode below:
num calcAvarage(num total)
declarations
num avarage
set avarage = total/2
return avarage
Create a pseudocode that will demonstrate how an application will write your name and surname to a text file called “Students.dat”
Write the pseudocode that will populate an array of type string with data. The array is called dogBreeds and the following values must be loaded: Labrador, Poodle, Terrier, Spanniel, Doberman.
Create the pseudocode that will demonstrate how an application will write your name and surname to a text file called “students.dat”
Jane wants to become a doctor. If Jane obtains an average of 90% for Maths in her final exams, she will be admitted to the qualification, however, if she obtains an average of more than 85% but less than 90% for Maths and an overall average of 90% for all her subjects she will still be able to study medicine but will have to complete a BSc degree first.
Q.3.1.1 Write the pseudocode that will accurately reflect the logic contained in the above scenario.