Using the Windows Starter Visual Studio project create the following five programs. 1. Write a program that will store address information in unique values and then display the full address in a window at runtime (10pts). Example: Sam Coder 1 Main Street Kansas City, MO 64018 2. Write a program that will swap the City and State fields and then display the full address in a window at runtime (10pts). Example: Sam Coder 1 Main Street MO, Kansas City 64018 3. Write a program that will add the following numbers together: 21, 20, 19 then display the results in a window at runtime (10pts). 4. Write a program that will multiply the following numbers together: 5, 10, 15 then display the results in a window at runtime (10pts). 5. Write the temp program found on page 119 Figure 4.23 (10pts) Submission Details: Copy each program into its own text file and then upload each text file. Note: Do not zip the files or you will lose points when graded. The text file names: Lab4_1.txt Lab4_2.txt Lab4_3.txt Lab4_4.txt Lab4_5.txt
Note - Adding the answer below, because i didn't find the option to upload .txt file.
------------------------------------------------------------------------------lab4_1.txt---------------------------------------------------------------------------
using System;
using System.Linq;
using System.Text;
namespace SaveInformation
{
class Program
{
static void Main(string[] args)
{
string Name = "Sam Coder";
string Address = "1 Main Street";
string City = "Kansas City";
string State = "MO";
string Zip = "64018";
Console.WriteLine(Name);
Console.WriteLine(Address);
Console.WriteLine(City + " , " + State + " " + Zip );
Console.ReadLine();
}
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------lab4_2.txt---------------------------------------------------------------------------
using System;
using System.Linq;
using System.Text;
namespace SaveInformation
{
class Program
{
static void Main(string[] args)
{
string Name = "Sam Coder";
string Address = "1 Main Street";
string City = "Kansas City";
string State = "MO";
string Zip = "64018";
Console.WriteLine(Name);
Console.WriteLine(Address);
Console.WriteLine(State + " , " + City + " " + Zip );
Console.ReadLine();
}
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------lab4_3.txt---------------------------------------------------------------------------
using System;
using System.Linq;
using System.Text;
namespace SaveInformation
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(21+20+19);
Console.ReadLine();
}
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------lab4_4.txt---------------------------------------------------------------------------
using System;
using System.Linq;
using System.Text;
namespace SaveInformation
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(5*10*15);
Console.ReadLine();
}
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------lab4_5.txt---------------------------------------------------------------------------
using System;
using System.Linq;
using System.Text;
namespace SaveInformation
{
class Program
{
static void Main(string[] args)
{
float cTemp = 35f;
float fTemp;
fTemp = (9 / 5) * cTemp + 32;
Console.WriteLine("Temperature in Fahrenheit is "+ fTemp);
Console.ReadLine();
}
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Using the Windows Starter Visual Studio project create the following five programs. 1. Write a p...
Using the Windows Starter Visual Studio project create the following two programs. 1. Write a program that will loop three times and raise the number 25 to the third power (25pts). (25*25*25) Note: Make sure you have a large enough memory for the final number 2. Write a program using a whileSum that adds one to the index until it is five (25pts). Sample: mov sum, 0 ; sum := 0 mov ecx, 1 ; count := 1 whileA:...
Please help me with the following requirements for JavaScript. Write a function to take a temperature value in Celsius as an argument and return the equivalent temperature in Fahrenheit, basing it on the code from Hour 2. //Original Code <!DOCTYPE html> <html> <head> <title>Fahrenheit From Celsius</title> </head> <body> <script> var cTemp = 100; // temperature in Celsius var hTemp = ((cTemp * 9) /5 ) + 32; document.write("Temperature in Celsius: " + cTemp + " degrees<br/>"); document.write("Temperature in Fahrenheit: "...
Write a program named FahrenheitToCelsius that accepts a temperature in Fahrenheit from a user and converts it to Celsius by subtracting 32 from the Fahrenheit value and multiplying the result by 5/9. Display both values to one decimal place. For example, if 88.5 degrees is input, the output would be: 88.5 F is 31.4 C Answer in C# (Posting incomplete code i have so far that wont run correctly.) using System; using static System.Console; class FahrenheitToCelsius { static void Main()...
Using Microsoft Visual Studio. 1) Complete the following C++ program by adding more line of code for 8-bit signed array, 16-bit unsigned array, 16-bit signed array, 32-bit signed array and 32-bit signed array. 2) Fill in all the blanks in Table 1 using your completed code, following the hints provided within the table. 3) Fill in all the blanks in Table 2 using your completed code, following the hints provided within the table. C++ Program #include <stdio.h> #include <iostream> int...
Programming Exercise 8.3 | Instructions Write a GUI-based program that allows the user to convert temperature values between degrees Fahrenheit and degrees Celsius. The interface should have labeled entry fields for these two values. breezypythongui.py temperatureconvert... + 1 2 File: temperatureconverter.py 3 Project 8.3 4 Temperature conversion between Fahrenheit and Celsius. 5 Illustrates the use of numeric data fields. 6 • These components should be arranged in a grid where the labels occupy the first row and the corresponding fields...
THE ATTACHMENTS:( needed to solve the problem
above)
(1) My Morse Code Program:
#03/22/2018
#Creating a program that translates sentences in to morse code
def main():
morsecode_dict={}
line=""
f1 = open("MorseCode.txt",'r');
content = f1.readlines()
for x in content:
#print x
x=x.split()
my_dict[x[0]]=x[1]
print (morsecode_dict)
val=raw_input("Enter a String value: ")
val.upper()
output=""
for i in val:
print (i.upper())
if(i!=' '):
output = output + morsecode_dict[i.upper()]+' '
else:
output = output+'\n'
print ("-----Morse Code of The...
Using the following create the nessecary static methods to pass
random arrays with the TempartureWithArrays and Temperature
classes
--------------------------------------------------------------------------------------
public class TemperatureWithArrays
{
public static final int ARRAY_SIZE = 5;
public static void main(String[] args)
{
int x;
Temperature temp1 = new
Temperature(120.0, 'C');
Temperature temp2 = new
Temperature(100, 'C');
Temperature temp3 = new
Temperature(50.0, 'C');
Temperature temp4 = new
Temperature(232.0, 'K');
Temperature tempAve =...
Lab Objectives Be able to write methods Be able to call methods Be able to declare arrays Be able to fill an array using a loop Be able to access and process data in an array Introduction Methods are commonly used to break a problem down into small manageable pieces. A large task can be broken down into smaller tasks (methods) that contain the details of how to complete that small task. The larger problem is then solved by implementing...
You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...
1-Suppose you write an application in which one class contains code that keeps track of the state of a board game, a separate class sets up a GUI to display the board, and a CSS is used to control the stylistic details of the GUI (for example, the color of the board.) This is an example of a.Duck Typing b.Separation of Concerns c.Functional Programming d.Polymorphism e.Enumerated Values 2-JUnit assertions should be designed so that they a.Fail (ie, are false) if...