Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a Math Class will perform the basic functions (+, -, *, /). Write two classes the SimpleCalculator and ScientificCalculator that will inherit the Math class.

 

Write specific methods, attributes to the classes and show the results.



You are given a positive integer N. Your task is to find the number of positive integers K <= N such that K is not divisible by any of the following numbers 2, 3, 4, 5, 6, 7, 8, 9, 10.

int(inpu)t=,11,12,200,10


Business rules for hairdressers:

1. All entities should have surrogate primary keys.

2. Each hairdresser can work at multiple different salons over time, and every salon employs many different hairdressers.

3. The job title of a hairdresser at a specific salon must be stored in the database.

4. The name and surname of each hairdresser must be stored in the database.

5. The name of each salon must be stored in the database.

6. Every hairdresser is certified to have several different skills, and each skill can be mastered by many different hairdressers.

7. The name of each skill must be stored in the database.

8. The date that a specific hairdresser was certified to have a specific skill must be stored in the database. 


# Method: Write levelsList to levelsFile (override the existing file)

 def writeLevelsToFile(self):

 # Open the file in a way that will override the existing file (if it already exists)

 ...

 # Use a loop to iterate over levelsList item by item

 ...

# Convert everything in the item to a string and then add \n to it - before writing it to the file

...

 # Close the file

 ...

#Replace all ellipsis with applicable code

The media company "GlobalAd" has received a
batch of advertisements from different product
brands. The batch of advertisements is a
numeric value where each digit represents the
number of advertisements the media company
has received from different product brands.
Since the company banners permit only even
numbers of advertisements to be displayed, the
media company needs to know the total
number of advertisements it will be able to
display from the given batch.
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.
Input
The input consists of an integer batch,
representing the batch of advertisements
Output
Print an integer representing the total number
of advertisements that will be displayed by the
media company
Constraints
0 < batchs 109​

# Method: Load levelsList using the data in levelsFile 

def readLevelsFromFile(self):

try:

# Set levelsList to an empty list 

...

# Open the file

...

# Use a loop to read through the file line by line

...

# If the last two characters in the line is "\n", remove them

...

...

# Append the line to levelsList

...

# Close the file

 ...

except:

return

#replace all ellipsis with applicable code

The media company "GlobalAd" has received a
batch of advertisements from different product
brands. The batch of advertisements is a
numeric value where each digit represents the
number of advertisements the media company
has received from different product brands.
Since the company banners permit only even
numbers of advertisements to be displayed, the
media company needs to know the total
number of advertisements it will be able to
display from the given batch.
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.
Input
The input consists of an integer batch,
representing the batch of advertisements
Output
Print an integer representing the total number
of advertisements that will be displayed by the
media company
Constraints
0 < batchs 109​

Gardening

We have a task to do Gardening.

Given two boolean values

  1. isGrassTrimmerFound and isWaterHosePipeFound as inputs, create three JS promises using async/await and try/catch blocks. For cutting the grass,
  • resolve with "Grass Trimmed" text, if the isGrassTrimmerFound is true
  • reject with "Grass Trimmer Not Found" text, if the isGrassTrimmerFound is false
  1. For cleaning the garden,
  • resolve with "Garden Cleaned" text
  1. For watering the plants,
  • resolve with "Watered Plants" text, if the isWaterHosePipeFound is true
  • reject with "Water Hose Pipe Not Found" text, if the isWaterHosePipeFound is false
In a bank there are two types of transactions: credit and debit. All transactions are assigned an alphabetical ID. Credit transactions are assigned a vowel and debit transactions are assigned a consonant. To track transactions over a year, all the transaction IDs are combined to form a string of IDs for each customer. A customer wishes to know the number of times he made a debit transaction immediately after a credit transaction.

Write an algorithm to print the count of debit transactions that were made immediately afte a credit transaction for that particular customer.

Input

The first line of the input consists of a string userString, representing the string of transaction IDs.

Output

Print an integer representing the count of det transactions made immediately after a credit
You have just graduated from MUBAS and have landed a job at NETSYS. A week
later, the Network Manager calls you to his office concerning some assignment
that needs to be done for one of its client organization called Nkanamwano Ltd
Co. You have been given the network topology of the client organization. The
following information is also available;
1. Host requirements;
❖ IT Department: 100 host addresses
❖ Finance Department: 28 host addresses
❖ Human Resource Department: 14 host addresses
❖ Engineering Department: 10 host addresses
❖ WAN links: 2 host addresses (each)
2. The Internet Service Provider (ISP) has apportioned Nkanamwano
Technologies an IPv4 address block of 192.168.16.0/24
3. Four networks and Four WANs are required.
LATEST TUTORIALS
APPROVED BY CLIENTS