×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

## CIS115-Week 6 iLab—Winner of the Chevy and Ford Racing Teams TCO.docx

by: Topseller Notetaker

336

1

0

# CIS115-Week 6 iLab—Winner of the Chevy and Ford Racing Teams TCO.docx PRG211

Marketplace > Ashford University > Computer Programming > PRG211 > CIS115 Week 6 iLab Winner of the Chevy and Ford Racing Teams TCO docx
Topseller Notetaker
AU
GPA 3.9

These notes were just uploaded, and will be ready to view shortly.

Either way, we'll remind you when they're ready :)

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

CIS115-Week 6 iLab—Winner of the Chevy and Ford Racing Teams TCO.docx
COURSE
PROF.
TYPE
Study Guide
PAGES
0
WORDS
KARMA
50 ?

## Popular in Computer Programming

This 0 page Study Guide was uploaded by Topseller Notetaker on Friday November 13, 2015. The Study Guide belongs to PRG211 at Ashford University taught by in Fall 2015. Since its upload, it has received 336 views. For similar materials see in Computer Programming at Ashford University.

×

## Reviews for CIS115-Week 6 iLab—Winner of the Chevy and Ford Racing Teams TCO.docx

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 11/13/15
1 Variable List With Data Type Variable Name Data Type Chevy Array Double Ford Array Double differencetime Double fordcount Integer Chevycount Integer 2 IPO Chart Set differencetime MathRoundMathAbsChevylt Fordk 1 ConsoleWriteLinequotChevy by quot amp differencetime amp quot secquot Set Chevycount 1 End If Input Processing Output Input times for the I Chevy cars For I As Integer 0 To 7 Set Chevyi VaConsoeReadLine Input times for the Ford For As Integer 0 T0 7 cars I Set Ford J VaConsoeReadLIne For k As Integer 0 To 7 If Chevyk lt Fordk Then quotChevy by quot amp differencetime amp quot secquot If Fordk lt Chevyk Then differencetime MathRoundMathAbsChevylt Fordk 1 ConsoleWriteLinequotFord by quot amp differencetime amp quot secquot fordcount 1 End If quotFord by quot amp differencetime amp quot sec If Fordk Chevyk Then ConsoleWriteLinequotTie quot End If Next quotTie quot If fordcount gt Chevycount Then ConsoleWriteLinequotAnd the winning team is F O R D quot Else ConsoleWriteLinequotAnd the winning team is C H E Y quot End If And the winning team is F O R D quot Or And the winning team is C H E Y quot Flowchart C Start i 39Write quotEnter the times for the Chevy cars a Read c hevy 047 Write Enter the times for the Ford carsquot Read ford For 0 T0 T Is Chevy lt1 Ford Is Chevy 13 Ford Is Chevy Ford End a dii wffereneetime Chevy Ford WriteL quotChevy by 8 differencetime 8 secquot NJ diiwffereneetime Chevy Ford WriteL Ford by amp differencetime amp secquot D WriteIL quotFord by amp differencetime amp secquot 4 Pseudocode Write quotEnter the times for the chevy cars gt quot For 0 To 7 Set Chevy VaConsoeReadLine Next Write quotEnter the times for the corresponding Ford car gt quot For0To7 Set Fordj VaConsoeReadLine Next Write quotwinners arequot For 0 To 7 If Chevyk lt Fordk Then Set differencetime MathRoundMathAbsChevyk Fordk 1 WriteLine quotChevy by quot amp differencetime amp quot secquot Set Chevycount 1 End If If Fordk lt Chevyk Then Set differencetime MathRoundMathAbsChevyk Fordk 1 Write quotFord by quot amp differencetime amp quot secquot fordcount 1 End If If Fordk Chevyk Then WriteLinequotTie quot End If Next If fordcount gt Chevycount Then WriteLine quotAnd the winning team is F O R D quot Else WriteLine quotAnd the winning team is C H E Y quot End If 5 Copypaste your C code here using System using SystemCoectionsGeneric using SystemLinq using SystemText namespace ConsoleApplicationl class Program static void Mainstring args doube Chevy new doube8 doube Ford new doube8 double differencetime int fordcount 0 int Chevycount 0 ConsoleWritequotEnter the times for the chevy cars gt quot forint i0 i ltChevyLength i Chevyi doubleParseConsoeReadLine ConsoleWritequotEnter the times for the corresponding Ford car gt quot forintj0 j lt FordLength j Fordj doubleParseConsoleReadLine ConsoleWriteLinequotwinners are for int k 0 k lt FordLength k if Chevyk lt Fordki differencetime MathRoundMathAbsChevyilt Fordk 1 ConsoleWriteLinequotChevy by quot differencetime quot sec Chevycount 1 if Fordk lt Chevyk differencetime MathRoundMathAbsChevyilt Fordk 1 ConsoleWriteLinequotFord by quot differencetime quot sec fordcount 1 if Fordk Chevyk ConsoleWriteLinequotTie quot if fordcount gt Chevycount ConsoleWriteLinequotAnd the winning team is F O R D quot else ConsoleWriteLinequotAnd the winning team is C H E Y quot ConsoleReadKey screensh0ts 0f the complete working program CheryandFerdRarting Running Micreselt Weeel Studie Eff 23 ll Windew Help File Edit 1u ieer Prejeet Euild Debug Team Data Teels rehiteeture Test hnalyee 4quot3 k illll Debug Pregrarn Ii l3Censele ipplitatienl regrarn l1quotl39vr39lainl string args using System using Systemellectiens eneric5 J using Systemtinqy F using SystemTemty namespace ensele pplicatienl class Pregraf static veid Main string argsj deuble bevy deuble Ferd n deuble different int ferdceunt int heeycount er the tinee fer the eerreepending Ferd ear l 53 CenselewritequotE i fer int i9 he i d uinnere are vy Gheuy by 34 see Ferd by 33 see d by 31 eee Cheuy by 1 see i I 39ll39 Censelewr1te E Furd by 31 SEC Ferd by 32 eee Gheuy by 54 see nd the winning teen is F D R D fer int jr39 J Wr jdemlap CenseleWriteLinequotwinners aFijj fer int k E k FerdLengthj kj if heeyk Ferdkj differencetime mathReund ath bs heuyk FerdltjJ 1 Censelellr i teLine wtheuybyw differencetime quot secw j heryceunt 1 39 if Ferdk s heeykj mess J Te 1riewra39InteiTrane datar yeu nnust Iereala executien ef yeur applitatien Ereak tll Mere eptiens Open InteIIiTrate Settings Disablelust MyCede Learn mere aleeut IntelliTrate IntelIiTrate Eelutien EEelerer Preeertia quot Jil M 3395 EH A I l H

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Steve Martinelli UC Los Angeles

#### "There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Jennifer McGill UCSF Med School

#### "Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over \$500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Jim McGreen Ohio University

Forbes

#### "Their 'Elite Notetakers' are making over \$1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com