piyushgoenka12

piyushgoenka12

Lv2

piyushgoenka12Delhi Technological University

0 Followers
0 Following
0 Helped

ANSWERS

Published12

Subjects

Science1Information Technology6Engineering2Computer Science1Physics2

Using Flutter and Visual Code.

For the 3rd time to whomever looks at this code. The tasklist1page isn't being shifted to the left. People from oneclass keep sending me this same code and it doesn't work. Has anyone actually tested this code on Visual Code? This is making me frustrated? Can someone fix that code below and use the  ``` before and after the code. So I can see it clearly.  Also please attach a screenshot when you reply back so I know you have tested it. Screenshot of the problem below the flutter code.

 

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:todolist/pages/tasklist/tasklist.dart';
import 'package:todolist/pages/tasklistdetails/tasklistdetails.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        textTheme: GoogleFonts.robotoCondensedTextTheme(),
      ),
      initialRoute: '/tasklist',
      routes: {
        '/tasklist': ((context) => Scaffold(
              appBar: AppBar(
                title: Container(
                  child: Align(
                    alignment: Alignment.centerLeft,
                    child: Text(
                      "Task List1 Page",
                    ),
                  ),
                ),
              ),
              body: const Text('Task list page'),
              floatingActionButton: Theme(
                data: Theme.of(context).copyWith(splashColor: Colors.amber),
                child: FloatingActionButton(
                  onPressed: () => {Navigator.pop(context)},
                  tooltip: 'Increment',
                  child: const Icon(Icons.add),
                ),
              ),
            )),
        '/tasklistdetails': ((context) =>
            const TaskListDetailsPage(title: "Task List Details Page"))
      },
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Text('Task list page'),
      floatingActionButton: Theme(
        data: Theme.of(context).copyWith(splashColor: Colors.amber),
        child: FloatingActionButton(
          onPressed: () => {Navigator.pop(context)},
          tooltip: 'Increment',
          child: const Icon(Icons.add),
        ),
      ),
    );
  }
}

 

Answer:import 'package:flutter/material.dart';import 'package:google_fonts/goo...
Answer: HACCP (Hazard Analysis and Critical Control Points) covers a range of ...
Answer:#include <stdio.h>void swap(int *a, int *b) { int temp = *a; *a =...

In this activity, you are asked to create an application for educational institutes to assist the student services and administrations to manage students' grades and monitor their performance (grades are integers and out of 100).

Each institute in each semester has a different number of programs, a different number of classes/courses, and a different number of students in each class; therefore, your application will ask the user to insert the number of the programs along with the name of the programs, the number of classes in each program, and the number of students in each class from the user.

Student services would like to monitor the performance of each class separately by having the average grade of the students in each class and the highest and the lowest grades in each class/course. Besides, in each program, the courses/classes with the best and worst performances will be announced.

As another parameter to be considered, student services would like to make a comparison between all the available programs; however, not only the number of courses in each program is different the weight of each course that is represented as the number of units or credit hours are different; therefore, the number of units for each course would be another user input.
To calculate the average grades in each program/department, the given formula below will be used:

Average Grade in Each Program = (Sum(Credit Hour * Course Average Grade))/The total number of Credit Hours in Each Program

The credit hours range of the different courses is from 1 credit hour to 5 credit hours which represents the importance and the weights of each course. Please, take into consideration the wrong input from the user such as negative numbers, zero, and numbers more than 5.

You need to make sure the least amount of memory will be used by this application.
Your code must have a very clean structure, separated and determined functions, and must have brief comments explaining each section of your code.

 

C program

Answer: #include <stdio.h>#include <string.h>// Define maximum val...
Answer:#include <stdio.h>#define MAX_PROGRAMS 10#define MAX_COURSES 20st...
Answer: To determine the initial velocity of the bullet in mph, we need to use...
Answer:#include <stdio.h>#include <stdlib.h>#include <string.h&...

Hi. This code hass errors when I add first cite. Thx

#include <stdio.h>

#include <string.h>

 

#define NUM_CITIES 5

 

struct City {

char name[20];

float precipitation;

};

 

void rank_cities(struct City cities[], int num_cities) {

struct City temp;

for (int i = 0; i < num_cities - 1; i++) {

for (int j = i + 1; j < num_cities; j++) {

if (cities[i].precipitation > cities[j].precipitation) {

temp = cities[i];

cities[i] = cities[j];

cities[j] = temp;

}

}

}

}

 

int main() {

struct City cities[NUM_CITIES];

float total_precipitation[NUM_CITIES] = {0};

float min_precipitation = 1000000, max_precipitation = -1;

int min_index, max_index;

 

for (int i = 0; i < NUM_CITIES; i++) {

printf("Enter the name of city #%d: ", i + 1);

scanf("%s", cities[i].name);

printf("Enter the amount of precipitation in mm for %s: ", cities[i].name);

scanf("%f", &cities[i].precipitation);

total_precipitation[i] = cities[i].precipitation;

 

if (cities[i].precipitation < min_precipitation) {

min_precipitation = cities[i].precipitation;

min_index = i;

}

if (cities[i].precipitation > max_precipitation) {

max_precipitation = cities[i].precipitation;

max_index = i;

}

}

 

float total = 0, average;

for (int i = 0; i < NUM_CITIES; i++) {

total += total_precipitation[i];

}

average = total / NUM_CITIES;

 

rank_cities(cities, NUM_CITIES);

 

printf("\nCity Rankings:\n");

for (int i = 0; i < NUM_CITIES; i++) {

printf("%d. %s (%.1f mm)\n", i + 1, cities[i].name, cities[i].precipitation);

}

 

printf("\nCity with minimum precipitation:\n%s (%.1f mm)\n", cities[min_index].name, min_precipitation);

 

printf("\nCity with maximum precipitation:\n%s (%.1f mm)\n", cities[max_index].name, max_precipitation);

 

printf("\nAverage precipitation across all cities: %.1f mm\n", average);

 

return 0;

}

Answer: The code seems to be functioning correctly and compiling without error...

Explain how Java code gets executed under the hood.

IntelliJ uses the Java compiler to compile our code into a different format called Java bytecode. This Java code is platform independent and that means it can run on Windows Mac Linux or any operating systems that has a Java runtime environment. Java applications are portable or platform independent. Java was developed by James Gosling in 1995 at Sun Microsystems which was later acquired by Oracle in 2010. Java has close to 9 million developers worldwide currently about 3 billion mobile phones run Java as well as 120 million TV sets and every blu-ray player. Average salary of a Java developer is just over $ 100,000 per year in the US. This course is the first part of my complete four-part Java series. Each part is about three to four hours long so it can easily complete it in a day or two. The first part will give you a solid foundation on how to start programming in Java in the second part we 'll talk about object oriented programming which is a style of programming use in most if not all Java applications. The third part will talk about core Java API is or application programming interfaces.

Once you learn all this I 'm gon na give you a project you 're gon na build a mortgage calculator on your own so make sure to pay great attention to all the materials. Make sure to use most of them in this project are you ready now let 's jump in and get started in this tutorial we're gon na talk about variables in Java we use variables to temporarily store data. In the next tutorial we're going to talk about various types in Java. We have two categories of types we have primitive types and non primitive types or reference types for storing complex objects. All these types are for storing whole numbers that do n't have a decimal point. In one bite we can store values from 128 to 127. In Java whenever you deal with a large number like this you can use an underscore to separate every three digits just like how we use a comma in our documents to make our numbers more readable. With integers we can store values up to two billion but let 's say the number of times this video has been watched is three billion so I had a three here now we have a red line that indicates an error.

Answer: When you run a Java program, the code goes through several stages of e...
Answer: Step-by-step explanation: Here's a brief description of each part of t...
Answer: Tension= 294 N Acceleration=1.48 m/s^2Step-by-step explanation: To sol...
Answer: For 250hz, TL=44.23db For 1000hz, TL=10.44dbStep-by-step explanation: ...

Weekly leaderboard

Start filling in the gaps now
Log in