[solved] – Question 74903
Fix the following code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace @if
{
public partial class Form1 : Form
{
int secretNumber = 9;
int anyNumber;
public Form1()
{
InitializeComponent();
}
private void btnGuess_Click(object sender, EventArgs e)
{
anyNumber = Convert.ToInt32(textBoxInput.Text);
if (anyNumber < secretNumber)
lblOutput.Text = “Number is low”;
if (anyNumber > secretNumber)
lblOutput.Text = “Number is high”;
else
lblOutput.Text = “Number is correct”;
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}
Expert Answer
[solved] – Question 74906
Write a program that reads in a single word and converts each letter into its position in the
alphabet (for instance, A→ 0, B→ 1, etc). The text will only contain uppercase letters. Your
output should consist of a single line containing each character’s position in the alphabet. Numbers
should be separated by a single space space
Expert Answer
[solved] – Question 74907
write a program that accepts a number of
integers, converts them to the corresponding letters, and outputs the resulting string.
Expert Answer
[solved] – Question 74909
converts the encrypted letters
back into their originals.
Expert Answer
[solved] – Question 74918
The sum of a series can be computed as sum=x+x^2/2+x^3/3+x^4/4+x^5/5+⋯ ∞<x<∞ stopping when either n terms have been added or when the magnitude of a term in the series is less than 10-6, whichever comes first.
You are required to write a function, sumSeries, which given x, n returns the sum of the series. Use #include <cmath> and the abs function.
Do not use pow.
Expert Answer
[solved] – Question 74919
Write a function, smallest, which given positive integer n and a positive integer key returns the smallest digit in n greater than key. For example if n is 8150 and key is 3, the function returns 5. Your function should also work if there is no digit in n smaller than key.
Expert Answer
[solved] – Question 74965
Write a function, smallest, which given positive integer n and a positive integer key returns the smallest digit in n greater than key. Your function should also work if there is no digit in n smaller than key.
Expert Answer
[solved] – Question 74995
The application of computer science in africa education. Basic requirement : Relative computer science technology, knowledge of software engineering , knowledge relative database system . Understand the requirement of Africa education.
Expert Answer
[solved] – Question 75071
Write a C program that reads 10 integers (between 0-1000) into a one-dimensional array
and computes and finds the value that has the largest chain. You should compute the
largest chain as explained below.
Example:
For each value (n) in your array, your chain will be determined as follows;
If n is even -> n=n/2
If n is odd -> n=3n+1
For example , if 12 is your starting number , the chain will be ,
6 -> 3 -> 10 -> 5 ->16 -> 8 -> 4 -> 2 -> 1
12 is even so 12/2 will be 6.
6 is even 6/3 will be 3.
3 is odd 3*3+1 will be 10.
.
.
.
The chain will grow until the value is 1.
Write a function called findLargestChain() that accepts an integer, finds and prints the
chain elements to the screen , and returns the number of elements.
You should store the number of elements into another array.
In the main program, you should read 10 integers into an array , call the function for each
integer and store the number of elements into another array.
Expert Answer

