This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace abstract_data_types; | |
class Program | |
{ | |
class Vector { | |
private int[] _V; | |
private Random random = new Random(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace abstract_data_types; | |
class Program | |
{ | |
class Complex { | |
private double _PReal; | |
private double _PImag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace abstract_data_types; | |
class Program | |
{ | |
class Vehicle { | |
private string _Name; | |
public string Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace abstract_data_types; | |
class Program | |
{ | |
class AppointmentDate | |
{ | |
public int Day; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace abstract_data_types; | |
class Program | |
{ | |
struct ExpirationDate | |
{ | |
public string Month; | |
public string Year; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace abstract_data_types; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[,] EmployeesTable = new string[5, 2]; | |
int i = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace abstract_data_types; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
double[,] StudentsGrades = new double[5, 3]; | |
for(int i = 0; i < 5; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class AbstractDataTypes | |
{ | |
public static void Main(string[] args) | |
{ | |
// Matrix example | |
// 5 8 3 2 9 | |
// 9 0 1 4 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class AbstractDataTypes | |
{ | |
public static void Main(string[] args) | |
{ | |
int[] Vector = new int[5]; | |
for(int i = 0; i < 5; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aula - 17/02 | |
# Crie 4 variáveis que receba com a função input a nota de um aluno e calcule a média aritmética das | |
# notas, depois imprima o valor dessa média na tela. | |
# Declaração das variáveis | |
nota1 = 9.0 | |
nota2 = 8.0 | |
nota3 = 8.0 | |
nota4 = 5.0 |