Not Yet Answered # Iteration using the Do-Loop

catherine sea 15 Discussion Starter Shane08003 Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

0

Check out the explanation here and see if it helps you understand the differences between the two:http://www.homeandlearn.co.uk/net/nets3p3.html

0

Today i was given a problem by a close friend to solve but no matter how hard i try i can't get it to run.

A program is required for calculating the amount to be paid by families attending the final of the rugby World Cup in New Zealand.

The family members can only be classified as either Adults or Children. The Adult pays the full price of the ticket while Children pay only half the price of the ticket.

At the ticket counter, the family can pay either by cash (ch) or by credit card (cc).

There are three different types of tickets namely A, B, or C and a family can only buy a certain type as shown on the table below:

Ticket Type Price Per Ticket

A R150

B R200

C R300

You are required to write a VB program that shall accept the ticket type (only A or B or C), the number of adults, the number of children, and the mode of payment (ch or cc) for many families until a negative number is input for the number of adults. New Zealand uses the Dollar as currency: 1 dollar = R4.70.

When there is no more input, the program must calculate and display (with meaningful message) on the screen the following:

• The number of families that bought tickets

• The number of families who paid using a credit card

• The Total amount of money paid by all families in cash (in Rands)

• The total amount of money paid by all families (in cash and by credit card)(in Dollars)

Some help????

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

```
public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}
```

the function that I created to find the ...