92 Words1 Page

#include
#include
void main(){ int n,i=0,k,digit; char * ptr[100]; printf("Enter any integer: "); scanf("%d",&n); while(n){ digit = n %10; n = n /10; switch(digit){ case 0: ptr[i++] = "zero"; break; case 1: ptr[i++] = "one"; break; case 2: ptr[i++] = "two"; break; case 3: ptr[i++] = "three"; break; case 4: ptr[i++] = "four"; break; case 5: ptr[i++] = "five"; break; case 6: ptr[i++] = "six"; break; case 7: ptr[i++] = "seven"; break; case 8: ptr[i++] = "eight"; break; case 9: ptr[i++] = "nine"; break;
} } for(k=i-1;k>=0;k--){ printf("%s ",ptr[k]);

Related

## Pt2520 Unit 3 Datatype Analysis

643 Words | 3 PagesThe first 2 bytes can represent up to the year 2079. Compression can always save 2 bytes here until that point. datetime2 Uses the integer data representation by using 6 to 9 bytes. The first 4 bytes represent the date. The bytes taken by the time will depend on the precision of the time that is specified.

## Pt1420 Unit 1 Language Analysis

309 Words | 2 Pagesx = 10 while x != 0: print x x = x - 1 print " we 've counted x down, and it now equals", x print "And the loop has now ended." Boolean Expressions So, above, where we talked through w to write a “while” loop, you see where we put “condition that the loop continues”? What goes in here is what we call a Bool- ean expression. All that means is a question that can be answered with a TRUE or a FALSE re- sponse. Let’s say that you wanted to put that your age is the same as that of the person sat next to you.

## Nt1330 Unit 2 English Language Programs

122 Words | 1 Pagesusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace HuffmanTest { class Program { static void Main(string[] args) { string ecoilText = File.ReadAllText(@"\ny-fs1UserssmechineniDesktopHauffmanecoli.txt").Replace(" ", ""); Dictionary charFrequency = new Dictionary(); charFrequency["A"] = ecoilText.Count(f => f == 'A '); charFrequency["C"] = ecoilText.Count(f => f == 'C '); charFrequency["G"] = ecoilText.Count(f => f == 'G '); charFrequency["T"] = ecoilText.Count(f => f == 'T '); IList list = new List(); for (int i = 0; i < charFrequency.Count; i++)

## Chapter 1 Kinematics Essay

7181 Words | 29 PagesThe weight is a red herring and isn’t used in the problem. A: This answer came from not converting the 55 centimeters to meters. B: While this answer may look like dividing answer A by 10, it actually came from finding out how long it would take the ball to return to 2.1 meters high. C: This answer comes from multiplying the acceleration by the distance the shot was in Steve’s hand. D: To calculate how long he has to get out of the way, the velocity the shot leaves his hand must be calculated first using v_f^2= v_i^2+2a(x_f- x_i ) where vi = 0 m/s, a = 42 m/s2 and (xf – xi) = 0.55 m. the velocity when the shot leaves his hand is 6.8 meters per second.

## Nt1310 Unit 6 Assignment 1

117 Words | 1 PagesFor example; M = 4 bits, N = 16 bits If P(j) = 1 (Propagation); then Group(j) will be skipped X(j): m-bits of group (j) Y(j): m-bits of group (j) Cin(j): Carry in to group(j) Cout(j) = Cin(j+1): Carry out of group(j) = Carry in to next group(j+1) (j): Group(j) consisting of m-bits numbers to add Fig 5.14: Carry Skip Adder Block diagram Table 5.3: Carry out Cases Table Case Xi Yi Xi + Yi Ci+1 Comment Ci = 0 Ci = 1 1 0 0 0 1 0 Kill (STOP) Carry In 2 0 1 1 0 Ci Propagate Carry In (P) 1 0 1 0 Ci 3 1 1 0 1 1 Generate (Carry Out)

## Nt1310 Unit 10 Lab Report

302 Words | 2 Pages%% Init % clear all; close all; Fs = 4e3; Time = 40; NumSamp = Time * Fs; load Hd; x1 = 3.5*ecg(2700). '; % gen synth ECG signal y1 = sgolayfilt(kron(ones(1,ceil(NumSamp/2700)+1),x1),0,21); % repeat for NumSamp length and smooth n = 1:Time*Fs '; del = round(2700*rand(1)); % pick a random offset mhb = y1(n + del) '; %construct the ecg signal from some offset t = 1/Fs:1/Fs:Time '; subplot(3,3,1); plot(t,mhb); axis([0 2 -4 4]); grid; xlabel( 'Time [sec] '); ylabel( 'Voltage [mV] '); title( 'Maternal Heartbeat Signal '); x2 = 0.25*ecg(1725); y2 = sgolayfilt(kron(ones(1,ceil(NumSamp/1725)+1),x2),0,17); del = round(1725*rand(1)); fhb = y2(n + del) '; subplot(3,3,2); plot(t,fhb, 'm '); axis([0 2 -0.5 0.5]); grid; xlabel( 'Time [sec] '); ylabel(

## Pt1420 Unit 4 Research Paper

78 Words | 1 PagesWrite 9-4x^2-x+2x^4 in standard form You first look at all the the numbers in the polynomial and see which coefficient has the highest number exponent. (the degree) which is 2x^4. Then you keeping descending down so -4x^2 would be next. Then you look at the numbers and variables in the problem, all you have left is 9 and -x you always put the variable first so it would be -x, then 9. So your answer would be

## Pierre De Fermat's Last Theorem

908 Words | 4 PagesHe determined that there was a finite amount of positive integers less than any given positive integer, which led to the proposition famously known as Fermat’s Last Theorem. In modern notation, this contends that if a, b and c are integers greater than 0, and if n is an integer greater than 2, then there are no solutions to the equation: an + bn = cn [3] . For instance, when n is equal to 1 or 2 there exists an infinite amount of integer solutions to the above equation. However, for n greater than or equal to 3, there are no natural numbers for which the statement is true. This equation could also be interpreted as a more general version of the Pythagorean Theorem, as both are concerned with the sums of squares of whole numbers.

## Japanese Synthesis Lab Report

906 Words | 4 PagesCHAPTER 3 EXPERIMENTAL PROCEDURE 3.1 Materials & Reagents Adsorption of Cu (II) was studied using Montmorillonite-K 10, procured from Sigma Aldrich. It is a very soft phyllosilicate group of minerals that typically form in microscopic crystals, forming clay. Its Cation Exchange Capacity, CEC was 119 meq/100 g .The elemental composition of this clay was [Al1.47Fe0.29Mg0.23][Al0.076Si3.29]O10(OH)2 as reported by the supplier. This MMT was used as such without any further purification. Tri-Octyl Amine(TOA) was the product of Tokyo Chemical Industry Co., Ltd. Japan, which had a purity of about 98% and was procured from Sigma Aldrich.

## Conservation Of Energy Lab

1429 Words | 6 PagesAfter gathering that data then the group was able to calculate the final speed by the formula: vi+at. The initial velocity being zero, acceleration being 9.8 m/s^2, and time alternating between the times given according to the different balls. Next was the calculation of the potential energy, the formula being: mgh. Mass varied for every ball while the gravity was always 9.8 m/s^2 and the height was always 2m. Then the calculation of kinetic energy, the formula being: 1/2mv^2.

## Nt1310 Unit 5 Study Guide Answers

437 Words | 2 Pages")); while(1); } Serial.println(F(" Deleting old connection profiles")); if (!cc3000.deleteProfiles()) { Serial.println(F("Failed! ")); while(1); } Serial.print(F(" Attempting to connect to ")); Serial.println(WLAN_SSID); if (!cc3000.connectToAP(WLAN_SSID, WLAN_PASS, WLAN_SECURITY)) { Serial.println(F("Failed! ")); while(1); } Serial.println(F("Connected! ")); Serial.println(F("Request DHCP")); while (!cc3000.checkDHCP()) { delay(100); // ToDo: Insert a DHCP timeout! } /* Display the IP address DNS, Gateway, etc.

### Pt2520 Unit 3 Datatype Analysis

643 Words | 3 Pages### Pt1420 Unit 1 Language Analysis

309 Words | 2 Pages### Nt1330 Unit 2 English Language Programs

122 Words | 1 Pages### Chapter 1 Kinematics Essay

7181 Words | 29 Pages### Nt1310 Unit 6 Assignment 1

117 Words | 1 Pages### Nt1310 Unit 10 Lab Report

302 Words | 2 Pages### Pt1420 Unit 4 Research Paper

78 Words | 1 Pages### Pierre De Fermat's Last Theorem

908 Words | 4 Pages### Japanese Synthesis Lab Report

906 Words | 4 Pages### Conservation Of Energy Lab

1429 Words | 6 Pages### Nt1310 Unit 5 Study Guide Answers

437 Words | 2 Pages