Input alphabetic characters into a text box and add the letters together based on their place in the alphabet (a = 1, b = 2, etc.) and display if sum is prime

Overview

Groundswell Technical Challenge

Description

The page should allow up to ten letters of the alphabet to be entered into a text input field. It also has a display button, named Calculate, which when clicked will perform the following functionality:

  • Translate each alphabetic character entered as follows – a=1, b=2, c=3, and so on to z=26
  • Add the numeric values of each translated character together and display the result on the page
  • Check whether the result is a prime number or not and display some text saying which it is

Example 1: Input: aaa Output: 3 is a prime number

Example 2: Input: abc Output: 6 is not a prime number

Example 3: Input: azb Output: 29 is a prime number

Main Screen

Technical Notes

This app uses Vue.js with no back end. It has a custom function library called prime.js stored inside the helpers directory. It uses Mocha and Chai for unit tests, HTML and CSS for styling, and two Vue components called Navbar and Calculate.

Requirements

This project requires Node 14.15

Project setup

Step 1: Install Dependencies

npm install

Step 2: Run Development Server

npm run serve

Step 3: View website

localhost:8080

Step 4: Option to run unit tests

npm run test:unit

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint
You might also like...
SimpleLog - Event tracking all in 1 place! Free & Open Source
SimpleLog - Event tracking all in 1 place! Free & Open Source

Notice. Full stop. This was originally a fun & simple hackathon submission, and a demo for dev to learn about Nuxt3, Supabase, Unocss and other plugin

All your medical records in one place using the DeSo network. PHS Hacks 2022
All your medical records in one place using the DeSo network. PHS Hacks 2022

Immunize All your medical records in one place using the DeSo network. How To Run Locally Install dependencies (run yarn in the frontend and backend f

Task nr 2 - Frontend Software Engineer. Web-app listing user's repositories based on their popularity.

user_repos Project setup npm install Compiles and hot-reloads for development npm run serve Compiles and minifies for production npm run build Lint

A simple website for developers resources (Websites, Tools, Icons, Videos… etc)

CSIT-Dev-Res This template should help get you started developing with Vue 3 in Vite. Recommended IDE Setup VSCode + Volar (and disable Vetur) + TypeS

A digital e-commerce project. Here you can sale your digital arts, photos, graphics, illustration etc.

A digital e-commerce project. Here you can sale your digital arts, photos, graphics, illustration etc.

A full stack web based application to dynamically display resume material in a professional manner.

Current Version 0.1.0 Portfolio-Display A full stack web based application to dynamically display resume material in a professional manner. Getting St

This app allows you to consult relevant information from Github users through their username, it is fully responsive and has light and dark themes that adapt according to your preferences.
This app allows you to consult relevant information from Github users through their username, it is fully responsive and has light and dark themes that adapt according to your preferences.

This app allows you to consult relevant information from Github users through their username, it is fully responsive and has light and dark themes that adapt according to your preferences.

Create a toxic-free and negativity-free platform for users to share their latest creation or idea
An open social network where anyone can share their ideas and opinions.

Supagram An open social network where anyone can share their ideas and opinions. Demo Supagram Supabase Hackathon This project was started to particip

Owner
Luke Oloffs
Luke Oloffs
✒️ Copy commonly used characters to your clipboard

Kirby Punctuation Section This plugin provides a simple, customizable section for your Kirby project from which your clients can quickly copy commonly

Johann Schopplich 19 Dec 22, 2022
This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.

This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.

null 2 May 22, 2021
Directus-extension-display-link - Display URLs with an open in new tab icon link in Directus 9

directus-extension-display-link Display URLs with an open in new tab icon link i

Jacobo Tabernero 32 Jan 4, 2023
Image to Text is a web tool to extract text from any image using OCR

Image to Text OCR Image to Text OCR is a utility website made by Alejandro Akbal for extracting text from any image using OCR. This tool was made for

Alejandro Akbal 83 Dec 13, 2022
Crypto News allows you to convert cryptocurrencies, view latest news and exchange rates for each ICO – all the data from the world of cryptocurrencies in one place.

Crypto News Crypto News allows you to convert cryptocurrencies, view latest news and exchange rates for each ICO – all the data from the world of cryp

Bartosz Łaniewski 26 May 12, 2022
Bookflix - A place to manage, explore and review books.

Bookflix Bookflix - A place to manage, explore and review books all from your browser. Inspired by a display in my English Classroom. Written in Vue,

Harry Hopkinson 7 Dec 6, 2022
Rise of the Dead is a single player RPG that takes place during an apocalypse and the down fall of humanity. Can you restore humanity to conquer back the world?

Rise of the Dead [An apocalyptic single-player idle game.] Game Description A simple text-based RPG during the apocalypse. You are a founder of a smal

Kenzie Noggle 1 Dec 28, 2021
📖 All your articles in one place. Beautiful.

All your articles in one place. Beautiful. Download To download, please visit https://ravenreader.app. Install via Homebrew (macOS) To use Homebrew-Ca

Hello Efficiency 2.5k Jan 2, 2023
BookSplore - A Place to Enjoy Books

Booksplore is a website where you can enjoy, and explore the world of books - with your friends, and in the comfort of your browser! It offers a safe online environment for you to engross yourself in the world of books with your friends.

null 26 Dec 23, 2022
Free Online Courses In One Place - TELEUNI allows you to search a wide range of free online courses available on the Internet.

Free Online Courses In One Place - TELEUNI allows you to search a wide range of free online courses available on the Internet.

Risako 4 Jan 3, 2022