1.Write an Assembly program that reads in a number of cents. The program will write out the number of dollars and cents separately.

Sample Run:
? 324
3
24

2. Write an Assembly program to read three numbers in from the user, and output BOTH the sum and the product of the three numbers.

Sample Run:
? 2
? 3
? 4
9
24

3. Write an Assembly program to determine the cost for a group to attend a movie. Tickets are $6 for children and $8 for adults. Read in the number of children and the number of adults, and display the total movie cost.
Sample Run:
? 2
? 1
20

4. Write an Assembly program to compute a person's gas mileage. Prompt for the beginning mileage, ending mileage, and the number of gallons (to the nearest tenth) it took to fill the car. Compute the gas mileage (whole miles per gallon).
Sample Run:
? 32000
? 32250
? 10
25

5. Write an Assembly program to determine the correct admission price to a movie. The price of admission to a movie is $7 for kids (under 12) and $9 for adults. Display the correct admission fee after the user gives you the age for one person.
Sample Run #1:
? 21
9
Sample Run #2:
? 11
7

6. Write an Assembly program to determine the price of a car rental. The car being rented costs $45 per day and frequent renters get a $15 discount on the total bill. Get as input, the number of days rented and whether the user is part of the frequent renter program (have user enter 1 if they ARE a frequent renter and 0 otherwise). Display the total cost to rent the car.
Sample Run #1:
? 4
? 0
180
Sample Run #2:
? 3
? 1
120

7. Write an Assembly program to output a list of number. Read from the user a starting value and an ending value. Your program should output all integers from the starting value through the ending value.
Sample Run:
? 5
? 8
5
6
7
8

Which assembler are you using? Assemblers are very much machine dependent, and the number of instructions available are different. For example, the assembler MARIE does not have rotate instructions. Also the mnemonics could be different.

You may want to concentrate on one (perhaps the easiest) problem, work out a draft and post if you have difficulties. The remaining ones can then be solved in a similar way.

To write an assembly program that reads in a number of cents and writes out the number of dollars and cents separately, you can follow these steps:

1. Prompt the user to enter the number of cents.
2. Read the input from the user.
3. Divide the input by 100 to get the number of dollars (using proper assembly instructions for division).
4. Store the result in a separate variable.
5. Calculate the remainder by performing modulo operation (%) on the input and 100.
6. Store the remainder in another variable.
7. Output the number of dollars and cents separately.

Here's an example assembly code in x86 architecture:

```assembly
section .data
prompt db "? ", 0
dollars db " dollars", 0
cents db " cents", 0
newline db 0Ah, 0

section .bss
input resb 4
result resb 4
remainder resb 4

section .text
global _start

_start:
; Prompt for input
mov eax, 4
mov ebx, 1
mov ecx, prompt
mov edx, 2
int 0x80

; Read input
mov eax, 3
mov ebx, 0
mov ecx, input
mov edx, 4
int 0x80

; Convert input to integer
xor ebx, ebx
mov bl, [input]
sub bl, '0'
mov ecx, ebx
mov ebx, 10
mul ebx

xor ebx, ebx
mov bl, [input + 1]
sub bl, '0'
add ecx, ebx
mov eax, ecx

; Divide input by 100 to get dollars
xor edx, edx
mov ebx, 100
div ebx

; Store the result (dollars)
mov [result], eax

; Calculate the remainder (cents)
mov eax, ecx
xor edx, edx
mov ebx, 100
div ebx

; Store the remainder (cents)
mov [remainder], edx

; Output the result (dollars)
mov eax, 4
mov ebx, 1
mov ecx, result
add ecx, '0'
mov edx, 1
int 0x80

; Output " dollars"
mov eax, 4
mov ebx, 1
mov ecx, dollars
mov edx, 8
int 0x80

; Output newline
mov eax, 4
mov ebx, 1
mov ecx, newline
mov edx, 1
int 0x80

; Output the remainder (cents)
mov eax, 4
mov ebx, 1
mov ecx, remainder
add ecx, '0'
mov edx, 1
int 0x80

; Output " cents"
mov eax, 4
mov ebx, 1
mov ecx, cents
mov edx, 6
int 0x80

; Exit the program
mov eax, 1
xor ebx, ebx
int 0x80
```

This program prompts the user for input, reads the input, performs the required calculations, and outputs the result for dollars and cents separately.

You can assemble and run this program using an x86 assembly compiler or an emulator such as DOSBox or NASM on Linux.