Questions: 619

Answers by our Experts: 487

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 VB class, named ‘Shape’, with the following properties and methods:

Properties (with get and set)

-Width (integer) : read-write

-Height (integer) : read-write

-Type (enumerated types: ShapeType: rectangle, triangle, square) : read-only

Methods

-Area() : return the area of the shape

The Shape class should have a constructor to construct a new Shape object using user-supplied values.


Identify and correct the error(s) in each of the following (you may simply need to add code):


Do While k <> -1


InputBox(“Enter a number -1 to quit:”, VB6)


Loop



Identify and correct the error(s) in each of the following (you may simply need to add code):


1.Assume that z has been initialized to 50. The values from 0 to 50 should be totaled.


 While (z>=0)

 sum = sum + z


2.Assume that y and total are declared as Integers

 total = 0

 Do Until y = -1

 Print y

 y = InputBox(“Enter a value, value input”)

 total = total + y

 Loop


3.Assume that k is declared as an Integer. The loop should iterate until -1 is input.

 

Do While k <> -1

 InputBox(“Enter a number -1 to quit:”, VB6)

 Loop


4.Assume that y is declared as Variant

 

For y = o.1 To 1.0 step .2

 Print y

 Next .2


5.Assume that the variable testVariable has been declared as Integer

 

Do Loop Not testVariable

 Print “Inside of Loop”

 Until


#include<stdio.h>





int main()




{




int z = 0;




int sum;




{




sum+=z;




z++




}




printf("%d",sum);




return




}




how in form of visual basic?

#include<stdio.h>




int main()



{



int z = 0;



int sum;



{



sum+=z;



z++



}



printf("%d",sum);



return



}



how in form of visual basic?

Write a statement or a set of statements to accomplish each of the following:

  1. Sum the odd integers between 25 and 78 using a For/Next structure. Assume that variables sum and count have been declared explicitly as Integer.
  2. Print the number from 35 to 20 on the form using a Do Until loop and Integer counter variable x. Assume that the variable x is initialized to 35.
  3. Print the even Integers from 1 to 20 using a Do/Loop While structure and the counter variable x. 

Develop a solution to compute the average price for three items’ price input by user one at a time. If the average price is greater than RM50, 10% discount will be given to the customer. Your program should be able to display the nett amount that needs to be paid by that customer.


Write a python program implementing a stack data structure, implement your solutions using the pythonds package(stack)Insert the names of big five animals (arrange them in


order of size = > as follows Elephant (approximately 5 tonnes +), Rhinoceros


(approximately 2 tonnes), Buffalo (650kg), Lion (225 kg), and Leopard (96kgs).


return the name Elephant and return the name Leopard infinitely

THE FOLLOWING QUESTION MUST BE SOLVED IN VISUAL BASIC (VB) WITH CODE AND WINDOW FORM SCREENSHOTS

A retail Company needs an application that will take as input a series/list of product prices to calculate and output total amount the customer should pay, by summing up the list, (zero is entered after the last price to signify the end of list). The company gives it’s customers a discount of 5% when the amount the customer should pay is over GH₵1000, otherwise it offers 2%. Customers of the company are also given a discount of 7% if they have a membership card.

a) Write a function that will take two parameters (unit price and quantity purchased) from a button click event to calculate the total amount a customer should pay.

b) Write the button Click event for the function above, which will get the unit price and quantity purchased from the user and display the result in a currency format. In addition to the total amount a customer should pay, the program should also display each tax amount and total tax amount.



What is artificial intelligence and it's composition

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS