1.How do you specify values for the X-axis of a line chart in python?
2.How do you specify labels for the axes of a chart in python?
3.How do you plot multiple line charts on the same axes in python?
1.How do you show a legend for a line chart with multiple lines in python?
2.How you set a title for a chart in python?
In a game a random sentence was chosen and the players were divided into different groups. Each group was given a word from the sentence, making sure that the number of groups formed is equal to number of words in sentence. Number of players in each group corresponds to number of letters in the word given to them.
They were made to sit in a line in the order of the letters in the word. When game starts, the player should rotate left such that when sat in a line., the word formed should start with a vowel. Find final sentence formed.
Note: if no vowels, player will not rotate
Input: A boy carrying bag slipped on floor
Output: A oyb arryingc agb ippedsl on oorfl
Need correct output sir.
Anil is given a sentence s. He tries to make this sentence special. A sentence can be mads special by swapping the character with the highest frequency with character having lowest frequency in the sentence. Help anil by transfering sentence into a special sentence.
Note: upper and lower case letters are different
* If there are multiple letters with same frequency, choose lower case letter that comes earliest in dictionary order.
* If letters like X and B have same frequency consider X
If x and b have same frequency consider b.
Input: python is a programming language
Output: python is e progremming lenguega
Need correct output sir.
Writea c++program that would ask the user to enter their personal information: last name,first name, middle name, birthday, age, gender and permanent address
Create a program that will compute the salary of an employee. Salary is computed as hours worked times rate per hour. Rate is based on the inputted employee code. Consider the following:
Employee Code Rate per hour
1 100.00
2 200.00
3 350.00
4 500.00
Car repairs An owner of an auto repair shop wishes to organise his team of mechanics at the beginning of the day. To make the distribution of work equal, he organises cars with an even amount of faults into bay 1 and cars with an odd amount of faults into bay 2. There are nine cars in total Write the pseudocode for the problem, then write a Java program to separate the even and odd number of car faults. Have all even numbers displayed first, then odd numbers at the end. The repairs required for each car are as follows. 18, 14, 12, 6, 4, 21, 19, 9, 3 Hint: WHILE LOOPS and IF
Task 2: Internet traffic As a digital business analysist, you have been asked by your line manager to supply the last seven months traffic figures to your company’s website. At the moment, the traffic numbers are not in ascending order. Write the pseudocode to solve the initial problem and then write a Java algorithmic program to sort the array of given traffic figures. The traffic numbers to sort correctly are: 2, -17, 8, 26, 1, 0, 84 Hint: Bubble sort
Task 1:
Building contractor
You are developer and you wish to build five new houses, all from wood and all uniform.
Each house has 3 rooms, all with exactly the same dimensions, i.e. 2m x 4m. Wood prices
have been set at £6.00 per meter.
You need to determine the total cost of the build of all five houses. Initially, you will need
to write the pseudocode to solve the following problem, define the variable name and data
types, plus write the code to solve the total build cost.
Hint: Determine the area of each room in each house and the total area of all rooms
combined. Thus, giving the total price of the construction. in java
You are given an interface which contains an abstract method and a default method void show()to simply output a statement "This is a default method's output". You need to write a class called MyCalculator which implements the interface. While you will override divisorSum method in MyCalculator class, you need to consider that method just takes an integer as input and return the sum of all its divisors. For example divisors of 6 are 1, 2, 3 and 6, so divisorSum should return 12. The value of n will be at most 1000. You have to create a main class ( any name can be given to main class and in the main class you have to create an object of MyCalculator class using a interface variable of AdvancedArithmetic interface. Then from the main method call the divisorSum method inside a println method using the created object. Then also call the show method using the created object.