There are 10 letters in the word PROPORTION, namely OOO, PP, RR, I, T and N. Show
(b) The four-letter word may consists of Now, we shall discuss these four cases one by one. These four letters can be arranged in \[\frac{4!}{3! 1!}\]ways. (ii) There are 3 sets of two alike letters, which can be selected in 3C2 ways. (iii) There are three sets of two alike letters, which can be selected in 3C1 ways. (iv) There are 6 different letters. ∴ Total number of ways = 20 + 18 + 360 + 360 = 758 In how many ways can the letter of the word PROPORTION be arranged by taking 4 letters at a time? Solution: below I've wrote letters without repeated words and then how many times particular word repeated from the question here we gonna select 4 words hence we have the following chance to select those 4 words Chance 1: 3 O and remaining 1 are different (That means (O,O,O)--> 3 word and
(P,R,T,I,N) ---> 1 word from the 5) Chance 2: two of same words and other two of the same words (here (O,O,O), (T,T) and (P,P) out of 3 pairs we gonna select 2 pair of words ) Chance 3: Two of same words and other two are different words (here (O,O,O), (T,T) and (P,P) out of 3 pairs we gonna select 1 pair of word and other 2 word from (R, O, I, N, T) words consider P,P has been selected pair ) Chance 4: All 4 are different ( here P, R, O, T, I , N out of 6 we gonna select 4 words) Hence finally add all the chances = 20 + 18 + 360 + 360 = 758 ways is the answer Popular posts from this blog
In this post I'm going to post details about how to hide full Gridview by selecting individual gridview row and show that gridview row details in Formview; In this example, I'm using AdventureWorks Database and datebase table name HumanResources.Employee Click here to Download AdventureWorks Database Here I'll post the code and snapshot details 1. Design View Add connection string code in web.config as below : <connectionstrings> <add name="connection" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=AdventureWorks;Integrated Security=true;" providerName="System.Data.SqlClient"/> </connectionStrings> 2.Design View's Source code in Default.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T Jsp / Java Password Encrypt and Decrypt Example
From Previous post Now in this post I will use Encryption/ Decryption mechanism on password input password field using AES algorithm , I am just adding UtilsSecure. java class and it has two methods; 1. Encrypt Method encrypt(String strToEncrypt) to encrypt the user given password to cipher text 2. Decrypt Method decrypt(String strToDecrypt) to decrypt the ciper text back to original password content. Below code shows UtilsSecure.java class file package com.ajax.example; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Option; import org.apache.commons.cli.Options; import org.apache.commons.cli.PosixParser; import org.apache.commons.codec.binary.Base64; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class UtilsSecure { static Log lo How to use Multi-Select Dropdown List in html select input using Jquery in JSP page with limited selections ?
Below Code Snippet shows Selecting Multiple Values $(document).ready(function() { $("#multiselect").dropdownchecklist( { onItemClick: function(checkbox, selector){ var justChecked = checkbox.prop("checked"); var checkCount = (justChecked) ? 1 : -1; for( i = 0; i < selector.options.length; i++ ){ if ( selector.options[i].selected ) checkCount += 1; } if ( checkCount > 3 ) { alert( "Limit is 3 fruits to choose" ); throw "too many"; } },width: 250 }); }); Below code index.jsp page with jquery javascript, css, Ui, codes are imported <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content=" How many different ways can all the letters of the proportion be arranged?Now, each combination can be arranged in 4! 3! . Hence, 758 ways of 4 letter words can be arranged by the letters of the word PROPORTION.
How many distinct permutations can be made from the letters of the word proportion?So, all possible number of arrangements =360+360+18+20=758 ways.
How many words can be formed by arranging the letters of the word proportion such that the words begin with vowels?=720. Was this answer helpful?
How many 4 letter words can be formed using the letter of the word permutations?Hence, the letters of the word " PERMUTATIONS " can be arranged in 1814400 ways so that there are always 4 letters between ' P ' and ' S ' .
|