Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

On reprend l'exercice pr c dent , mais cette fois - ci les termes du nombre hexad cimal sont enregistr s dans un tableau de

On reprend l'exercice prcdent, mais cette fois-ci les termes du nombre hexadcimal sont enregistrs dans un tableau de string.
Exemples de tableaux de chaine de caractres passe en argument :
\table[[A,"S","E"]]
\table[[1,3,5,"B","D","4","F"]]
Vous devez complter le sous-programme suivant :
Function comparaison(deci As Integer, hexa() As String) As Integer
If deci 0 Then Return
Dim a As Integer
Din b As String
Dim i As Integer =0
Do
If i Then Return 1
a = deci Hod 16
deci = deci ??16
If a0 And a9 Then
b =cstr(a)
Elseif a-10 Then
b ="A"
Elself a=11 then
b ="B"
ElseIf a=12 Then
b ="C"
Elself a=13 Then
b="D"
Elself a-14 Then
b="E"
Elself a=15 then
b="F"
End If
If en Return 1i=1+1
Loop While deci >0
If 1
Then Return
Return
End functio.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago