Write a program using the skills you have learned so far to ask the user to select between a 6,12 or 20 sided dice and then to display 5 rolls of that dice. The program should only stop asking when the user enters zero.
Solution after the break
Write a program using the skills you have learned so far to ask the user to select between a 6,12 or 20 sided dice and then to display 5 rolls of that dice. The program should only stop asking when the user enters zero.
Solution after the break
Description and exemplification of the following constructs in pseudocode and an appropriate high level language: string operations (concatenation and substrings)
String and string handling are the bread and butter of all programs. Today we looked at how the programmer can cut (substring) and paste (concatenation) strings together.
Concatenation is a scary-looking word, but it simply means “joining together”. String concatenation means joining two (or more) strings together to form one new string: String concatenation in VB is very simple – you don’t need a special function – you just use the + sign.
For example,
Create a program that displays the ASCii codes of all the characters of a string that is entered by the user, solution after the jump.