visualg's People
visualg's Issues
Horas trabalhadas
algoritmo "Horas Trabalhadas"
//UTILIZE O ENQUANTO: Uma escola faz o pagamento de seus professores por hora/aula. Faça um algoritmo que calcule e exiba o salário do professor.
//Sabe-se que o valor da hora/aula segue a tabela abaixo:
//Professor Nível 1 R$12,00 por hora/aula
//Professor Nível 2 R$17,00 por hora/aula
//Professor Nível 3 R$25,00 por hora/aula
//Não se sabe para quantos professores o programa será usado, portanto sempre pergunte ao usuário se ele deseja continuar usando o programa.
var
n1,n2,n3,salario,hora,nivel:inteiro
continue:caractere
inicio
enquanto continue<>"n" faca
n1<-12
n2<-17
n3<-25
salario<-0
escreval("")
escreva ("Quntas horas o professor trabalhou: ")
leia (hora)
escreva ("Qual o nivel do professor 1,2 ou 3: ")
leia (nivel)
se (nivel=1)ou (nivel=2) ou (nivel=3) entao
senao
limpatela
escreval ("operação invalida")
continue<-"n"
fimse
escolha nivel
caso 1
salario<- horan1
caso 2
salario<- horan2
caso 3
salario<- hora*n3
fimescolha
escreval ("O salario do professor: ",salario)
escreval ("____________________________________________________________")
escreval ("Deseja calcular o salario de outro professor? s= sim e n=não")
leia (continue)
se (continue="s")ou (continue="n")entao
senao
limpatela
escreval("")
escreval ("OPERAÇÃO INVALIDA")
continue<-"n"
fimse
fimenquanto
fimalgoritmo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.