Sunday, January 22, 2017

// // Leave a Comment

Exercise 3.6 — Health Application: BMI

Java program ComputeAndInterpretBMI.java, to let the user enter weight, feet, and inches and calculate and interpret the user BMI whether underweight, normal, overweight or obese.

/**
 *
 * @Author: Aghatise Osazuwa
 * Website: www.cscprogrammingtutorials.com
 */

import java.util.Scanner;

public class ComputeAndInterpretBMI {
    public static void main (String [] args) {
        Scanner input = new Scanner(System.in);
        //Prompt the user to enter weight in pounds
        System.out.print("Enter weight in pounds: ");
        double weight = input.nextDouble();
        //Prompt the user to enter height in feet and inches
        System.out.print("Enter feet: ");
        double feet = input.nextDouble();
        System.out.print("Enter inches: ");
        double inches = input.nextDouble();
        double height = (feet * 12) + inches;
        final double KILOGRAMS_PER_POUND = 0.45359237; // Constant
        final double METERS_PER_INCH = 0.0254; // Constant
        //Compute BMI
        double weightInKilograms = weight * KILOGRAMS_PER_POUND;
        double heightInMeters = height * METERS_PER_INCH;
        double bmi = weightInKilograms / (heightInMeters * heightInMeters);
        // Display result
        System.out.println("BMI is " + bmi);
        if (bmi < 18.5) {
            System.out.println("Underweight");
        } else if (bmi < 25) {
            System.out.println("Normal");
        } else if (bmi < 30) {
            System.out.println("Overweight");
        } else {
            System.out.println("Obese");
        }
    }
}
Liang Introduction to Java Programming exercise 3.6 solution
Sample run
Click here to see other solutions to Introduction to Java Programming.
Read More

Friday, January 20, 2017

// // Leave a Comment

Oracle Buys API Development Firm Apiary

Oracle has announced plans to acquire Apiary, a startup that helps developers design and create documentation for application programming interfaces (APIs). Terms of the deal were not disclosed.

Oracle buys Apiary
At 2016 Oracle OpenWorld in San Francisco.
Image Credit: Jordan Novet/VentureBeat
Founded out of San Francisco in 2011, Apiary had raised more than $8 million in equity funding, including a $6.8 million tranche back in August 2015. The company offers a suite of tools for companies to build web APIs at speed, while allowing them to test and monitor those APIs.

APIs have emerged as big business, as they enable companies and developers to unlock additional revenue streams beyond their own closed silos. In August last year, Google dropped $625 million to buy API management provider Apigee, a company that offers software for predictive analytics and management of APIs.

As for what Oracle has in store for Apiary, well, the company is keeping some of its cards close to its chest, saying that it’s “currently reviewing” the Apiary product roadmap and will be “providing guidance to customers” in the future, according to a statement.

However, Oracle has given some indication of how it plans to leverage Apiary as part of its own product range. The database software tech titan already allows companies to monetize and analyze their APIs, and with Apiary serving up the front-end for designing, creating, and managing their APIs, Oracle hopes to deliver “the most complete API creation and management platform in the cloud,” according to a FAQ posted by the company.

“Oracle’s API Integration Cloud enables companies to secure, consume, monetize, and analyze APIs,” said Amit Zavery, senior vice president for integration cloud at Oracle, in a press release. “With Apiary, Oracle will also provide customers advanced capabilities to design and govern API’s, allowing companies to manage the entire API lifecycle and deliver integrated applications.”

Crucially, Apiary isn’t being shuttered, and its products will continue to be offered to other companies. Oracle says:
Oracle is committed to protecting and enhancing customer investments in Apiary solutions. After the close of the transaction, Oracle plans to continue investing in Apiary and Oracle’s API Integration Cloud. We expect this will include more functionality and capabilities at a quicker pace. In addition, Apiary customers will benefit from better integration and alignment with Oracle’s other product offerings.
As noted by Oracle, the transaction isn’t yet complete, and there’s no indication as to when this may happen — Apiary is a privately owned company, so one would assume that concluding the deal would be fairly straightforward.

Source: VB
Read More
// // Leave a Comment

Windows 10: Cortana is Coming to Android

Windows 10: Cortana is coming to Android

A new update from Microsoft will allow Android smartphone users to benefit from more of Cortana’s features.

The smart assistant that has been a big hit on Windows 10, will now be available with just a single swipe making it easier to access allowing users to access Cortana even when their device is locked.

