Assembly, C Programs: Calculator, Palindrome, Search, FCFS, SJF, File Systems, Loader
Calculator
.model small printmsg macro msg push ax push bx push cx
push dx
LEA dx,msg
mov ah,09h
int 21h pop dx pop cx pop bx pop ax
endm .data msg1 db 0ah,0dh,”enter first number:$”
msg2 db 0ah,0dh,”enter second number:”
msg3 db 0ah,0dh,”1-addition,2-sub,3-mul,4-div: $”
msg4 db 0ah,0dh,”enter your option :$”
msg5 db 0ah,0dh,”your result is: $” msg6 db 0ah,0dh,”no such option $” num dw 0
cnt dw 0
choice dw 0 a dw 0
b dw 0
.code
mov ax,@data mov ds,ax printmsg msg1 call readnum mov ax,num mov a,ax printmsg
Python Fundamentals: Data Types, Operations, and Libraries
Intro to Python
Operations with Other Types
monthly_savings = 10
num_months = 12
intro = "Hello! How are you?"
# Calculate year_savings using monthly_savings and num_months
year_savings = monthly_savings * num_months
# Print the type of year_savings
print(type(year_savings))
# Assign sum of intro and intro to doubleintro
doubleintro = intro + intro
# Print out doubleintro
print(doubleintro)
Type Conversion
savings = 100
total_savings = 150
# Fix the printout
print("I started with $" + str(savings) + " and now have
User Profiles and Group Policy: Desktop Customization in Windows XP
Understanding How User Profiles and Group Policy Affect Desktop Customization
User profiles and Group Policy influence the options available for users to customize their desktop environment.
In Windows XP Professional, a user’s computer environment primarily depends on their user profile. For security, Windows XP Professional requires a user profile for each user account.
A user profile contains all settings a user defines for their working environment, including regional settings, screen, mouse, sound,
Read MorePriority Queue with MinHeap and Adjacency List Graphs in Java
Priority Queue with MinHeap in Java
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.NoSuchElementException;
public class EDPriorityQueue<E> {
private static final int DEFAULT_INITIAL_CAPACITY = 11;
E[] data;
int size;
private Comparator<E> comparator;
//CONSTRUCTORS
public EDPriorityQueue() {
this(DEFAULT_INITIAL_CAPACITY, null);
}
public Read More
Breaking Down Bolivars: Currency Calculation in C#
C# Currency Breakdown Calculator
This program is designed to perform calculations with currency, specifically Bolivars. It offers two main functionalities:
- Breaking down a given amount into different denominations of bills and coins.
- Calculating the total value based on the quantity of each denomination entered.
Authors:
- Luis Salazar (CI: 18,399,892)
- Santiago Reyes (CI: 18,399,892)
Program Structure
The program utilizes a while loop to continuously prompt the user for input until the exit option (“X”) is
SQL Queries and Database Triggers Examples
SQL Queries Examples
Page 22 Exercises
Exercise 5
Buscar o nome e a idade em meses dos pacientes:
SELECT nome, (idade*12) as "Idade em meses" FROM Pacientes;Exercise 7
Qual o menor e o maior salário dos funcionários de Florianópolis?
SELECT MIN(salario), MAX(salario) FROM Funcionarios WHERE cidade='Florianopolis';Exercise 11
Qual a média de idade dos médicos e o total de ambulatórios atendidos por eles?
SELECT AVG(idade), count(distinct nroa) FROM Medicos;Exercise 12
Buscar o código, o nome e o salário
