Month: June 2019

Swift: How to (easily) Calculate two numbers

Doing calculations and showing the answer in Swift is really easy.

This example will do just that and print the answer to the terminal.  But you could change the code to show the problems and the answer in a UILabel.

Here's the code:

import UIKit
import Foundation

let firstNumber = 56
let secondNumber = 23

let answer = (firstNumber + secondNumber)
print (firstNumber, "+", secondNumber, "=", answer)

As always, import UIKit and then the Foundation Frameworks so the code will work correctly.

1. Assign two variables two different numbers to give the computer something to calculate.
2. Assign a variable to show the answer to the calculations.
3. Show the problem and the answer to the terminal - 56 + 23 = 79.
4. That's it.

Note: The ( ) around the firstNumber and lastNumber means that the computer will always calculate the variables in-between the ( ) first, so you can preform any other calculations after that.

Like so:

let answer = (firstNumber + secondNumber) / 30

[youtube https://www.youtube.com/watch?v=YQUs58axKUQ&w=560&h=315]

Watch NASA Build the actual Mars 2020 Rover

After the death of NASA's previous Mars rover named Opportunity, the organization kicks into high gear to get their next Mars Rover built, tested, and be sent off to the red planet as soon as possible.

NASA has taken an unusual step and set-up a web cam so any interested parties can monitor the progress of the build.  Only NASA knows how long this web cam will remain, so enjoy it while you can below.

This video is available at the middle, left-hand side of this site and will be available as long as NASA permits it.

 

[youtube https://www.youtube.com/watch?v=PaNiYPglK58]

NASA Opens International Space Station to New Commercial Opportunities, Private Astronauts

NASA is opening the International Space Station for commercial business so U.S. industry innovation and ingenuity can accelerate a thriving commercial economy in low-Earth orbit.

This effort is intended to broaden the scope of commercial activity on the space station beyond the ISS National Lab mandate, which is limited to research and development. A new NASA directive will enable commercial manufacturing and production and allow both NASA and private astronauts to conduct new commercial activities aboard the orbiting laboratory. The directive also sets prices for industry use of U.S. government resources on the space station for commercial and marketing activities.

Pricing released Friday is specific to commercial and marketing activities enabled by the new directive, reflects a representative cost to NASA, and is designed to encourage the emergence of new markets. As NASA learns how these new markets respond, the agency will reassess the pricing and amount of available resources approximately every six months and make adjustments as necessary.

To qualify, commercial and marketing activities must either:

  • require the unique microgravity environment to enable manufacturing, production or development of a commercial application;
  • have a connection to NASA’s mission; or
  • support the development of a sustainable low-Earth orbit economy.

NASA’s directive enabling commercial and marketing activities aboard the space station addresses manufacturing, production, transportation, and marketing of commercial resources and goods, including products intended for commercial sale on Earth. NASA astronauts will be able to conduct coordinated, scheduled and reimbursable commercial and marketing activities consistent with government ethics requirements aboard the station.

To ensure a competitive market, NASA initially is making available five percent of the agency’s annual allocation of crew resources and cargo capability, including 90 hours of crew time and 175 kg of cargo launch capability, but will limit the amount provided to any one company.

Private Astronaut Missions

NASA also is enabling private astronaut missions of up to 30 days on the International Space Station to perform duties that fall into the approved commercial and marketing activities outlined in the directive released Friday, with the first mission as early as 2020. A new NASA Research Announcement focus area issued today outlines the path for those future private astronaut missions.

If supported by the market, the agency can accommodate up to two short-duration private astronaut missions per year to the International Space Station. These missions will be privately funded, dedicated commercial spaceflights.  Private astronaut missions will use a U.S. spacecraft developed under NASA’s Commercial Crew Program.

The commercial entity developing the mission will determine crew composition for each mission and ensure private astronauts meet NASA’s medical standards and the training and certification procedures for International Space Station crew members. Market studies identified private astronaut missions to low-Earth orbit as a key element to demonstrate demand and reduce risk for future commercial destinations in low-Earth orbit.

Commercial Destinations in Low-Earth Orbit

In the long-term, NASA’s goal is to become one of many customers purchasing services from independent, commercial and free-flying habitable destinations in low-Earth orbit. A robust low-Earth orbit economy will need multiple commercial destinations, and NASA is partnering with industry to pursue dual paths to that objective that either go through the space station or directly to a free-flying destination.

As a first step, NASA is making one space station port and utilities available for industry to attach a commercial module to support commercial activities, and today is releasing a synopsis as Appendix I in NASA’s Next Space Technologies for Exploration Partnerships (NextSTEP) 2 Broad Agency Announcement (BAA). NASA expects to release the solicitation June 14, with awards made by the end of the fiscal year. The forward port of the station’s Harmony module will be available to industry for a finite period of time.

NASA will follow up with a synopsis for NextSTEP 2 Appendix K in July to partner with industry in the development of future free-flying commercial stations in low-Earth orbit.

Stimulate Sustainable Demand

NASA continues to seek and pursue opportunities to stimulate sustainable commercial demand in low-Earth orbit and, to that end, has added two new focus areas to the NASA Research Announcement soliciting proposals for commercial concepts. these focus areas include in-space manufacturing, regenerative medicine, bioengineering, and other fields that may lead to a scalable, financially self-sustaining demand for low-Earth orbit capabilities.

In addition, NASA is seeking targeted studies to better understand real and perceived barriers of potential new market entrants and to address broad ideas which could help stimulate demand. Successful proposals will define the path to broadly foster market growth, provide data-driven rationale to support the defined path, and lead to recommendations on which NASA, industry or other organizations could act. More details are available in the synopsis for NextSTEP 2 BAA Appendix J. NASA expects to release the solicitation for Appendix J on June 14 with awards made by the end of the fiscal year.

NASA also is working to increase the research and development community’s understanding of the potential value of microgravity research and the path to conducting research in low-Earth orbit by coordinating across the microgravity community to lower barriers to entry and refinement of research via drop towers, parabolic, and suborbital flights.

Quantify NASA’s Long-term Demand

NASA is providing a forecast of its minimum long-term, low-Earth orbit requirements, representing the type and amount of services that NASA intends to purchase when those services become commercially available. The goal is to reduce uncertainty for commercial destination providers about NASA as a customer, and to help them make decisions about which NASA requirements they are interested in fulfilling.

NASA also is providing details and estimated quantities for NASA crew accommodation, human research, biological and physical science research, technology demonstrations, and hosted science instruments. In addition, NASA intends to continue purchasing services for a national laboratory capability in low-Earth orbit. For example, NASA’s strategy research in the areas of space biology, physical sciences, and fundamental physics is driven by recommendations from the National Academy of Sciences (NAS). Fundamental research and applied exploration research are not mutually exclusive, and advances in one area often enable advancements in the other. NASA’s Space Life and Physical Sciences Research Applications division has identified the highest research priorities for long-term use of low-Earth orbit: in life sciences, the priorities are studies of plants, model organisms, and of the microbiome of the built environment; and in physical sciences, the priorities are studies into combustion and phase change-associated energy transfer.

To improve the agency’s five-part plan and its effectiveness, NASA is seeking feedback from industry and others through a request for information, with responses due by July 3.

For more than 18 years, humans have lived and worked aboard the International Space Station, conducting thousands of experiments in areas such as human research, biology, and physical science, as well as advanced technology development. Many of these experiments, conducted via the ISS National Lab, have been research and development with commercial objectives.  New opportunities are needed to move beyond research and development, and the station will play an essential role in enabling those opportunities for new commercial markets needed to build a sustainable ecosystem in low-Earth orbit.

Learn more about opportunities for commercial activities aboard the International Space Station:

https://www.nasa.gov/leo-economy/low-earth-orbit-economy

You may have Missed:

Verified by MonsterInsights