How to convert a "apple"to "APPLE" with ascii code using flowchart - ascii

How to convert a "apple"to "APPLE" with ascii code using flowchart
i wrote it with python put how can i convert it to flowchart
sum=''
i=1
while i<=5:
a1=input("plz input character : ")
a=chr(ord(a1)-32)
sum=sum+a
i=i+1
print (sum)

Don't exactly know what you want but maybe try this?
https://code2flow.com/
I did it there and maybe this is what you are looking for?
So something like this?

Related

How to delete quotation mark in text file printed

I'm honestly a novice on scilab.
I'm using print function to create .txt file with my character matrix in it.
But , when I open txt file, double quote appeared. I just want words without "".
This is how I'm using print
Compterendu(1,1)= "Medecin demandeur: "
fileresname= fullfile(RES_PATH, "compterendu.txt")
print(fileresname,Compterendu)
And, compterendu.txt was printed out like this.
Would be so grateful for any help!!
Thanks
Why do you use "print" ? After looking into the doc, yes, it is used to produce the same text as when you type the expression or the variable name on the command line. Hence it does print double quotes for strings. If you need something more basic use lower level i/o commands, like mputl.
S.

How to type letters in floral form in word using latex command?

I'm inputing equations in word 2019. I like to use latex command to input equation in word. But I can't type floral letter using latex, \mathbb()
What I did is as follows.
First, I click alt and option key at the same time. Second, I type "\mathbb(N)", but I didn't get the N in floral form.
I don't know the reason. Did I use wrong latex code? Could you help me with some latex code that can produce a correct result?
I have an alternative method. First, I type the equation using "Typora". Second, I convert the markdown file to word format. Then, I can get the floral form of alphabets. But it is wasteful. Would you like to give me some good suggestions?

How to get first zeroes and add to the power?

I have a variable in visual basic 2010, with the value of 0,000041 and how to make this value like this? 4.1E-5
Thank you.
the values are the same but if you want to print it or get a string out of it you can use the "E" or "e" format string:
(0.000041).ToString("E");
which should give you something like "4,100000E-005"
you can even specify how many significant digits you like with a number after:
(0.000041).ToString("e1");
gives you "4,1e-005"
you can find this and much more in the MSDN Docs

return line of strings between two strings in a ruby variable

I would like to extract a line of strings but am having difficulties using the correct RegEx. Any help would be appreciated.
String to extract: KSEA 122053Z 21008KT 10SM FEW020 SCT250 17/08 A3044 RMK AO2 SLP313 T01720083 50005
For Some reason StackOverflow wont let me cut and paste the XML data here since it includes "<>" characters. Basically I am trying to extract data between "raw_text" ... "/raw_text" from a xml that will always be formatted like the following: http://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3&mostRecent=true&stationString=PHNL%20KSEA
However, the Station name, in this case "KSEA" will not always be the same. It will change based on user input into a search variable.
Thanks In advance
if I can assume that every strings that you want starts with KSEA, then the answer would be:
.*(KSEA.*?)KSEA.*
using ? would let .* match as less as possible.

How to search for regex and replace the characters from string in ruby?

Let's say I have a string:
asd;;%$##!G'{}[]
Now I want to escape special symbols:
;&|><*?`$(){}[]!#
So, the output will be something like:
asd\;\;%\$#\#\!G\'\{\}\[\]
How can I achieve this using gsub/sub in Ruby?
test_value = "asd;;%$##!G'{}[]"
SPEC_REGEXP = /((;)|(\&)|(\|)|(>)|(<)|(\*)(\?)|(`)|(\$)|(\()|(\))|({)|(})|(\[)|(\])|(!)|(#))/
test_value.gsub!(SPEC_REGEXP,'\\\\\1')
Here's pretty much the same idea as in soundar's solution (but using character classes and no capturing):
"asd;;%$##!G'{}[]".gsub(/[;&|><*?`$(){}\[\]!#]/, '\\\\\\0')

Resources