The feature is already being tested on beta program which is usually a sign that a general release is imminent.

Despite being available in the USA, Microsoft is only now starting to make the service available to Android users in other regions.

Cortana on Android has several new features including the facility to turn off your computer via a voice command as well as being able to restart, lock and change system volume.

Read more on techthai.
Read More

Thursday, January 19, 2017

// // Leave a Comment

Microsoft Releases New Windows 10 Preview Build For PCs and Mobile Devices

Microsoft Releases New Windows 10 Preview Build 15014

Microsoft today started rolling out a new Windows 10 preview build for PCs and mobile devices for people participating in the fast ring of the Windows Insider Program. Build 15014 follows build 15007.

As rumors indicated earlier this week, Microsoft is now bringing ebook purchasing to the operating system, specifically through the Windows Store, and only for people in the U.S. From there, users can find a new collection of “Books” in the Edge browser. In this preview, you’ll see a table of contents and a seek bar at the bottom of Edge when viewing ebooks from the library. You can drop bookmarks in, and read ebooks offline. And the Cortana virtual assistant has a role, to play, too.

“You can search for words or phrases and ask Cortana to define specific words and view embedded video and audio content,” Dona Sarkar, a software engineer in Microsoft’s Windows and Devices Group, wrote in a blog post.

There are ways to widen text spacing, change the font, make the typeface bigger and smaller, and switch the theme. Microsoft will add more ebooks to the Store over time, Sarkar wrote.

This build also has a feature for making the most of your PC’s local storage, one that’s similar to the Optimized Storage feature that showed up for Mac users in macOS Sierra. If you go to Settings > System > Storage you can enable the option, as it’s off by default. When disk space is getting low, Sarkar wrote, the new option can be configured to delete “unused temporary files and items that have been in your recycle bin for 30 days.”

With this build, Microsoft is beginning to experiment with a slider for power consumption in the taskbar’s power flyout. It will only show up on certain PCs, and it won’t actually do anything — it’s just being added so Microsoft can get some early feedback on the design of the feature.

There are some cosmetic changes in this build, too.

  • The Cortana search box now has a lighter shade, and notifications in Cortana and the action center will have larger text.
  • You can now choose a custom accent color, not just one of the 48 that the Settings > Personalization > Colors section offers.
  • Wi-Fi Sense and Paid Wi-Fi Services have been brought together into the “Wi-Fi services” part of Settings.
  • The Snipping Tool app now has mode options available through a new Mode button, instead of next to the New button. The standard-issue Mail app, meanwhile, might be pinned to your taskbar with this build.

As usual, this build comes with plenty of bug fixes on PC.

  • For one, the Explorer won’t crash anymore when desktop shortcuts include a percent (%) sign, or when projecting onto a second display. 
  • Copying with Control + C in Command Prompt will work again. Miracast will work again. 
  • Closing the lid of your laptop will no longer result in a blue green screen of death (BSOD/GSOD). Hitting “skip this step” when Microsoft prompts you to create a Microsoft account when starting Windows 10 for the first time will no longer send you back to the “Who owns this PC?” page. 
  • The Action Center won’t appear blank anymore, as it has in some recent builds for Insiders. Refreshing a PDF in Edge won’t show you a blank page anymore. 
  • Changes you make to display brightness through Settings > System > Display will stick now after you close out of Settings. 
  • Custom layouts of icons on the desktop won’t go away after you reboot. 
  • Universal Windows Platform (UWP) apps won’t crash anymore if they’re running on devices with more than 150 percent dots per inch (DPI). 
  • And uploading from Windows 8.1 to some of the recent Windows 10 fast ring builds will no longer rid your machine of apps that you’ve gotten through the Store.

That said, there are also known issues in this PC build, which is normal.

  • Interestingly enough, one affects the process of downloading this build — it might seem like it’s not actually downloading through Settings > Update & security > Windows Update, even if it actually is. Sarkar advised people to be patient. (A forum post has more detail.)
  • Various issues relating to the Spectrum.exe program — like a loss of audio and unusually high disk I/O — might pop up. If that happens, Sarkar recommended that people delete C:\ProgramData\Microsoft\Spectrum\PersistedSpatialAnchors and then reboot their PCs. (A forum post has more information on this.)
  • Audio might not work and you may see an error message “Device in use.” Sarkar suggested restarting Windows 10’s audio service.
  • Microsoft knows that Windows may say that “some Settings are managed by your organization” even if that’s not true. (I saw that bug in build 15007.)
  • You might crash the Windows Desktop Window Manager (DWM) and run into display issues if you connect an Xbox controller to your PC while running this build.
  • Netflix might crash at launch, and if it does, then you should try opening it again. Or Netflix will crash when you start watching a movie. Tencent apps and Dota 2 might not work properly. Quicken 2016 might not, either. If you do run into issues with that app in particular, open Registry Editor (Start > type in regedit > right-click on it and select Run as administrator) and change the version from 4.7.XXXXX to 4.6.XXXXX for the following two registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\NET Framework Setup\NDP\v4\Client and HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\NET Framework Setup\NDP\v4\Full.
  • Some Win32 games will (still) minimize and can’t be brought up again when you click on certain things. And certain pages won’t come up in Edge (the error message will say “We can’t reach this page”), in which case, Sarkar suggested you try opening the pages in the browser’s InPrivate mode.
  • And Cortana is still having issues quickly indexing newly installed apps, so you should wait five minutes after installing before saying something like “Hey Cortana, play Drake on Spotify.” (See Sarkar’s blog post for even more known issues and bug fixes.)

If you want to try this new build for PC or mobile, but you’re not a Windows Insider, you can sign up here.

Source: VB
Read More

Monday, January 16, 2017

// // Leave a Comment

Microsoft to End Windows 7 Support in 2020, Pushes Windows 10 Upgrades

Microsoft to End Windows 7 Support in 2020, Pushes Windows 10 Upgrades

Although Microsoft claims that Windows 10 is now more popular than Windows 7, analyst firm NetMarkShare’s monthly usage figures paint a very different picture. In December, for example, Windows 10 hit 24.36 percent globally, but it's dwarfed by Windows 7's 48.34 percent share.

It’s clear that Windows 7 is going to remain the number one desktop operating system for some time to come -- globally at least -- but Microsoft is desperate for those users to switch to Windows 10 and warns that Windows 7 support is coming to an end, and that the OS has outdated security and can’t keep up with today’s security needs.

In a post headed 'An early goodbye to Windows 7! Support ends in three years' Microsoft's German press site tells users that in three years Windows 7 extended support will run out permanently, and that from January 14, 2020 there will be "no security updates, updates and no technical support from Microsoft".
One of the most successful Microsoft operating systems approaches gradually the end of its lifecycle: In three years of extended support of Windows 7 is running out permanently. This means for all customers with Windows 7 PCs that from January 14, 2020 there will be no security updates, updates and no technical support from Microsoft. After more than 10 years on the market a logical decision: 2009 appeared, Windows 7 was the first step on the way to the cloud. Today, Windows 7 can no longer keep up with the increased security requirements.

Rather, it provides for higher operating costs - for example, maintenance, lost working time due to increased malware attacks, or even increased support requests. At the same time, many hardware manufacturers no longer provide drivers for Windows 7, which means that modern peripherals such as printers are no longer recognized. To give users a contemporary interaction between software and hardware, new processor generations only by the respective current Windows platform supports: So Windows 10 is the only version of Windows provides the appropriate support for the latest chips from Intel, AMD and Qualcomm . In addition, many programs are already written or developed for the newer versions of Windows.

For the predecessor Windows Vista the extended support ends already on 11 April this year. Support for Office 2007 is also running out this year.
While Windows 7 support will run out in 2020, that’s still three years away yet, giving users and companies plenty of time to consider whether or not they want to switch, move to Linux or Mac, or just survive without extended support. There's certainly no rush to wave an early goodbye to Windows 7. Third-party security software will continue to work just fine on that OS for many years after the deadline.

If you’re currently using Windows 7, what are your plans for the future? Will you upgrade to Windows 10, if so when, and if not, what do you intend to do once 2020 rolls around? Let us know by commenting below.

Photo credit: Vladimir Gjorgiev / Shutterstock

Source: Betanews
Read More
// // Leave a Comment

Nvidia Shield Gets Nougat Update and 4K HDR Support

Nvidia released the Android 7.0 Nougat update for its original Shield TV, which brings it closer to the new model. Key features in the update are spread across gaming, video and smart home features. 4K HDR is enabled in multiple places as well.

Amazon Video is the first UHD beneficiary, but also Nvidia GameStream (the feature that lets you stream games from your GeForce-powered PC to your Shield). HBO Got got Cast support, Plex now supports high-end speaker configurations (4.1, 6.1 and 8.1) and the Shield remote got a Pause function (double tap the volume slider).

