Skip to content

Files

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Class 3: Guide 1 - Introduction to programming with Pseint.

Learning process - Back-end with Java | Globant University - Class 3 Hello, This is the 3rd class on the Backend with Java program from Globant and Egg cooperation

Table of Contents:

Exercises:

  • Activity 1 - Exercise 1:

Ask the user to enter the base and height of a rectangle, and calculate and display the area and perimeter of the rectangle. area = base * height. perimeter = 2 * height + 2 * base.

screenshot

  • Activity 1 - Exercise 2:

Write a program that calculates the volume of a cylinder. To do this, the user must be asked to enter the radius and height. Display the result on the screen. volume = π * radius2 * height

screenshot

  • Activity 1 - Exercise 3:

From a known number of days that the user enters on the keyboard, write a program to convert the days into hours, minutes and seconds. For example: 1 day = 24 hours = 1440 minutes = 86400 seconds.

screenshot

  • Activity 1 - Exercise 4:

Create a program that prompts the user to enter the price of a product at the beginning of the year, and the price of the same product at the end of the year.The program should calculate what was the percentage increase of that product during the year and display it on the screen.

screenshot

  • Activity 1 - Exercise 5:

A school wants to know what percentage of boys and what percentage of girls are in the current class. Design an algorithm for this purpose. Remember that to calculate the percentage you can make a simple rule of 3. The program should prompt the user to enter the total number of boys, and the total number of girls in the class.

screenshot

  • Activity 2:

Enter a 3-digit number and display the quality, ten and hundred.

For example, if the number entered on the screen is 123 the program should display:

HUNDRED: 1 TENTH: 2 UNIT: 3

screenshot

  • Activity 4 - Exercise 1:

Write a program that asks the user for his name, and then greets him.

screenshot

  • Activity 4 - Exercise 2:

Calculate the exchange rate of currencies in dollars and euros when entering a certain amount of money in pesos.

screenshot

  • Activity 4 - Exercise 3:

Make a program that calculates the salary of an employee, if you deduct 20% of his gross salary.

screenshot

  • Activity 4 - Exercise 4:

Make a program that enters by keyboard a total number of seconds and then can display the number of hours, minutes and seconds that exist in the value entered.

screenshot

  • Activity 4 - Exercise 5:

Show the area and perimeter of a rhombus.

screenshot

  • Activity 4 - Exercise 6:

Show the area and perimeter of a hexagon.

screenshot

  • Activity 4 - Exercise 7:

Show the area and perimeter of a parallelogram.

screenshot

  • Activity 4 - Exercise 8:

Write a program that converts a given value in degrees Fahrenheit to degrees Celsius.

screenshot

  • Activity 4 - Exercise 9:

A salesperson receives a base salary plus an extra 10% commission from their sales, the seller wants to know how much money he will get in commissions for all three sales you make in the month and the total you will receive in the month taking into account your Base salary and commissions.

screenshot

  • Activity 4 - Exercise 10:

A store offers a 15% discount on the total purchase and a customer wants know how much you will finally have to pay for your purchase.

screenshot

  • Activity 4 - Exercise 11:

A student wants to know what his final grade will be in the subject of Algorithms. Bliss rating is made up of the following percentages: to. 55% of the average of their three partial qualifications. b. 30% of the final exam grade. c. 15% of the grade of a final work.

screenshot

  • Activity 4 - Exercise 12:

Prompts the user for two numbers and displays the “distance” between them (the absolute value of their difference, so that the result is always positive).

screenshot

  • Activity 4 - Exercise 13:

Write an algorithm that reads a number and shows its square root and its cube root. PSeInt does not have any built-in function that allows you to calculate the cube root, how do you can you calculate?

screenshot

  • Activity 4 - Exercise 14:

Given a two-digit number, design an algorithm that allows you to obtain the number invested. Example, if 23 is entered it displays 32.

screenshot

  • Activity 4 - Exercise 15:

A cyclist leaves a city A at HH hours, MM minutes and SS seconds. Time travel time to reach another city B is T seconds. Write an algorithm that Determine the time of arrival in city B.

screenshot

Objective:

  • Improve logical thinking.
  • Cooperation with the work team.
  • Learn about basic structures.
  • Learn about variables.
  • Learn about reading and writing instructions.
  • Learn about algebraic operators.

Built With:

Technologies used in the project:

  • PSeint - PSeudocode Interpreter Tool.

Acknowledgements:

Contact:

Author ✒️

If you have some feedback or like what I do, give me a DM and share my content, you can also follow me on my networks to be aware of new publications and interesting projects that I will be developing.

Designed with 💖 - by Estefani León Osorio