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

Draw a flowchart. do not output the number of minutes during which the service is used.

a. regularBill: This method calculates and returns the billing amount for regular

service.

b. premiumBill: This method calculates and returns the billing amount for premium

service.



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

Exercise 1: Practice to store and print data in an array

a) Write a C program that reads marks of 10 students into a single subscripted array.

b) Above marks should be between 0 to 20. Modify the above program to add marks to the array only if the input mark is between the given range.

c) Display the values stored in the array.

Exercise 2: Practice accessing data stored in an array

Modify the above program to find the mean of the marks stored in the array.


There are 2 types of tyres in stock, namely those for luxury vehicles and those for construction vehicles.


Construction vehicle tyres cost twice the price of luxury vehicle tyres, and the prices

depend on the wheel size according to the following price list for luxury vehicles:

Wheel Size Price/Unit measurement ($)

Less than 10 Inches 3.50

10- 15 Inches 4.00

Greater than 15 inches 6.00

You are required to create a python program that implements the program according to

the following guidelines:

c) Create a class called Luxury which contains:

i) A constructor

ii) A function called Calc for doing relevant calculations for calculating the total price

of wheels purchased for construction vehicles.

d) Create a class called Bonuses which contains a constructor and a function called Calc

for calculating the bonus that the client is eligible to recieve. A client may recieve a

bonus if the total price of the tyres he/she has purchased is greater than $500.00.


2 types of tyres in stock, namely for luxury vehicles and for construction vehicles.

Cons vehicle tyres cost twice the price of luxury vehicle tyres, the prices

depend on the wheel size according to the following price list for luxury vehicles:

Wheel Size: Price ($)

Less than 10 Inches: 3.50

10- 15 Inches: 4.00

Greater than 15 inches: 6.00


create a python program that implements the program:

a) Create a class called Home, which contains a function called Details for receiving the

values of the type of vehicle, the size of the tyres and the number of tyres for the

vehicle.

b) Create a class called Construction which contains:

i) A constructor

ii) A function called Calc for doing relevant calculations for calculating the total price

of the tyres purchased for construction vehicles.

c) Create a class called Luxury which contains:

i) A constructor

ii) A function called Calc for doing relevant calculations for calculating the total price

of wheels purchased for construction vehicles.



1. Write a program that generates a random number between 0 to 10. Use the following statements below for generating random number and the class Random from the package java.util:Random rand = new Random();int num = rand.nextInt(10);2. Display the generated random number with text: "The generated random number between 0 to 10 is: ".3. Name the class as RandomNumber and save the file.4. Compile and execute the program using the command prompt (cmd). If you do not have cmd, run it in JDoodle.5. Correct syntax and logical errors if there are any.6. Once you have successfully compiled and execute the program, copy the source code and paste it here in the Submission box.

Management of the events have decided to allow a 10% discount on all events that cost over R 250. Create a PL/SQL query to display the event name and price, with or without the applied discount. 


Sample Results Open Air Comedy Festival price: R 270 ------------------------------------------------------- Mountain Side Music Festival price: R 252 ------------------------------------------------------- Beach Music Festival price: R 195 -------------------------------------------------------


  1. Copy the following java program.
  2. Paste it on the submission textbox then insert useful comments (Use multi-line and single-line comments.)

 

  1. public class IfElseExample {  
  2. public static void main(String[] args) {  
  3.     int number=13;    
  4.     if(number%2==0){  
  5.         System.out.println("even number");  
  6.     }else{  
  7.         System.out.println("odd number");  
  8.     }  
  9. }  
  10. }  
We can push a total of 100 values

Value Pushed in Stack 1 is 1

Value Pushed in Stack 1 is 2

Value Pushed in Stack 1 is 3

Value Pushed in Stack 1 is 4

.....

Value Pushed in Stack 1 is 60

Value Pushed in Stack 2 is 1

..........

Value Pushed in Stack 2 is 40



Print Pushed Values:

60 59 58 57..... 6 5 4 3 2 1

40 39 38.... 3 2 1



Pushing Value in Stack 1 is 101

Stack Full! Cannot Push



60 is being popped from Stack 1

59 is being popped from Stack 1

58 is being popped from Stack 1

...........

...........

3 is being popped from Stack 1

2 is being popped from Stack 1

1 is being popped from Stack 1

Stack Empty! Cannot Pop
I need a program for these
import time
nucleotides="ATGC"
nulength= len(nucleotides)
nucleostring=""
noofbase=0
inputbase= int(input("Enter the number of base: "))
while noofbase < inputbase:
rand=int(time.time_ns())
randomno=rand%nulength
nucleostring+=nucleotides[randomno]
noofbase+=1
print(nucleostring)
print("Forward: ")
print("DNA Seq")
if len(nucleostring)%3 == 0:
for i in range(0, len(nucleostring),3):
c= nucleostring[i: i+3]
print(c)
I want print output horizontally
O/p:
Enter the number of base: 6
AATGCA
Forward
DNA Seq
AAT
GCA
Instead of these I need print horizontally AAT GCA
LATEST TUTORIALS
APPROVED BY CLIENTS