Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Q:Displaying live currency information on the screen with MVC Explanation Live display of central bank data (Central Bank of Republic of Turkey) on MVC screen.

Q:Displaying live currency information on the screen with MVC Explanation Live display of central bank data (Central Bank of Republic of Turkey) on MVC screen. After entering the screen once, without any post or get operation. showing the change of data live and indicating the row or data with a small animation so that the changing data can be perceived by the user. Continuously logging this data in the SQL database and listing it hourly on a separate page. Web address for currency information: https://www.tcmb.gov.tr/wps/wcm/connect/en/tcmb+en/main+page+site+area/today

THS S Asp.net Core MVC (C#) SignalR:

Code Snippet

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace Program

{

class Changer

{

static void Main(string[] args)

{

int totalCents, quart, dim, nic, pen;

totalCents = GetValue();

quart = GetTheCalculationq(totalCents);

totalCents = totalCents - quart * 25;

dim = GetTheCalculationd(totalCents);

totalCents = totalCents - dim * 10;

nic = GetTheCalculationn(totalCents);

totalCents = totalCents - nic * 5;

pen = totalCents;

DisplayResults(pen, quart, dim, nic);

Console.ReadLine();

}

static int GetValue()

{

string pen;

int coin;

Console.WriteLine("Enter the currency:");

pen = Console.ReadLine();

coin = int.Parse(pen);

return (coin);

}

static int GetTheCalculationq(int totalCents)

{

int quarters;

quarters = (totalCents / 25);

return (quarters);

}

static int GetTheCalculationd(int totalCents)

{

int dimes;

dimes = (totalCents / 10);

return (dimes);

}

static int GetTheCalculationn(int totalCents)

{

int nickels;

nickels = (totalCents / 5);

return (nickels);

}

static void DisplayResults(int pen, int quart, int dim, int nic)

{

Console.Write("There are {0:F} pennies. ", pen);

Console.Write("There are {0:F} nickels. ", nic);

Console.Write("There are {0:F} dimes. ", dim);

Console.Write("There are {0:F} quarters. ", quart);

}

}

}

IN ADDITION THS CODE WE WANT:Entity Framework Core (Sql server, postgreSQL)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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