Code Monkey home page Code Monkey logo

a02-weekendassignment's Introduction

A02- Weekend Assignment

1- Assignment🚀

Simple Math

Write a Swift program that prompts two numbers from the user and then performs basic arithmetic operations as shown in the example output

Example📑

What is the first number?
5
What is the second number?
5

Output✅

5 + 5 = 10

5 - 5 = 0
	
5 * 5 = 25

5 / 5 = 1

2- Assignment🚀

Seconds to Minutes

Write a Swift program that receives seconds from the user and then converts them to minutes

Example📑

please insert the seconds
60

Output✅

60 seconds is 1 minute

3- Assignment🚀

Calculate the Area of the Rectangle

Write a Swift program that prompts two numbers from the user (Width and Height of a rectangle), then calculate the area of the rectangle

Example📑

please enter the height of the rectangle:
10

please enter the width of the rectangle:
10

Output✅

The calculated area of the rectangle is: 100

4- Assignment🚀

Driving License

Write a Swift program that prints the following sentences:

If the user's is older or equal to 18 years old "You can get a driver's license"

If the user's age is under 18 years old "Sorry, you can't get a driver's license"

Deadline 🗓

7th Aug 2022 10:00 AM

a02-weekendassignment's People

Contributors

almatrafi-a avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.