Best writers. Best papers. Let professionals take care of your academic papers
Order a similar paper and get 15% discount on your first order with usUse the following coupon "FIRST15"
ORDER NOW
using style=”color:#000000;background-color:#FFFFFF;”> System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace iLab6{ class Program { static void Main(string[] args) { double[] chevyCars = new double[8]; double[] fordCars = new double[8]; String[] chevyCarsStr = new String[8]; String[] fordCarsStr = new String[8]; int chveyWin = 0; int fordWin = 0; float diff = 0.0; //input values for chevy Console.Write(“Enter the times for the Chevy cars: “); chevyCarsStr = Console.ReadLine().Split(‘ ‘); for (int i = 0; i < 8; i++) { chevyCars[i] = Convert.ToDouble(chevyCarsStr[i]); } //input values for Ford Console.Write(“Enter the times for the corresponding Ford cars: “); fordCarsStr = Console.ReadLine().Split(‘ ‘); for (int i = 0; i < 8; i++) { fordCars[i] = Convert.ToDouble(fordCarsStr[i]); } Console.WriteLine(“And the winners are: “); for (int i = 0; i < 8; i++) { diff =(float)( chevyCars[i] – fordCars[i]); if (diff == 0.0) { Console.WriteLine(“Tie!”); } else if (diff < 0.0) { Console.WriteLine(“Chevy by ” + -1*diff + ” sec”); chveyWin++; } else { Console.WriteLine(“Ford by ” + diff + ” sec”); fordWin++; } } if (chveyWin < fordWin) { Console.WriteLine(“And the winning team is: F O R D !”); } else if (chveyWin > fordWin) { Console.WriteLine(“And the winning team is: C H E V Y !”); } else { Console.WriteLine(“And the winning team is: N O N E !”); } } }}
About Us
![]()
Since 2010, we have offered professional writing services to clients all over the world.
Over the years, our writers have gained solid experience in all academic disciplines, giving them a competitive edge to provide only first-rate academic papers.
![]()
QUICK LINKS
Contact Us
For any questions, feedback, or comments, we have an ethical customer support team that is always waiting on the line for your inquiries.
Talk to us
support@academicheroes.com
Call us: +1 (203) -677 0547