Where is the error in this code sequence?

Assignment Help C/C++ Programming
Reference no: EM13936573

This code prints all elements of the array geo
for ( int i = 0; i < geo.length; i++ )
{
//the code is missing here

}
__________________________________________________________________
Where is the error in this code sequence?
// a is an ArrayList of strings
// a has already been declared and instantiated
a.size ( ) = 10;
________________________________________________________________

You coded the following in the Test.java class:
public static void main (string) [ ] args)
{
// cars is an ArrayList of Auto Objects
// cars has already been declared and instantiated
for ( Auto a ; cars ) // line 12
{
System.out.println (a. to string ( ) );
} // line 15
} //line 16
When you compile, you get the following message:
Test.java:12 '; 'expected
for ( Auto a ; cars ) // line 12
^
1 error
Explain what the problems are and how to fix them.

Reference no: EM13936573

Questions Cloud

Discuss the various sources of human stem cells : What are the impacts on ecosystems and issues with introduced, invasive and genetically-modified (GMO) organisms? Select one plant and one animal species to illustrate your points.
What does it mean to develop an assessment plan : What does it mean to develop an assessment plan? How does an assessment plan differ from a treatment plan
Focus on paramtized queries and stored procedure : The testing phase will include creating a simple page of login as password with simple code and show that the sql injections occurs (show codes and snapshots where necessary)
Write a business memo to the head of the company : Write a business memo to the head of the company stating why his proposed actions (of buying the company) might not be a good idea based upon the sales information you reviewed.
Where is the error in this code sequence? : Where is the error in this code sequence?Explain what the problems are and how to fix them.
Prepare presentation on motivational interviewing : Create an 8- to 16-slide Microsoft PowerPoint presentation on motivational interviewing. Include the following:  The agency's philosophy of motivational interviewing and The agency's ethical beliefs, including confidentiality
Explain the infective stages of animal parasites : Explain the infective stages of animal parasites (cestodes, protozoa, nematodes) and how they respond in environmental conditions, such as temperature, drying, and lack of a susceptible host?
Determine how many consonants are in an entered string : Write a program that determines how many consonants are in an entered string of 50 characters or less. Output the entered string and the number of consonants in the string.
Make it on platform research on hypervisors : Assignment is done already but the proposal is for a hypervisor - ie: Hyper-V, VMWare, FreeBSD Jail, etc... Which has been done but there is no supporting evidence for that platform.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd