Questions: 358

Answers by our Experts: 358

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 statement or a set of statements to accomplish each of the following:

>Sum the odd integers between 1 and 99 using a For/Next structure. Assume that variables sum and count have been declared explicitly as Integer.

>Print the number from 20 to 1 on the form using a Do Until loop and Integer counter variable x. Assume that the variable x is initialized to 20.

>Print the Integers from 1 to 20 using a Do/Loop While structure and the counter variable x. Assume that x has been declared as an integer but not initialized.



Professor Juarez wants to calculate the factorial numbers in his mathematic class. As an IT student, you are the best candidate to help him solve his problem. With the aid of your Visual basic expertise, write a program that will print the factorial of a number by defining a method named 'Factorial'. You should name your program Factorial. Factorial of any number n is represented by n! and is equal to 1*2*3*....*(n-1)*n. E.g.- 4! = 1*2*3*4 = 24 3! = 3*2*1 = 6 2!=2*1=2 Also, 1! = 1, 0! = 0


One large chemical company pays its salespeople on a commision basis. The salespeople receive RM700 per week plus 9% of their gross sales for that week. For example, a salesperson who sells RM10 000 worth of chemicals in a week receives RM700 plus 9% of RM10000, or a total of RM1 600. Develop a program that will input each salesperson’s gross sales for last week and will calculate and display the salesperson’s earnings. Process one salesperson’s figures at a time.


Hi I need assistance with a looping structure to display in a listbox 8 digit student number must be generated, first 4 digits is the present year "2021" 5th digit represents gender 2 for male and 3 for female, the last digits increments according to the number of students who have registered


Write and run a visual payroll program for 10 employee of a company.The gross pay sums the basic pay, housing allowance and professional allowance (where applicable).Workers grade levels range from 1to 16. Housing allowance of workers is 30% of basic pay for workers on levels 8 to 16 and 40% for levels 1-7 workers.Transport allowance is 20% of basic pay for all workers. Hazard allowance is 15% of basic pay for only levels 8-16 workers. The net pay, which is the take home pay is the gross pay tax (10% of gross pay). Designs form through which each workers data can be entered. In a flowchart form


Write and run a visual payroll program for 10 employee of a company.The gross pay sums the basic pay, housing allowance and professional allowance (where applicable).Workers grade levels range from 1to 16. Housing allowance of workers is 30% of basic pay for workers on levels 8 to 16 and 40% for levels 1-7 workers.Transport allowance is 20% of basic pay for all workers. Hazard allowance is 15% of basic pay for only levels 8-16 workers. The net pay, which is the take home pay is the gross pay tax (10% of gross pay). Designs form through which each workers data can be entered


Write a simple visual basic program to find the average of five numbers


Write a program to computer the value of 1500+1000-450*10+300


Code a program to get the number of students and the group size from the user. Calculate and display the number of groups that must be used to divide the students in the given group size. The last group would possibly not be filled. Display also the number of students in the last group.  

 

Functions to code and use: 

  • CalcNumberGroups. This function must get the number of students and the group size via parameters. It must calculate and return the number of groups (integer) that would be used. 
  • CalcLastGroupSize.  This function must get the number of students and the group size via parameters. It must calculate and return number of students (integer) in the last group.

Example:

If there are 23 students and they must be divided into groups of 6, then there will be 4 groups. The last group will have 5 members.


Code a program to get the number of students and the group size from the user. Calculate and display the number of groups that must be used to divide the students in the given size. The last group would possibly not be filled. Display also the number of students in the last group.


Functions to code and use:

●CalcNumberGroups. This function must get the number of students and the group size via parameters. It must calculate and return the number of group(integer) that would be used

●CalcLastGroupSize. This function must get the number of students and the group size via parameters. It must calculate and return the number of students(integer) in the last group


LATEST TUTORIALS
APPROVED BY CLIENTS