1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
klasskru [66]
3 years ago
5

. Write a swift programming code to perform following tasks a) Declare a variable that stores the age of a person b) Declare a c

onstant that stores the earth gravity 9.8
Computers and Technology
1 answer:
Law Incorporation [45]3 years ago
5 0

Answer:

Here we use the shift programming  code

(a)var age1: Int=24

(b)let ear_grav:Float=9.8

Explanation:

(a) To declared any variable in swift we follow following syntax

Syntax:var variableName = <initial value>

var age1: Int=24

Here age1 is a variable that stores the age of a person

to print this use we print command in swift

print(age1)

(b)To declared the constant in swift we follow following syntax

Syntax: let constantName = <initial value>

let ear_grav:Float=9.8

Here ear_grav is a constant that stores the earth gravity 9.8

to print this use we print command in swift

print(ear_grav)

You might be interested in
:) :) :):):):)):):):)):)/):))::)):):):):):)):):)):):))/):):))
pashok25 [27]

Answer:

:)))))))))))))))))))))))))))))))))))))))) thanks

3 0
3 years ago
Define the acronym WAECUP and its components
Mariana [72]

WAECUP stands for waste, accident, error, crime, and unethical practices.

Assuming that the components are the same as what's included in the acronym, that should be your answer.

Hope this helps!

8 0
3 years ago
Write a Temperature class that will hold a temperature in Fahrenheit and provide methodsto get the temperature in Fahrenheit, Ce
julsineya [31]

Answer: Thermometer

Explanation:

5 0
4 years ago
What device do e-learning applications usually use to help users with visual
Tomtit [17]
The answer is Screen Readers.
6 0
2 years ago
A device combined with a switch, router, and wireless access point is called what?
ra1l [238]

It is called a wireless router!

8 0
3 years ago
Read 2 more answers
Other questions:
  • What important technology has done the most to allow small businesses a change to compete with larger international companies.
    6·1 answer
  • Where could an identity theft access your personal information
    9·2 answers
  • What is a series of instructions or commands that a computer follows used to create software
    9·1 answer
  • Within the information category of functions, you will find functions that ____.
    7·2 answers
  • If you created a variable called name, what data type would that value be?
    7·2 answers
  • List six common raster image file types.
    9·1 answer
  • How does the technology work
    10·2 answers
  • HELLLP PLEASEEEEEEEEE
    12·1 answer
  • Give the an example of the following .<br>a.)typing software<br>​
    10·2 answers
  • Which option should Gina click to edit the text contained in a text box on a slide in her presentation?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!