Amazon Video is first UHD beneficiary of Android 7.0 Nougat update

The Nvidia Games app is a one-stop shop for exclusive Android games and GeForce Now titles (like GameStream but it uses the cloud instead of your personal PC). GeForce Now can give you up to GTX 1080 performance.

A handful of new games were added, including The Witcher III: Wild Hunt, The Witness, No Man’s Sky and others. Non-game app additions include NFL, Twitter, Comedy Central and Vimeo. You can also check up on your Nest Cams through the dedicated app.

Nvidia Shield gets Nougat update and 4K HDR support

All this is available with the Shield Experience Upgrade 5.0 (don’t be confused, this is v5.0 of Nvidia’s software, the Android OS is version 7.0). The Shield Tablet is still at v4.4 (based on Android 6.0 Marshmallow).
Read More

Sunday, January 15, 2017

// // Leave a Comment

5 Tech Savvy Things to do on the Side to Earn More Money


Working 9 to 5 is the routine many are familiar with. While some have side businesses where they can earn extra cash, others don't. Regardless, you must have been thinking about how to make more money beyond your day job. This is where technology comes in. Although technology has contributed to job losses, it has also created. In line with this, here are five tech savvy things you can do to earn more money. You just need a little bit of training to learn these things.

1. Designing websites

Every serious business must have a functioning and active website. This is more important for those in the e-commerce sector. Owning a website is not negotiable. You can make money if you find time to learn the act of designing websites. Besides, there are free website design tools anyone can use.

2. Build apps

Like websites, organisations are building apps because of its simplicity and ease of usage. And as smartphone usage rise, businesses will have no choice than to build apps.It is an opportunity you can explore. Of course, you need a few months training. You can start now.

3. Digital photography

You don't necessarily need a camera to take good pictures. Depending on the brand, your smartphone can comfortably do the job of getting crisp and clear images. To be more professional you can use a digital camera. And you can sell these pictures online on Alamy, Shutterstock and Dreamstime.

4. Managing social media

Social media is no longer a joke. Some people are earning money managing social media accounts notwithstanding if it is on a full time or part time basis. It is one of the important places to reach potential customers and also a platform to interact with them. So, hone your social media skills and before you know you will start managing social media accounts.


5. Teach classes online

You can also teach classes online to earn money. If you are very knowledgeable in a particular field, you can offer that skill or subject and get paid. You do this by preparing a course outline and set a fee. You can use udemy.com.
Read More
// // Leave a Comment

Top 5 Website Fails Your Business Should Avoid

Top 5 Website Fails Your Business Should Avoid

Businesses today now consider owning a website a necessity rather than a luxury. This is because they recognize the impact an effective website will have, not only, on their businesses but also publicity. This said, there are some business websites that never attract traffic let alone customers. This may be due to some avoidable mistakes. What are these mistakes? Below are some of them.

It is not mobile friendly

What is the essence of a website if it is not mobile friendly? Mobile phones that are internet savvy are widely used now. It is, therefore, highly possible that mobile users will spend more time on their phones. In addition to this, mobile friendly websites are responsive and the conversion rate is very high. In order to ensure that your website is mobile friendly, use a responsive design, keep your layout simple and test it using tools like Google’s Search Console Mobile-Friendly Test.

Lacks basic information

Your website should contain important and valuable information or content that will help your customers when they have issues. It should have a list of Frequently Asked Questions (FAQs) that provides practical solutions to some of the problems your customers are likely to have. Also, contact numbers on the website must be available. If it lacks this basic information, no one will visit your website.

Takes forever to load

Customers always want to perform an online transaction as fast as possible. If your website is too slow, you will lose customers. This is because there are other online platforms they can patronize. So, ensure that your website is fast. You can test the speed of your website with tools like Pingdom and GTmetrix.

No clear call-to-action

The secondary reason for owning a website is to convert customer visits to sales. This is why your website must have a clear call-to-action. Give your website visitors clear instructions by creating a conspicuous call-to-action. For example, sign up for free and get a certain % off your first purchase.

You do not guide users to different pages

Many businesses restrict their traffic to their website’s homepage rather than sending the customer to the actual page they want. This may be due to the fact that they don’t consider it relevant. But, the fact is that the homepage is not as important to overall web traffic as the other pages besides the homepage.
Read More

Saturday, January 14, 2017

// // Leave a Comment

5 Things You Should Never do on Someone Else's Phone

5 Things You Should Never do on Someone Else's Phone

There are some situations where you find yourself using the phone of a friend, colleague or your significant other. For some people, this may be very uncomfortable because they don't like someone else going through their phones. This is because they store personal information that is not meant for the eyes of just any random individual. And definitely, there are individuals who have the knack for checking other people's phone. What are they looking for? This said, if you find somebody phones in your hands, here are five things you should never do.

1. Do not pick the phone without permission

In some love relationships where trust is absent, the tendency of checking phone without express permission is very high. They check received calls, pick calls and read private messages which are not supposed to be the case. This actions rather than remove the cheating suspicion usually intensify it. Beyond relationships, it is awkward to pick someone else's phone or calls without their permission.

2. Don’t guess the password

If you do not know the password, don't bother to guess the password. This is because if you enter the wrong password, the phone will be locked temporarily. Due to your actions, the owner of the phone has to spend money to unlock. Why not just ask them for the password?

3. Don't use their data

Your friend briefly hands you his phones and the next thing you is to freely use their data to download files and check your emails. You completely forgot that it is not your phone. So, don't use someone else's phone data or WiFi without their consent.

4. Don’t go through their photos

There are all sorts of things that people save on their phones including private photos, videos, and documents. So, if someone hands you their phones, it is not an opportunity to go through their pictures because you may see images that are not meant for your eyes. If you do this, you may end up jeopardizing your relationship with the owner of the phone.

5. Don’t sign out their social media account

You should not sign out the social media accounts of your friend in a bid to sign in yours. Your friend may not remember their passwords because you do not expect them to sign out from their social media accounts or emails when it is their phone.
Read More

Friday, January 13, 2017

// // Leave a Comment

5 Things You Need to Know About Artificial Intelligence


The next big thing in the technology world is artificial intelligence (AI). Big tech organisations like Apple and Google are aggressively investing in AI. Google has been partnering Oxford University to expand Artificial Intelligence. Some examples of everyday AI include iPhone Siri and Microsoft Windows 10 Cortana.

Before going further, it will not be out of place to define AI. Wikipedia simply describes AI as ‘intelligence exhibited by machine”. It further explained that the term AI is applied when a machine mimics cognitive functions that humans associate with other human minds such as learning and problem solving. Now AI is trending. Therefore, here are five things you should know about AI as it would soon become an important part of our daily life just like social media.

1. AI was coined in 1956

The first ever mention of AI was in 1956. John McCarthy was famously quoted at a conference at Dartmouth College, in Hanover, New Hampshire as saying: ‘As soon as it works, no one calls it Artificial Intelligence.” Since its mention, AI has pretty much been evolving to become a popular phenomenon today.

2. Robots will do your job

Perhaps the time is here when human presence will not be required to provide services. It will be the job of Robots to provide the service. A good example of this is the Henn-na hotel in Japan which is the first ever robot-staffed hotel in the world whereby the reception desk is staffed by Robotic Dinosaur. So, be prepared.

3. Autonomous vehicles will be the poster tech of AI

The overall functions of autonomous vehicles are premised on Artificial Intelligence. If Google and car companies eventually perfect their driverless car's technology, it will be a huge boost thus making AI commercially viable. This may even encourage more companies to embrace AI. In fact, driverless cars are already being tested in the United States.


4. There will no more error in saving lives

This is important in the area of medicine. There are reported cases in which fatal mistakes by doctors have led to the death of patients. For example, in Vietnam recently, a man had a pair of surgical scissors removed from his stomach left during an operation 18 years ago. With machine performing surgery, there will be nothing like error or mistakes in saving lives. So the fear of world famous astrophysicist, Prof Stephen Hawking that the development of AI means the end of humanity is unfounded.


5. Computer will be as smart as humans

If you think computers are smart now, you have to reconsider your stance. It is projected that by 2040, computers will be as smart as humans. Thanks largely to Artificial Intelligence.
Read More

CSCPT - Subscribe To Our Email Newsletter

Computer Science Programming Tutorials (CSCPT) is a blog for sharing free programming tutorials, free source codes, eBooks, software downloads and latest technology news.


The following are some of the advantages of subscribing to our newsletter:

  • You get the latest updates sent daily to your inbox.
  • Never miss a post.
  • Be notified of freebies - ebooks, software, etc.